csemver
csemver is the object orientied optimized Version of semver. It is much more consistent because you only need one object for all operations.
Features
Increase Versions
To increase the different versions csemver provides three methods
- incMajor
- incMinor
- incPatch
from csemver import csemver as Version
a = Version();
print(a)
a.incMajor();
print(a)
a.incMinor();
print(a)
a.incPatch();
print(a)
foo@bar:~$ python test.py
0.1.0
1.0.0
1.1.0
1.1.1
Overwrite Version
To overwrite the current Version just set a new Semver-String for csemver.number
from csemver import csemver as Version
a = Version();
print(a)
a.number ="1.0.0-pre+build.1";
print(a)
foo@bar:~$ python test.py
0.1.0
1.0.0-pre+build.1
Reset Version
Delete the number property to reset the Version to 0.1.0
from csemver import csemver as Version
a = Version("1.0.0");
print(a)
del a.number
print(a)
foo@bar:~$ python test.py
1.0.0
0.1.0
Compare different versions:
You can compare csemver instances with >, >=, ==, !=, <=, <
from csemver import csemver as Version
a = Version("1.1.1")
b = Version("1.1.1")
repr(a)
repr(b)
print(a<b)
b.incPatch()
print(b)
print(a<b)
foo@bar:~$ python test.py
Version<1.1.1> instance at 0x00000159D2061BA8
Version<1.1.1> instance at 0x00000159D2061DD8
False
1.1.2
True
Metadata
Release files for csemver 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| csemver-0.1.0.tar.gz | 15.9 kB | Without provenance | Details for csemver-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| csemver-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for csemver-0.1.0-py3-none-any.whl |
Total release size: 31.3 kB
Release files / csemver-0.1.0.tar.gz
| Download URL | csemver-0.1.0.tar.gz |
|---|---|
| Size | 15.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
43ebd1b3dfda17f6eb43ea12e5542aa27871599c34421ae261c98b33faf520ff
|
|
BLAKE2b-256 checksum How to use checksums |
030e8cf90b5702536fa1d421ce9168520ab9b4f3e149eabf65bbd4234759da37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.31.0 CPython/3.6.4
|
Release files / csemver-0.1.0-py3-none-any.whl
| Download URL | csemver-0.1.0-py3-none-any.whl |
|---|---|
| Size | 15.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6df4c19a9d8ed9b968cd9132b0f93752c20f64d36ab0799459001148d8eed3ff
|
|
BLAKE2b-256 checksum How to use checksums |
4ec739fa9289f5bcc4d3bc3fb772c8bb68a11b40a11b8be4ddd373ede931b62a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.31.0 CPython/3.6.4
|
Security for csemver 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.