Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gpongelli/python-active-versions
Gather active python versions.
https://github.com/gpongelli/python-active-versions
Last synced: 3 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 (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-25T08:59:23.000Z (6 months ago)
- Last Synced: 2024-09-26T12:37:36.098Z (4 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
[![pypi](https://img.shields.io/pypi/v/python-active-versions.svg)](https://pypi.org/project/python-active-versions/)
[![python](https://img.shields.io/pypi/pyversions/python-active-versions.svg)](https://pypi.org/project/python-active-versions/)
[![Build Status](https://github.com/gpongelli/python-active-versions/actions/workflows/dev.yml/badge.svg)](https://github.com/gpongelli/python-active-versions/actions/workflows/dev.yml)
[![codecov](https://codecov.io/gh/gpongelli/python-active-versions/branch/main/graphs/badge.svg)](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 noxfrom python_active_versions.python_active_versions import get_active_python_versions
from typing import Listdef _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.