Skip to content
Parse and manipulate version numbers.
Python Shell
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.travis
docs
src/parver
tests
.gitignore
.pre-commit-config.yaml
.readthedocs.yml
.travis.yml
CHANGELOG.md
LICENSE
MANIFEST.in
README.rst
pyproject.toml
setup.py
tox.ini

README.rst

PyPI Documentation Status Automated test status Test coverage MIT License

parver

parver allows parsing and manipulation of PEP 440 version numbers.

Example

>>> Version.parse('1.3').bump_dev()
<Version '1.3.dev0'>
>>> v = Version.parse('v1.2.alpha-3')
>>> v.is_alpha
True
>>> v.pre
3
>>> v
<Version 'v1.2.alpha-3'>
>>> v.normalize()
<Version '1.2a3'>
You can’t perform that action at this time.