A GitHub Project Version Manager.
Project description
versionmanager.py
A GitHub Project Version Manager that polls latest version data from GitHub repo release tag.
Installation
PIP
> pip install versionmanagerpy
Usage
versionmanager checks the version passed to its constructor against the tag attached to the latest release on a GitHub repo. Comparing the given version string against the tag_name value at https://api.github.com/repos/{author}/{projectName}/releases/latest. This means release tag names need to be formatted specifically for this. Versionmanager doesnt support letters in version categories* and assumes a separator of a period unless told otherwise.
*A version category is a set of numbers separated by a uniform character (e.g. 2.0.3 has categories 2, 0, and 3). Using Semantic Versioning there are usually 3 version categories (major, minor, and patch) but versionmanager supports more categories as well.
import versionmanagerpy
def main():
vm = VersionManager("Aquatic-Labs", "Umbra-Mod-Menu", "2.0.4")
vm.on_outdated += lambda: print("Outdated.")
vm.on_current += lambda: print("Current.")
vm.on_dev += lambda: print("Dev.")
vm.check_status()
if __name__ == "__main__":
main()
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file versionmanagerpy-1.0.2.tar.gz.
File metadata
- Download URL: versionmanagerpy-1.0.2.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bcbfb3d0547853ca219095cadf3db6837ec123c75f8cf4ff397057e7dfbd033d
|
|
| MD5 |
239577976ab1eb5ec1f3d3c71e413594
|
|
| BLAKE2b-256 |
ade99df4b5b8e39e3d218e94f658934f217d8360f4116aed439d2431f9e89e8e
|
File details
Details for the file versionmanagerpy-1.0.2-py3-none-any.whl.
File metadata
- Download URL: versionmanagerpy-1.0.2-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7fdd2d8b1571743977bb24f6c8d0962be5f096c3d5856ffa9df347ca0d71318c
|
|
| MD5 |
fdf13bf56fb79386be96b4cae736a972
|
|
| BLAKE2b-256 |
f2bf1cf2695d80d0e2fd600ca37d71f70f903f6878c9a23d828af406a8211d26
|