Skip to main content

MiniMindsLab SemVer Range

A tiny, dependency-free Python library to parse semantic versions and evaluate simple range expressions.

Features

  • Parse MAJOR.MINOR.PATCH versions
  • Compare versions with ==, !=, >, >=, <, <=
  • Evaluate comma-separated constraints (logical AND), e.g.:
    • >=1.0.0,<2.0.0
    • == 1.2.3

Install

pip install minimindslab-semver-range

Usage

from minimindslab_semver_range import parse_version, satisfies

v = parse_version("1.2.3")
print(v.major, v.minor, v.patch)  # 1 2 3

print(satisfies("1.2.3", ">=1.0.0,<2.0.0"))  # True
print(satisfies("2.0.0", ">=1.0.0,<2.0.0"))  # False

Supported Range Syntax

  • Operators: ==, !=, >=, <=, >, <
  • Clauses separated by commas mean all clauses must match.
  • Whitespace around operators and commas is tolerated.

Examples:

  • >=1.0.0, <2.0.0
  • != 1.5.0, >=1.0.0
  • ==1.2.3

Invalid or unsupported syntax raises ValueError.

License

MIT

Metadata

Release files for minimindslab-semver-range 0.1.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 minimindslab-semver-range 0.1.0
File Size Uploaded Provenance
minimindslab_semver_range-0.1.0.tar.gz 3.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for minimindslab-semver-range 0.1.0
File Interpreter ABI Platform
minimindslab_semver_range-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.7 kB

Release files / minimindslab_semver_range-0.1.0.tar.gz

Download URL minimindslab_semver_range-0.1.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a95614e903fe7c586f2e64552d6f40b86ef2170ba6827771023fca6fdb62126f
BLAKE2b-256 checksum
How to use checksums
604b11cb1853973fd2f770affcb9bdacdb675810d1be2540f0721b20fcfb5853
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via n8n

Release files / minimindslab_semver_range-0.1.0-py3-none-any.whl

Download URL minimindslab_semver_range-0.1.0-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cee9fa853a438bbf903cd7b484522fce14e59c51a0744f5638071b1042601d95
BLAKE2b-256 checksum
How to use checksums
4fb007e2040ebd2d476afece4335b3ead3ed4a5daa6f4c59d7dbfe850f171638
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via n8n

Security for minimindslab-semver-range 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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