python-active-versions


Namepython-active-versions JSON
Version 1.18.0 PyPI version JSON
download
home_pagehttps://github.com/gpongelli/python-active-versions
SummaryGather active python versions.
upload_time2024-07-15 10:21:40
maintainerNone
docs_urlNone
authorGabriele Pongelli
requires_python<3.13,>=3.8.0
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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: <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](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.


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/gpongelli/python-active-versions",
    "name": "python-active-versions",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<3.13,>=3.8.0",
    "maintainer_email": null,
    "keywords": null,
    "author": "Gabriele Pongelli",
    "author_email": "gpongelli@users.noreply.github.com",
    "download_url": "https://files.pythonhosted.org/packages/5f/b3/f76ece7c87076662fa21055168c7d2d4dc5a47e78252f95513c145563ee3/python_active_versions-1.18.0.tar.gz",
    "platform": null,
    "description": "# python active versions\n\n\n[![pypi](https://img.shields.io/pypi/v/python-active-versions.svg)](https://pypi.org/project/python-active-versions/)\n[![python](https://img.shields.io/pypi/pyversions/python-active-versions.svg)](https://pypi.org/project/python-active-versions/)\n[![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)\n[![codecov](https://codecov.io/gh/gpongelli/python-active-versions/branch/main/graphs/badge.svg)](https://codecov.io/github/gpongelli/python-active-versions)\n\n\n\nGather active python versions and, optionally, also docker images.\n\n\n* Documentation: <https://gpongelli.github.io/python-active-versions>\n* GitHub: <https://github.com/gpongelli/python-active-versions>\n* PyPI: <https://pypi.org/project/python-active-versions/>\n* Docker image [here](https://hub.docker.com/r/gpongelli/python-active-versions)\n* Free software: MIT\n\n## Usage\n\nFor its usage, as CLI/docker container/library please refer to usega page into [documentation](https://gpongelli.github.io/python-active-versions).\n\nAn interesting usage is in combination with nox, where this library can provide python versions as following snippet:\n\n```python\nimport nox\n\nfrom python_active_versions.python_active_versions import get_active_python_versions\nfrom typing import List\n\ndef _get_active_version(_active_versions: List[dict]) -> List[str]:\n    return [_av['version'] for _av in _active_versions]\n\n_python_versions = _get_active_version(get_active_python_versions())\n\n@nox.session(python=_python_versions)\ndef test_something(session):\n    ...\n\n@nox.session(python=_python_versions)\ndef test_another(session):\n    ...\n```\n\n### Container usage\n\nThis tool can also be run as container wiht:\n\n```bash\npodman run --rm python-active-versions:1.15.0\n```\n\n\n## Features\n\n* Scrape official python website to get active versions\n* Scrape dockerhub website to add optional python's available images\n\n## Credits\n\nThis package was created with [Cookiecutter](https://github.com/audreyr/cookiecutter) and the [gpongelli/cookiecutter-pypackage](https://github.com/gpongelli/cookiecutter-pypackage) project template.\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Gather active python versions.",
    "version": "1.18.0",
    "project_urls": {
        "Changelog": "https://gpongelli.github.io/python-active-versions/history.html",
        "Documentation": "https://gpongelli.github.io/python-active-versions/",
        "Homepage": "https://github.com/gpongelli/python-active-versions",
        "Issue Tracker": "https://github.com/gpongelli/python-active-versions/issues",
        "Repository": "https://github.com/gpongelli/python-active-versions",
        "Source": "https://github.com/gpongelli/python-active-versions"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "30a16210db63ff63d5e8bf62f9db433cdc936c8b7e8b34c2dbc733444b244402",
                "md5": "6a0e8b0290aed3f6265693c67c2fe1b6",
                "sha256": "37a9b76f96130c37520fba5d09c6341357fd275067d3df81c4078706625e02a0"
            },
            "downloads": -1,
            "filename": "python_active_versions-1.18.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6a0e8b0290aed3f6265693c67c2fe1b6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.13,>=3.8.0",
            "size": 9866,
            "upload_time": "2024-07-15T10:21:38",
            "upload_time_iso_8601": "2024-07-15T10:21:38.733568Z",
            "url": "https://files.pythonhosted.org/packages/30/a1/6210db63ff63d5e8bf62f9db433cdc936c8b7e8b34c2dbc733444b244402/python_active_versions-1.18.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5fb3f76ece7c87076662fa21055168c7d2d4dc5a47e78252f95513c145563ee3",
                "md5": "f519709f74492bb0690ef9769895b506",
                "sha256": "892c889d0ca846af61f36e26e9b12d89c4927812a46a7ead3c0b098b815a4e6a"
            },
            "downloads": -1,
            "filename": "python_active_versions-1.18.0.tar.gz",
            "has_sig": false,
            "md5_digest": "f519709f74492bb0690ef9769895b506",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.13,>=3.8.0",
            "size": 10471,
            "upload_time": "2024-07-15T10:21:40",
            "upload_time_iso_8601": "2024-07-15T10:21:40.088177Z",
            "url": "https://files.pythonhosted.org/packages/5f/b3/f76ece7c87076662fa21055168c7d2d4dc5a47e78252f95513c145563ee3/python_active_versions-1.18.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-15 10:21:40",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "gpongelli",
    "github_project": "python-active-versions",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "python-active-versions"
}
        
Elapsed time: 0.29367s