Skip to main content

Versioner is a very basic Python command-line tool and library to keep track of the version of your project, any kind of project.

Installation

You can install the last stable release of Versioner using pip:

$ pip install versioner

Usage

Its usage is very simple. If you run versioner without arguments, it will print the version currently stored in a file named VERSION in the current folder. If such file does not exist, versioner creates it with an initial version of 0.0.1:

$ versioner
0.0.1
$ cat VERSION
0.0.1

Versioner accepts a series of arguments to increase, decrease and set the three diferent categories, you can increase the major version number with:

$ versioner +major
1.0.1

Or decrease the revision number with:

$ versioner -revision
1.0.0

Or directly set the value of each component:

$ versioner minor=2 revision=5
1.2.5

All this operations will update the VERSION file. As you can see, Versioner uses a three-digit versioning schema, major.minor.revision, which should fit most needs. At the end of the day, if you need a different or more robust versioning schema, chances are you have the knowledge to build a more suitable tool yourself - or send a patch!

Metadata

Release files for versioner 0.0.7

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

Source distribution (sdist)

Source distribution for versioner 0.0.7
File Size Uploaded Provenance
versioner-0.0.7.tar.gz 10.2 kB Without provenance Details

Release files / versioner-0.0.7.tar.gz

Download URL versioner-0.0.7.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
adbb133fa1196099abbf1b4e70c1fcc01bb79bf7b8fe39adeffd9a1912a957cf
BLAKE2b-256 checksum
How to use checksums
d6b09279a5370beb13bdd54110b6ec8ebfbeaada916ca686f00c44610cd1339d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for versioner 0.0.7

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