wsgiappversion
What does it do?
Adds a /version url that returns a json response of the current application version.
Example usage:
from wsgiappversion import ApplicationVersion from my_project import MyWSGIApp application = MyWSGIApp() application = ApplicationVersion(application, determine_version='my_project')
The required determine_version argument is used to determine what the current version actually is. determine_version can be either a string or a callable that takes no arguments. When a string is used then the version is determined by calling pkg_resources.require(package_name). If that would not work for your application then a callable that returns the correct version can be used.
Since a package version would likely not change without an application restart we would recommend using a closure (or some other similar method of caching a value) as your callable.
Metadata
Release files for wsgiappversion 1.0.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 |
|---|---|---|---|---|
| wsgiappversion-1.0.0.tar.gz | 3.1 kB | Without provenance | Details for wsgiappversion-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wsgiappversion-1.0.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for wsgiappversion-1.0.0-py2.py3-none-any.whl |
Total release size: 7.1 kB
Release files / wsgiappversion-1.0.0.tar.gz
| Download URL | wsgiappversion-1.0.0.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
63f2549087264fedb8259f351da0d7189e52ef904c5877f82e9c6226eae5774e
|
|
BLAKE2b-256 checksum How to use checksums |
08619c8ca181ade35e27c4d2cd55b21fd9edea8ed2da6a6b378f47ffdaa387dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / wsgiappversion-1.0.0-py2.py3-none-any.whl
| Download URL | wsgiappversion-1.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
7ba7de0f6dc11b7625d24957bede2f527f3b66e957c5a79def87cb8a21f33940
|
|
BLAKE2b-256 checksum How to use checksums |
353f4f006dd18e0f5a5eb4361d897cee6d9eea910020c2cfedbe93ab4d36213c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for wsgiappversion 1.0.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.