Skip to main content

Gather active python versions.

Project description

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):
    ...

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_active_versions-1.14.1.tar.gz (10.0 kB view hashes)

Uploaded Source

Built Distribution

python_active_versions-1.14.1-py3-none-any.whl (9.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page