Skip to main content

📦 version-handle

Version handle module

Installation

pip install -i https://mirrors.aliyun.com/pypi/simple/ --extra-index-url https://pypi.org/simple/ version-handle

Example

from version_handle import python, generate, Version

Version("11.2-3_4") > Version("9.2-3_4a") == Version("9.2-3.4a")
# output: True
Version("11.1-2_3") > Version("9.1-2_3")
# output: True
Version("11.1-2_3") >= Version("9.1-2_3")
# output: True
Version("11.1-2_3") < Version("9.1")
# output: False
Version("11.1-2_3") <= Version("9.1")
# output: False
Version("9.1.b") > Version("9.1.a")
# output: True
Version("11.1-2_3+0006") == Version("11.1-2_3+6")
# output: True
bool(Version("9.1.b"))
# output: True
bool(Version("++"))
# output: False
python.version()
# output: 3.10.5 (v3.10.5:f377153967, Jun  6 2022, 12:36:10) [Clang 13.0.0 (clang-1300.0.29.30)]
generate((0, 11, 12))
# output: 0.11.12

To Do

  • Be the best version of you.

More Resources

License

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

Metadata

Release files for version-handle 0.1.3

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

Source distribution (sdist)

Source distribution for version-handle 0.1.3
File Size Uploaded Provenance
version-handle-0.1.3.tar.gz 5.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for version-handle 0.1.3
File Interpreter ABI Platform
version_handle-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 10.1 kB

Release files / version-handle-0.1.3.tar.gz

Download URL version-handle-0.1.3.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
af4f6afb09b0816f4c1a167f46b304fb82ff07ac2dc82cc78914329ab240bb2d
BLAKE2b-256 checksum
How to use checksums
a92440af833443642c7f24472c7d7951f76e14f0cab655c113257fe65d67e880
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.10

Release files / version_handle-0.1.3-py3-none-any.whl

Download URL version_handle-0.1.3-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c167832f62570b2c9d0f22c5e18cfc640ad814131c9a0c4308998cc75ccde5ae
BLAKE2b-256 checksum
How to use checksums
f68c07a6a2669382f335b5a08955716cc1c27dc18d847f59a72323f931c10e99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.8.10

Security for version-handle 0.1.3

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.

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