Sign inSign up

gpongelli/python-active-versions

By gpongelli

•Updated about 2 years ago

Image
0

671

gpongelli/python-active-versions repository overview

⁠python active versions

pypi python Build Status codecov

Gather active python versions and, optionally, also docker images.

⁠Usage

For its usage, as CLI/docker container/library please refer to usega page into documentation⁠.

An interesting usage is in combination with nox, where this library can provide python versions as following snippet:

import nox

from python_active_versions.python_active_versions import get_active_python_versions
from typing import List

def _get_active_version(_active_versions: List[dict]) -> List[str]:
    return [_av['version'] for _av in _active_versions]

_python_versions = _get_active_version(get_active_python_versions())

@nox.session(python=_python_versions)
def test_something(session):
    ...

@nox.session(python=_python_versions)
def test_another(session):
    ...
⁠Container usage

This tool can also be run as container wiht:

podman run --rm python-active-versions:1.15.0

⁠Features

  • Scrape official python website to get active versions
  • Scrape dockerhub website to add optional python's available images

⁠Credits

This package was created with Cookiecutter⁠ and the gpongelli/cookiecutter-pypackage⁠ project template.

Tag summary

Content type

Image

Digest

sha256:1fc97362d…

Size

61.4 MB

Last updated

about 2 years ago

docker pull gpongelli/python-active-versions:1.19.0