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)
)

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

...

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.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

pip_ensure_version-1.0.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pip-ensure-version-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2ecc5c0866cdd3473836bfafeb8853846583e10ce6082ba0b810dfd9cf745974
MD5 aa366bd78f64a81f2804885b21063cf7
BLAKE2b-256 8b2beda82bb5c73a2ee806c5869015d424d15db1eefed0ae57ec32c801c9abd9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pip_ensure_version-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1f7bd354075c3e6c97d9853d1a12db30d87f32d56e05f3e49fc2e4a8b37003aa
MD5 d025ca3ed55c1f4340de3886c04a1ca8
BLAKE2b-256 f424a84916b8a60ffdda08a2c4f02eda5e9d460f92f206e81682d8d1b7e20bab

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