Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/razerm/parver
Parse and manipulate version numbers.
https://github.com/razerm/parver
pep440 version
Last synced: 5 days ago
JSON representation
Parse and manipulate version numbers.
- Host: GitHub
- URL: https://github.com/razerm/parver
- Owner: RazerM
- License: mit
- Created: 2018-05-08T19:33:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-02-08T01:08:27.000Z (9 months ago)
- Last Synced: 2024-10-27T19:39:26.185Z (9 days ago)
- Topics: pep440, version
- Language: Python
- Size: 160 KB
- Stars: 47
- Watchers: 4
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.rst
- License: LICENSE
Awesome Lists containing this project
README
.. image:: https://img.shields.io/pypi/v/parver.svg
:target: https://pypi.org/project/parver/
:alt: PyPI.. image:: https://img.shields.io/badge/docs-read%20now-blue.svg
:target: https://parver.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status.. image:: https://github.com/RazerM/parver/workflows/CI/badge.svg?branch=master
:target: https://github.com/RazerM/parver/actions?workflow=CI
:alt: CI Status.. image:: https://codecov.io/gh/RazerM/parver/branch/master/graph/badge.svg
:target: https://codecov.io/gh/RazerM/parver
:alt: Test coverage.. image:: https://img.shields.io/github/license/RazerM/parver.svg
:target: https://raw.githubusercontent.com/RazerM/parver/master/LICENSE.txt
:alt: MIT Licenseparver
======parver allows parsing and manipulation of `PEP 440`_ version numbers.
Example
=======.. code:: python
>>> Version.parse('1.3').bump_dev()
>>> v = Version.parse('v1.2.alpha-3')
>>> v.is_alpha
True
>>> v.pre
3
>>> v
>>> v.normalize()
.. _`PEP 440`: https://www.python.org/dev/peps/pep-0440/