Skip to main content

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

PyPI

> 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

versionmanagerpy-1.0.2.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

versionmanagerpy-1.0.2-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

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

Hashes for versionmanagerpy-1.0.2.tar.gz
Algorithm Hash digest
SHA256 bcbfb3d0547853ca219095cadf3db6837ec123c75f8cf4ff397057e7dfbd033d
MD5 239577976ab1eb5ec1f3d3c71e413594
BLAKE2b-256 ade99df4b5b8e39e3d218e94f658934f217d8360f4116aed439d2431f9e89e8e

See more details on using hashes here.

File details

Details for the file versionmanagerpy-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for versionmanagerpy-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7fdd2d8b1571743977bb24f6c8d0962be5f096c3d5856ffa9df347ca0d71318c
MD5 fdf13bf56fb79386be96b4cae736a972
BLAKE2b-256 f2bf1cf2695d80d0e2fd600ca37d71f70f903f6878c9a23d828af406a8211d26

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page