Get one-liner commands for faster python environment uv python manager.
Project description
Uvify
Instant python environments from github links with GitIngest and uv python manager. Turn any GitHub repository to a uv command
uv is by far the fastest python and package manager.
Source: https://github.com/astral-sh/uv
Using uvify CLI locally
Dog Fooding - uvify on uvify:
uv run uvify https://github.com/psf/requests | jq
{
"oneLiner": "uv run --python '3.11' --with 'certifi>=2017.4.17,charset_normalizer>=2,<4,idna>=2.5,<4,urllib3>=1.21.1,<3,requests' python -c 'import requests;print(requests.__version__)'",
"uvInstallFromSource": "uv run --with 'git+https://github.com/psf/requests' --python '3.11' python",
"dependencies": [
"certifi>=2017.4.17",
"charset_normalizer>=2,<4",
"idna>=2.5,<4",
"urllib3>=1.21.1,<3"
],
"packageName": "requests",
"pythonVersion": "3.11"
}
Using the FastAPI application and HTTP client
# Run the server
uv run uvicorn src.uvify:api --host 0.0.0.0 --port 8000
# Using curl
curl http://0.0.0.0:8000/psf/requests | jq
# Using wget
wget -O- http://0.0.0.0:8000/psf/requests | jq .oneLiner
Developing
# Install dependencies
uv venv
uv sync --dev
uv run pytest
# Install editable version
uv run pip install --editable .
uv run uvify psf/requests
# Run the HTTP API with reload
uv run uvicorn src.uvify:api --host 0.0.0.0 --port 8000 --reload
curl http://0.0.0.0:8000/psf/requests | jq
Thanks
Thanks to the UV team and Astral for this amazing tool.
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
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 uvify-0.1.0.tar.gz.
File metadata
- Download URL: uvify-0.1.0.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
130ee7df302c6517d59a65e4e906ce85e11b816cb1638b97ebe3fe1b73bfcd5a
|
|
| MD5 |
ef73ceb2323c10f693547ea4f4e958f9
|
|
| BLAKE2b-256 |
42132579cd380e3760d40b4bc19dba963f556a911402af0173baaa283bf435ab
|
File details
Details for the file uvify-0.1.0-py3-none-any.whl.
File metadata
- Download URL: uvify-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8eff4438b9c8e0b943fd8c01852c365801aa16f8ae78445d53f9471e91f720a0
|
|
| MD5 |
d7ad0169b8959653a6b739c1ba434023
|
|
| BLAKE2b-256 |
af9e4c161d219cbcadf28bc3f1b5f188c8579079935052bc27a078c265a0bc0f
|