Gather active python versions.
Project description
python active versions
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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file python_active_versions-1.14.0.tar.gz
.
File metadata
- Download URL: python_active_versions-1.14.0.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96819021b1226eefc3c04242eab3ace583ba01ab64e5af575f86fe5836e269f9 |
|
MD5 | 8d71ba2f84ae6ac9cba899b03fb2863e |
|
BLAKE2b-256 | 8b5525a1c7edc69f7899633a98935b8edcc37b4021bcc9602f802a82ef068aa0 |
File details
Details for the file python_active_versions-1.14.0-py3-none-any.whl
.
File metadata
- Download URL: python_active_versions-1.14.0-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07b510acd7e61a66aaf99b586cffb16e8c1dbb00411ea3946e0c4c794bc58dd9 |
|
MD5 | f26d70c696c8f113aaab98d8ed633786 |
|
BLAKE2b-256 | 57352d7e838b10847ec062418b53a35ab526b32b56daafc3558b6c11bf8a4852 |