Skip to main content

Parse and manipulate version numbers.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

parver-0.1.1.tar.gz (24.2 kB view details)

Uploaded Source

Built Distribution

parver-0.1.1-py2.py3-none-any.whl (11.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file parver-0.1.1.tar.gz.

File metadata

  • Download URL: parver-0.1.1.tar.gz
  • Upload date:
  • Size: 24.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for parver-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ac4afff688d19d5e1876bb68d4bccc1a1b6a5cc8bd6a646939a14d366695ba15
MD5 af939c1084c4bd825133455db4a7dc7c
BLAKE2b-256 b8e8002c3802eb0be16c375896195fb8db3169f3b87a10e4a9c222b9746b65ec

See more details on using hashes here.

Provenance

File details

Details for the file parver-0.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for parver-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f025fba8f88a9c776971df6d62b6cf7f37d1108f84c163bda91e157d7d527075
MD5 d3388f3f58ff2cb06f78668db2e86f78
BLAKE2b-256 1aabb375411ba95b2a714dd4042571de767587cf174a131703326e1ffe480841

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page