Python semver parsing library.
Project description
Madonna
A Python semver parsing library.
-
Free software: MIT License
-
Documentation: https://FollowTheProcess.github.io/madonna/
Project Description
Madonna is a small, simple semver utility library with support for parsing, writing, and otherwise interacting with semantic versions in code.
Why the stupid name?
Get it? "Like a Version"... 👏🏻
Also naming things on PyPI is hard!
Installation
pip install madonna
Quickstart
The only construct in madonna is the Version
object, you can use it for all sorts of useful things...
Create a New Version
from madonna import Version
v = Version(major=1, minor=2, patch=4)
Parse a Version from a string
from madonna import Version
Version.from_string("v1.2.4-rc.1+build.123")
# Version(major=1, minor=2, patch=4, prerelease="rc.1", buildmetadata="build.123")
Or JSON
from madonna import Version
Version.from_json('{"major": 1, "minor": 2, "patch": 4}')
And you can also dump a Version
to a variety of formats too!
Contributing
madonna
is an open source project and, as such, welcomes contributions of all kinds :smiley:
Your best bet is to check out the contributing guide in the docs!
Credits
This package was created with cookiecutter and the FollowTheProcess/cookie_pypackage project template.
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
Built Distribution
File details
Details for the file madonna-0.2.0.tar.gz
.
File metadata
- Download URL: madonna-0.2.0.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92aa11ab774b9f8fcaf03adcb39d243630e4568fcaea9a72adfc01264b718ac1 |
|
MD5 | 6319377480e6c3b2a128762d82563d87 |
|
BLAKE2b-256 | 0111c4f16a2ee591fc8e5e8632c6b84686a6d0c4e27c870fe7a88216947a5fa3 |
File details
Details for the file madonna-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: madonna-0.2.0-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be78d52eb0099af79d4f399e978487ed9676d6887b054a2b10a1e9b2f0976b0f |
|
MD5 | 0e667e22980e743b1e2ee343b7c2b171 |
|
BLAKE2b-256 | 6226bfbdf27801d68f0dc51505a81dcd9ff57f7c3de29bea97a1d938ca39a6d3 |