Skip to main content

Ensure pip package version, and auto update if not

Project description

Usage:

import pip_ensure_version

# pip_ensure_version.set_debug()

pip_ensure_version.require_package(
    "tqdm",     # package name
    "4.47",     # pin version (optional)
)

pip_ensure_version.require_gitpackage(
    "soraxas-toolbox",                          # package name
    "soraxas/python-soraxas_toolbox",           # repo name (default to github)
    "aa00d757b58c43523d7c518cdac600d4a75c6015", # commit id (optional)
)

pip_ensure_version.require_gitpackage(
    "easy-visualiser",
    ">0.1.2",
)

# at this point, the requested package will be up-to-date
import tqdm
import soraxas_toolbox
import easy_visualiser

...

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

pip-ensure-version-1.0.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

pip_ensure_version-1.0.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file pip-ensure-version-1.0.1.tar.gz.

File metadata

  • Download URL: pip-ensure-version-1.0.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for pip-ensure-version-1.0.1.tar.gz
Algorithm Hash digest
SHA256 4c19ba4c3e5148c1adfb755f0ba0ddb2db3eddc1a968d52484c88b8d449f80bb
MD5 157a3c221126500e365f3220d6bcd55e
BLAKE2b-256 f53102b95c761cab28a95fbb62514566f71d1107115d5a15c948674011f5707d

See more details on using hashes here.

File details

Details for the file pip_ensure_version-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pip_ensure_version-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 47378af3e8417a25fdf66cff8ddf878b08c74731a7999fbb56363f2c1c52c2af
MD5 4151835910b76a16687f9ca2e4dc0b91
BLAKE2b-256 261baa9b507649d77c60b56a2e2f68cdbddfb7758d0be8a58759cdc31eaf95a1

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