Provides one-time installation of Python package
Project description
python-require: Provides one-time installation of Python package
python-require allows for one-time installation of a Python package. It is particularly useful for prototyping, where you need to quickly install a package and use it in your code but you don't want to bloat your environment. Inspired by npx and pipx
It's worth noting that packages installed by python-require are automatically deleted after the script finishes running. This means that the package will not persist in your development environment, and will need to be re-installed the next time you run your script. This behavior is intentional, as it helps prevent conflicts between different versions of packages that may be installed in your environment.
Installation
pip install require-package
Usage
from require_package import require
# Install a package
requests = require("requests")
r = requests.get("https://google.com")
print(r.status_code)
Caveats
python-require is not a package manager. It is a tool for prototyping. It is not meant to be used in production. Additionally, Python-Require may not work properly in all environments. In particular, it may have trouble installing packages in virtual environments with non-standard configurations. Use at your own risk!
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file require_package-0.0.1.tar.gz.
File metadata
- Download URL: require_package-0.0.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26ad946064d4dda083f773f64dc3def556f28b16255e23c5344cc6c7f0c3e6ec
|
|
| MD5 |
3a8a6ecca38d2628c3d53727a3f1e56f
|
|
| BLAKE2b-256 |
07f0369b806bb5b4ed65be44f28fa8146a3e5b468c2052a95f8ac516f690d309
|
File details
Details for the file require_package-0.0.1-py3-none-any.whl.
File metadata
- Download URL: require_package-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46252b51b1d56de762e01ef6504ab11710373c8946a0e49847edef7baded2cfa
|
|
| MD5 |
d0547660857371bf1060df62cf3b027b
|
|
| BLAKE2b-256 |
2bac548192fe4b53dab78163a8a811ba0c4fce5ace56ec739d0877f3082c6b04
|