Metadata-Version: 2.4
Name: parver
Version: 1.0.1.post0
Summary: Parse and manipulate version numbers.
Project-URL: Documentation, https://parver.readthedocs.io
Project-URL: Source Code, https://github.com/RazerM/parver
Author-email: Frazer McLean <frazer@frazermclean.co.uk>
License-Expression: MIT
License-File: LICENSE
Keywords: parse,pep440,version
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.10
Description-Content-Type: text/markdown

<p>
  <a href="https://pypi.org/project/parver/"><img src="https://img.shields.io/pypi/v/parver.svg" alt="PyPI" /></a>
  <a href="https://parver.readthedocs.io/en/stable/"><img src="https://img.shields.io/badge/docs-read%20now-blue.svg" alt="Documentation Status" /></a>
  <a href="https://github.com/RazerM/parver/actions?workflow=CI"><img src="https://github.com/RazerM/parver/actions/workflows/main.yml/badge.svg?branch=main" alt="CI Status" /></a>
  <a href="https://codecov.io/gh/RazerM/parver"><img src="https://codecov.io/gh/RazerM/parver/branch/main/graph/badge.svg" alt="Test coverage" /></a>
  <a href="https://raw.githubusercontent.com/RazerM/parver/main/LICENSE"><img src="https://img.shields.io/github/license/RazerM/parver.svg" alt="MIT License" /></a>
</p>

# parver

parver allows parsing and manipulation of [PEP 440](https://www.python.org/dev/peps/pep-0440/) version numbers.

# Example

```python
>>> 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'>
```
