# Usage:
```py
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
...
```
Raw data
{
"_id": null,
"home_page": "https://github.com/soraxas/pip-ensure-version",
"name": "pip-ensure-version",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "",
"author": "Tin Lai (@soraxas)",
"author_email": "oscar@tinyiu.com",
"download_url": "https://files.pythonhosted.org/packages/f5/31/02b95c761cab28a95fbb62514566f71d1107115d5a15c948674011f5707d/pip-ensure-version-1.0.1.tar.gz",
"platform": null,
"description": "# Usage:\n\n```py\nimport pip_ensure_version\n\n# pip_ensure_version.set_debug()\n\npip_ensure_version.require_package(\n \"tqdm\", # package name\n \"4.47\", # pin version (optional)\n)\n\npip_ensure_version.require_gitpackage(\n \"soraxas-toolbox\", # package name\n \"soraxas/python-soraxas_toolbox\", # repo name (default to github)\n \"aa00d757b58c43523d7c518cdac600d4a75c6015\", # commit id (optional)\n)\n\npip_ensure_version.require_gitpackage(\n \"easy-visualiser\",\n \">0.1.2\",\n)\n\n# at this point, the requested package will be up-to-date\nimport tqdm\nimport soraxas_toolbox\nimport easy_visualiser\n\n...\n\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Ensure pip package version, and auto update if not",
"version": "1.0.1",
"project_urls": {
"Homepage": "https://github.com/soraxas/pip-ensure-version"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "261baa9b507649d77c60b56a2e2f68cdbddfb7758d0be8a58759cdc31eaf95a1",
"md5": "4151835910b76a16687f9ca2e4dc0b91",
"sha256": "47378af3e8417a25fdf66cff8ddf878b08c74731a7999fbb56363f2c1c52c2af"
},
"downloads": -1,
"filename": "pip_ensure_version-1.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4151835910b76a16687f9ca2e4dc0b91",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 5330,
"upload_time": "2024-01-17T05:06:36",
"upload_time_iso_8601": "2024-01-17T05:06:36.215127Z",
"url": "https://files.pythonhosted.org/packages/26/1b/aa9b507649d77c60b56a2e2f68cdbddfb7758d0be8a58759cdc31eaf95a1/pip_ensure_version-1.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f53102b95c761cab28a95fbb62514566f71d1107115d5a15c948674011f5707d",
"md5": "157a3c221126500e365f3220d6bcd55e",
"sha256": "4c19ba4c3e5148c1adfb755f0ba0ddb2db3eddc1a968d52484c88b8d449f80bb"
},
"downloads": -1,
"filename": "pip-ensure-version-1.0.1.tar.gz",
"has_sig": false,
"md5_digest": "157a3c221126500e365f3220d6bcd55e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 4267,
"upload_time": "2024-01-17T05:06:37",
"upload_time_iso_8601": "2024-01-17T05:06:37.938925Z",
"url": "https://files.pythonhosted.org/packages/f5/31/02b95c761cab28a95fbb62514566f71d1107115d5a15c948674011f5707d/pip-ensure-version-1.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-01-17 05:06:37",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "soraxas",
"github_project": "pip-ensure-version",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "pip-ensure-version"
}