Skip to main content

Get one-liner commands for faster python environment uv python manager.

Project description

Uvify

Faster python environments. Turn any GitHub repository or local directory to a uv command.

  • uvify uses GitIngest and uv python manager.
  • It creates python environments faster, and to build dockerfiles faster.

uv is by far the fastest python and package manager.

Source: https://github.com/astral-sh/uv

Command Line: Using uvify CLI locally

Dog Fooding - uvify on uvify:

uv run --with uvify uvify https://github.com/psf/requests | jq

[
  {
    "file": "pyproject.toml",
    "fileType": "pyproject.toml",
    "oneLiner": "uv run --python '3.10' python",
    "uvInstallFromSource": "uv run --with 'git+https://github.com/psf/requests' --python '3.10' python",
    "dependencies": [],
    "packageName": null,
    "pythonVersion": "3.10",
    "isLocal": false
  },
  {
    "file": "setup.py",
    "fileType": "setup.py",
    "oneLiner": "uv run --python '>=3.8.10' --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.8.10' python",
    "dependencies": [
      "certifi>=2017.4.17",
      "charset_normalizer>=2,<4",
      "idna>=2.5,<4",
      "urllib3>=1.21.1,<3"
    ],
    "packageName": "requests",
    "pythonVersion": ">=3.8",
    "isLocal": false
  }
]

Query specific fields:

Parse all python artifacts in repository:

uvify psf/requests
uvify https://github.com/psf/requests

Parse specific fields in the response

uvify psf/black | jq '.[] | {file: .file, pythonVersion: .pythonVersion, dependencies: .dependencies, packageName: .packageName}'

Use existing python repos with 'uv':

uvify psf/requests | jq '.[0].oneLiner'
"uv run --with 'git+https://github.com/psf/requests' --python '3.11' python"

Install a repository with 'uv' from github sources:

uvify psf/requests | jq '.[0].uvInstallFromSource'

List the dependencies.

uvify psf/requests | jq '.[].dependencies'
[
  "certifi>=2017.4.17",
  "charset_normalizer>=2,<4",
  "idna>=2.5,<4",
  "urllib3>=1.21.1,<3"
]

HTTP API: Using uvify with client/server architecture instead of CLI

# 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 locally
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.1.tar.gz (6.8 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.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file uvify-0.1.1.tar.gz.

File metadata

  • Download URL: uvify-0.1.1.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.18

File hashes

Hashes for uvify-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3f7bd092451739922c4bc32d27cd0437022da888ccab60ef60f126ec63458ddf
MD5 cf41115184a47df838311567bd3d8e7d
BLAKE2b-256 11c8e935a9b7de682e012c3ee9664510b529aca029893957f6b9bb9c022db4a6

See more details on using hashes here.

File details

Details for the file uvify-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: uvify-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.18

File hashes

Hashes for uvify-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d753452529d76dafbd6a7f3f91ce29683406fb41da23f68a06ac5302ec6b761d
MD5 b3c36dbb0bbb8605809baf947391627e
BLAKE2b-256 d2ebd49623b93d540ece572da6ca5c57456e993cd609f657aa398e001ed7ecff

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