Package for a better version management in python projects
Project description
Version helper
version-helper
is a package for a better version management in python projects.
This package is still under development. Code may change frequently.
from version_helper import Version
v = Version.get_from_git_describe()
print(v.core) # major.minor.patch
print(v.full) # major.minor.patch[-prerelease][+build]
Table of contents
Requirements
Installing version-helper
pip install version-helper
Usage
Reading version from a file
import pathlib
from version_helper import Version
version = Version.read_from_file(
file=pathlib.Path('/path/to/my/version_file.txt'),
variable_name='APP_VERSION',
separator='=',
)
print(version)
Writing version to a file
import pathlib
from version_helper import Version
version = Version(1, 2, 3)
version.write_to_file(
file=pathlib.Path('/path/to/my/version_file.txt'),
variable_name='APP_VERSION',
separator='=',
)
Changelog
All notable changes to this project will be documented in the CHANGELOG.md.
References
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
version-helper-0.3.0a0.tar.gz
(7.8 kB
view hashes)
Built Distribution
Close
Hashes for version_helper-0.3.0a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad58614d022338ea183abf8882cd8f0ec20619e4ed9eab4a1a3690b9e93ba19a |
|
MD5 | 31e76744e5a7ed385b3444ececb89318 |
|
BLAKE2b-256 | dbfd6b5c35b78a5fda49d0fc1d8641e3c962994ff00790cd2b7228c97990c838 |