app_version 0.1.0
pip install app_version==0.1.0
Released:
A tiny utility to get application version from pkg_resouces
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Alisue
- Tags application , version
Classifiers
- Development Status
- Intended Audience
- License
- Programming Language
Project description
Do you write the version information on setup.py and __init__.py? This tiny application allow you to access version information of setup.py from __init__.py.
Based on this post, I write this tiny application for convinience.
Check online documentation for more details.
Installation
Use pip like:
$ pip install app_version
Usage
The following code is an example __init__.py.
# coding: utf-8
from app_version import get_versions
__version__, VERSION = get_versions('your app name')
Then you can access the version string with __version__ and version tuple with VERSION. The version tuple is useful for comparing versions like
>>> VERSION = (0, 1, 2)
>>> VERSION > (0, 1, 0)
True
>>> VERSION > (0, 1, 1)
True
>>> VERSION > (0, 1, 2)
False
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Alisue
- Tags application , version
Classifiers
- Development Status
- Intended Audience
- License
- Programming Language
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
File details
Details for the file app_version-0.1.0.tar.gz
.
File metadata
- Download URL: app_version-0.1.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
4bc412f677a48240865e49691cdd9c1cc590a7fc67c7ad3fff4c93e34ab709c5
|
|
MD5 |
9449db9682f6ccc7c49b4af0bc6d7628
|
|
BLAKE2b-256 |
aa9ac4b6bd7194878b7c11494eef94eb52675887f196b291c2b878f5bf0802dd
|