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

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.

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.19.0.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

python_active_versions-1.19.0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file python_active_versions-1.19.0.tar.gz.

File metadata

File hashes

Hashes for python_active_versions-1.19.0.tar.gz
Algorithm Hash digest
SHA256 4d37a5ece7d9c3e643a41e7ef11d22a0545c6d6d85ff4cef55ba102b3bca12a4
MD5 faca7e615d5306333358707f64b509df
BLAKE2b-256 946dc3e88c90396ef8b73c6ad9f948672a87e47e068a9e7f2e5eb486a8e9195f

See more details on using hashes here.

File details

Details for the file python_active_versions-1.19.0-py3-none-any.whl.

File metadata

File hashes

Hashes for python_active_versions-1.19.0-py3-none-any.whl
Algorithm Hash digest
SHA256 64cc84bcd6141b21a48e7a815e9f81971ce7f6115b08b3992ecd6e35191956ec
MD5 bf5cd9fe9f19c370d0c4bdabb56bc9d6
BLAKE2b-256 059bc81301a2b87ae2b48ab232ad257c068c0c77da84aa458cc322cf5cbb0622

See more details on using hashes here.

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