Skip to main content

Python semver parsing library.

Project description

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 so

⚠️ Unlike the successful artist, this madonna is in early development

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

madonna-0.1.2.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

madonna-0.1.2-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file madonna-0.1.2.tar.gz.

File metadata

  • Download URL: madonna-0.1.2.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for madonna-0.1.2.tar.gz
Algorithm Hash digest
SHA256 7d44cbee054320eaf674b381c1d3eacbbe6bb0521ee7b80974e898701ea5f81b
MD5 d133a5e8b59004c63f03073d228df7a2
BLAKE2b-256 a75b1006fae92c6f7ad957dba32d8ee965c4d7022ade2b8b25a9ebbcc6c8098f

See more details on using hashes here.

File details

Details for the file madonna-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: madonna-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for madonna-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3eca774e2c7b83da7f95e051dee4cbe0f56c105e5fadf982898f77be5fcceb87
MD5 5766c7a30467f641cd1c79ba5e73c503
BLAKE2b-256 406728737c22af12cfce8a6cd0e2185a87791c52e15737c5fb4c8b280b92a654

See more details on using hashes here.

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