Skip to main content

PEP-440 version parsing, interpretation and manipulation

Project description

pepver

PEP-440 version parsing, interpretation and manipulation.

from pepver import Version


version = Version.parse("0!1.2.3.4a5.post6.dev7+8.9")
version.epoch  # 0
version.release  # 1, 2, 3, 4
version.major  # 1
version.minor  # 2
version.micro  # 3
version.pre  # a 5
version.post  # 6
version.dev  # 7
version.local  # "8.9"


normalized = Version.parse("00!1.a-5-11dev.1")
str(normalized)  # 0!1a5.post11.dev1

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

pepver-1.0.0rc2.tar.gz (5.5 kB view hashes)

Uploaded Source

Built Distribution

pepver-1.0.0rc2-py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 3

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