Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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 License

parver
======

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/