trivver


Nametrivver JSON
Version 2.2.3 PyPI version JSON
download
home_page
SummaryA library for comparing version strings
upload_time2023-06-12 22:48:45
maintainer
docs_urlNone
author
requires_python>=3.7
licenseBSD-2-Clause
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <!--
SPDX-FileCopyrightText: Peter Pentchev <roam@ringlet.net>
SPDX-License-Identifier: BSD-2-Clause
-->

# Compare package versions in all their varied glory.

\[[Home][ringlet] | [GitLab][gitlab] | [PyPI][pypi]\]

## Description

This module provides the `compare()` function which compares two
version strings and returns a negative value, zero, or a positive
value depending on whether the first string represents a version
number lower than, equal to, or higher than the second one, and
the `key_compare()` function which may be used as a key for e.g.
`sorted()`.

This module does not strive for completeness in the formats of
version strings that it supports. Some version strings sorted by
its rules are:

- 0.1.0
- 0.2.alpha
- 0.2
- 0.2.1
- 0.2a
- 0.2a.1
- 0.2a3
- 0.2a4
- 0.2p3
- 1.0~bpo3
- 1.0.beta
- 1.0.beta.2
- 1.0.beta2
- 1.0.beta3
- 1.0
- 1.0.4
- 1:0.3

See [the change log][changelog] (the `docs/changes.md` file in the source
distribution) for the history of `trivver` development.

## Contact

This module is [developed in a Gitlab repository][gitlab].
The author is [Peter Pentchev][roam].

[ringlet]: https://devel.ringlet.net/devel/trivver/ "The trivver homepage at Ringlet"
[gitlab]: https://gitlab.com/ppentchev/python-trivver "The trivver repository at GitLab"
[changelog]: https://gitlab.com/ppentchev/python-trivver/-/blob/master/docs/changes.md
[pypi]: https://pypi.org/project/trivver/ "The trivver page at PyPI"
[roam]: mailto:roam@ringlet.net "Peter Pentchev"

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "trivver",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "",
    "author": "",
    "author_email": "Peter Pentchev <roam@ringlet.net>",
    "download_url": "https://files.pythonhosted.org/packages/60/16/a13c52bafc5179e62bf7d3cced567139a01bfb6af0fa82ca6050a27db571/trivver-2.2.3.tar.gz",
    "platform": null,
    "description": "<!--\nSPDX-FileCopyrightText: Peter Pentchev <roam@ringlet.net>\nSPDX-License-Identifier: BSD-2-Clause\n-->\n\n# Compare package versions in all their varied glory.\n\n\\[[Home][ringlet] | [GitLab][gitlab] | [PyPI][pypi]\\]\n\n## Description\n\nThis module provides the `compare()` function which compares two\nversion strings and returns a negative value, zero, or a positive\nvalue depending on whether the first string represents a version\nnumber lower than, equal to, or higher than the second one, and\nthe `key_compare()` function which may be used as a key for e.g.\n`sorted()`.\n\nThis module does not strive for completeness in the formats of\nversion strings that it supports. Some version strings sorted by\nits rules are:\n\n- 0.1.0\n- 0.2.alpha\n- 0.2\n- 0.2.1\n- 0.2a\n- 0.2a.1\n- 0.2a3\n- 0.2a4\n- 0.2p3\n- 1.0~bpo3\n- 1.0.beta\n- 1.0.beta.2\n- 1.0.beta2\n- 1.0.beta3\n- 1.0\n- 1.0.4\n- 1:0.3\n\nSee [the change log][changelog] (the `docs/changes.md` file in the source\ndistribution) for the history of `trivver` development.\n\n## Contact\n\nThis module is [developed in a Gitlab repository][gitlab].\nThe author is [Peter Pentchev][roam].\n\n[ringlet]: https://devel.ringlet.net/devel/trivver/ \"The trivver homepage at Ringlet\"\n[gitlab]: https://gitlab.com/ppentchev/python-trivver \"The trivver repository at GitLab\"\n[changelog]: https://gitlab.com/ppentchev/python-trivver/-/blob/master/docs/changes.md\n[pypi]: https://pypi.org/project/trivver/ \"The trivver page at PyPI\"\n[roam]: mailto:roam@ringlet.net \"Peter Pentchev\"\n",
    "bugtrack_url": null,
    "license": "BSD-2-Clause",
    "summary": "A library for comparing version strings",
    "version": "2.2.3",
    "project_urls": {
        "Changelog": "https://devel.ringlet.net/devel/trivver/changes/",
        "Homepage": "https://devel.ringlet.net/devel/trivver/",
        "Repository": "https://gitlab.com/ppentchev/python-trivver"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7d8395877f901c0aee41a5ccdb196a8f3dd5d1199968b09b6541b12f094348f1",
                "md5": "235b75597cea08a84de25f9e9258b261",
                "sha256": "a3e4a9a83c8f044b984b6905dcf5df7622585f206fb8abf69211d0fab6adac98"
            },
            "downloads": -1,
            "filename": "trivver-2.2.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "235b75597cea08a84de25f9e9258b261",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 7795,
            "upload_time": "2023-06-12T22:48:43",
            "upload_time_iso_8601": "2023-06-12T22:48:43.862694Z",
            "url": "https://files.pythonhosted.org/packages/7d/83/95877f901c0aee41a5ccdb196a8f3dd5d1199968b09b6541b12f094348f1/trivver-2.2.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6016a13c52bafc5179e62bf7d3cced567139a01bfb6af0fa82ca6050a27db571",
                "md5": "dae7ea37086ebf1ddce575ca375692dd",
                "sha256": "7f450c705353e4b064fea4506dcf0cc9bb4dbce0bf4d6f57b877a445c035cbcb"
            },
            "downloads": -1,
            "filename": "trivver-2.2.3.tar.gz",
            "has_sig": false,
            "md5_digest": "dae7ea37086ebf1ddce575ca375692dd",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 19159,
            "upload_time": "2023-06-12T22:48:45",
            "upload_time_iso_8601": "2023-06-12T22:48:45.853335Z",
            "url": "https://files.pythonhosted.org/packages/60/16/a13c52bafc5179e62bf7d3cced567139a01bfb6af0fa82ca6050a27db571/trivver-2.2.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-12 22:48:45",
    "github": false,
    "gitlab": true,
    "bitbucket": false,
    "codeberg": false,
    "gitlab_user": "ppentchev",
    "gitlab_project": "python-trivver",
    "lcname": "trivver"
}
        
Elapsed time: 0.08019s