https://github.com/gpongelli/python-active-versions
Gather active python versions.
https://github.com/gpongelli/python-active-versions
Last synced: 10 months ago
JSON representation
Gather active python versions.
- Host: GitHub
- URL: https://github.com/gpongelli/python-active-versions
- Owner: gpongelli
- Created: 2023-01-13T17:45:06.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-25T08:59:23.000Z (almost 2 years ago)
- Last Synced: 2025-08-19T03:53:36.708Z (10 months ago)
- Language: Python
- Size: 466 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSES/MIT.txt
- Authors: AUTHORS.rst
Awesome Lists containing this project
README
# python active versions
[](https://pypi.org/project/python-active-versions/)
[](https://pypi.org/project/python-active-versions/)
[](https://github.com/gpongelli/python-active-versions/actions/workflows/dev.yml)
[](https://codecov.io/github/gpongelli/python-active-versions)
Gather active python versions and, optionally, also docker images.
* Documentation:
* GitHub:
* PyPI:
* Docker image [here](https://hub.docker.com/r/gpongelli/python-active-versions)
* Free software: MIT
## Usage
For its usage, as CLI/docker container/library please refer to usega page into [documentation](https://gpongelli.github.io/python-active-versions).
An interesting usage is in combination with nox, where this library can provide python versions as following snippet:
```python
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:
```bash
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](https://github.com/audreyr/cookiecutter) and the [gpongelli/cookiecutter-pypackage](https://github.com/gpongelli/cookiecutter-pypackage) project template.