Skip to main content

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

uvify-0.1.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uvify-0.1.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

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

Hashes for uvify-0.1.0.tar.gz
Algorithm Hash digest
SHA256 130ee7df302c6517d59a65e4e906ce85e11b816cb1638b97ebe3fe1b73bfcd5a
MD5 ef73ceb2323c10f693547ea4f4e958f9
BLAKE2b-256 42132579cd380e3760d40b4bc19dba963f556a911402af0173baaa283bf435ab

See more details on using hashes here.

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

Hashes for uvify-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8eff4438b9c8e0b943fd8c01852c365801aa16f8ae78445d53f9471e91f720a0
MD5 d7ad0169b8959653a6b739c1ba434023
BLAKE2b-256 af9e4c161d219cbcadf28bc3f1b5f188c8579079935052bc27a078c265a0bc0f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page