Skip to main content

A way to ensure critical libraries are up-to-date.

Project description

A way to ensure critical libraries are up-to-date

PyPI - Version PyPI - Implementation PyPI - Python Version PyPI - Status Static Badge Static Badge Static Badge Documentation Status PyPI - License PyPI - Wheel

The gitvck library is a CPython project which is designed to help ensure the latest version of a critical library is being used by your project.

Sometimes a project relies on the latest version of an underlying library. The gitvck library is designed to run in the background on program startup and check if the version of a critical library is the latest version available. If the critical library being imported is not the latest, the user is alerted that a later version is available. If the latest version is already being used, the test ends silently.

However, this is a notification-only service. The user is not prevented from carrying on.

If you have any questions that are not covered by this documentation, or if you spot any bugs, issues or have any recommendations, please feel free to contact us.

Installation

For most users, the easiest way is probably to install the latest version hosted on PyPI, after activating the appropriate virtual environment.

pip install gitvck

Using the Library

The documentation suite contains detailed explanation and example usage for each of the library's importable modules. For detailed documentation, usage examples and links the source code itself, please refer to the Library API page.

Quickstart

To demonstrate how easy it is to get up and running, the template below can be copied and pasted into your program's primary __init__.py module. When your program starts up, the __init__.py module is run, and performs the version check in the background.

To verify the version of a critical library against GitHub use:

from gitvck import gitvck
from <project>._version import __version__

gitvck.VersionCheck(name='project-spam',
                    source='git',
                    path='https://github.com/s3dev/project-spam',
                    version=__version__).test()

More example templates can be found in the gitvck module documentation page.

Sources

The following code configuration sources can be accessed by gitvck:

  • PyPI
  • GitHub
  • Git (a local or remote repository, accessed through a filesystem)

Guidance for using these various sources can be found in the gitvck module documentation page.

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

gitvck-2.1.0.tar.gz (2.9 MB view details)

Uploaded Source

Built Distribution

gitvck-2.1.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file gitvck-2.1.0.tar.gz.

File metadata

  • Download URL: gitvck-2.1.0.tar.gz
  • Upload date:
  • Size: 2.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.8

File hashes

Hashes for gitvck-2.1.0.tar.gz
Algorithm Hash digest
SHA256 678fe720dde57fd2eb82a4b09e830ba8873d76e8abcd4cad76074cb3f1eb3776
MD5 a672833522bc1a7e16bf27cd3252eb3e
BLAKE2b-256 b6be29c48c9af5317962afc9388e2abcf02e9ba8eb1d82f7e7ce30312659f93e

See more details on using hashes here.

File details

Details for the file gitvck-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: gitvck-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.8

File hashes

Hashes for gitvck-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7049f9fdc493a9b882e805549bc7c4b650c36454b82636abc8d35c3ff3288660
MD5 95b49f2c425c0630526dc95732556bd4
BLAKE2b-256 b279611d3867431d4bf2d17e2ae4c8315d2671a9a587ce5b0bc3be12b9736fa7

See more details on using hashes here.

Supported by

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