Skip to main content

Madonna

License PyPI GitHub Code Style CI Coverage

A Python semver parsing library.

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.

Metadata

Release files for madonna 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for madonna 0.2.0
File Size Uploaded
madonna-0.2.0.tar.gz 7.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for madonna 0.2.0
File Interpreter ABI Platform
madonna-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.3 kB

Release files / madonna-0.2.0.tar.gz

Download URL madonna-0.2.0.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
92aa11ab774b9f8fcaf03adcb39d243630e4568fcaea9a72adfc01264b718ac1
BLAKE2b-256 checksum
How to use checksums
0111c4f16a2ee591fc8e5e8632c6b84686a6d0c4e27c870fe7a88216947a5fa3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / madonna-0.2.0-py3-none-any.whl

Download URL madonna-0.2.0-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be78d52eb0099af79d4f399e978487ed9676d6887b054a2b10a1e9b2f0976b0f
BLAKE2b-256 checksum
How to use checksums
6226bfbdf27801d68f0dc51505a81dcd9ff57f7c3de29bea97a1d938ca39a6d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page