Gather active python versions and, optionally, also docker images.
- Documentation: https://gpongelli.github.io/python-active-versions
- GitHub: https://github.com/gpongelli/python-active-versions
- PyPI: https://pypi.org/project/python-active-versions/
- Docker image here
- Free software: MIT
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):
...
This tool can also be run as container wiht:
podman run --rm python-active-versions:1.15.0
- Scrape official python website to get active versions
- Scrape dockerhub website to add optional python's available images
This package was created with Cookiecutter and the gpongelli/cookiecutter-pypackage project template.