Name | uvify JSON |
Version |
0.1.4
JSON |
| download |
home_page | None |
Summary | Get one-liner commands for faster python environment uv python manager. |
upload_time | 2025-07-28 22:07:53 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.10 |
license | MIT License Copyright (c) 2025 Avi Lumelsky. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
uv
python
environment
uvify
virtualenv
pip
poetry
venv
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Uvify
Turn python repositories to `uv` environments and oneliners, without diving into the code.<br>
- Generates oneliners for quick python environment setup
- Helps with migration to `uv` for faster builds in CI/CD
- It works on existing projects based on: `requirements.txt`, `pyproject.toml` or `setup.py`, recursively.
- Supports local directories.
- Supports GitHub links using <a href="https://gitingest.com/">Git Ingest</a>.
- It's fast!
## Prerequisites
| <a href="https://github.com/astral-sh/uv?tab=readme-ov-file#installation">uv</a>
## Demo
https://huggingface.co/spaces/avilum/uvify
[](https://www.star-history.com/#avilum/uvify&Date)
> uv is by far the fastest python and package manager.
<img src="assets/image.png">
<i>Source: https://github.com/astral-sh/uv</i>
You can run uvify with uv. <br>
Let's generate oneliners for a virtual environment that has `requests` installed, using PyPi or from source:
```shell
# Run on a local directory
uvx uvify . | jq
# Run on requests
uvx uvify https://github.com/psf/requests | jq
# or:
# uvx uvify psf/requests | jq
[
...
{
"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)'",
"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
}
]
```
### 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].dependencies'
```
### 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"
]
```
## Uvify HTTP Server: Using uvify with client/server architecture instead of SDK
First, install uvify with the optional API dependencies:
```shell
uv add uvify[api]
# or with pip:
# pip install uvify[api]
```
Then run the server:
```shell
# Run the server using the built-in serve command
uvify serve --host 0.0.0.0 --port 8000
# Or using uvicorn directly
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
```
## Developing
```shell
# Install dependencies (including optional API dependencies)
uv venv
uv sync --dev --extra api
uv run pytest
# Run linter before PR
./lint.sh
# Install editable version locally
uv run pip install --editable .
uv run python -m src.uvify --help
uv run python -m src.uvify psf/requests
# Run the HTTP API with reload
uv run uvicorn src.uvify:api --host 0.0.0.0 --port 8000 --reload
# Or use the built-in serve command:
# uv run python -m src.uvify serve --host 0.0.0.0 --port 8000
curl http://0.0.0.0:8000/psf/requests | jq
```
# Special Thanks
Thanks to the UV team and Astral for this amazing tool.
Raw data
{
"_id": null,
"home_page": null,
"name": "uvify",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "uv, python, environment, uvify, virtualenv, pip, poetry, venv",
"author": null,
"author_email": "Avi Lumelsky <avilum+gh@protonmail.com>",
"download_url": "https://files.pythonhosted.org/packages/f6/c8/5e85b1c91eeaca0e104b66c25af68b61c3be86540bb4e30b2233ee06c0e8/uvify-0.1.4.tar.gz",
"platform": null,
"description": "# Uvify\nTurn python repositories to `uv` environments and oneliners, without diving into the code.<br>\n\n- Generates oneliners for quick python environment setup\n- Helps with migration to `uv` for faster builds in CI/CD\n- It works on existing projects based on: `requirements.txt`, `pyproject.toml` or `setup.py`, recursively.\n - Supports local directories.\n - Supports GitHub links using <a href=\"https://gitingest.com/\">Git Ingest</a>.\n- It's fast!\n\n## Prerequisites\n| <a href=\"https://github.com/astral-sh/uv?tab=readme-ov-file#installation\">uv</a>\n\n## Demo\nhttps://huggingface.co/spaces/avilum/uvify\n\n[](https://www.star-history.com/#avilum/uvify&Date)\n\n> uv is by far the fastest python and package manager. \n<img src=\"assets/image.png\">\n\n<i>Source: https://github.com/astral-sh/uv</i>\n\nYou can run uvify with uv. <br>\nLet's generate oneliners for a virtual environment that has `requests` installed, using PyPi or from source:\n```shell\n# Run on a local directory\nuvx uvify . | jq\n\n# Run on requests\nuvx uvify https://github.com/psf/requests | jq\n# or:\n# uvx uvify psf/requests | jq\n\n[\n ...\n {\n \"file\": \"setup.py\",\n \"fileType\": \"setup.py\",\n \"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)'\",\n \"uvInstallFromSource\": \"uv run --with 'git+https://github.com/psf/requests' --python '>=3.8.10' python\",\n \"dependencies\": [\n \"certifi>=2017.4.17\",\n \"charset_normalizer>=2,<4\",\n \"idna>=2.5,<4\",\n \"urllib3>=1.21.1,<3\"\n ],\n \"packageName\": \"requests\",\n \"pythonVersion\": \">=3.8\",\n \"isLocal\": false\n }\n]\n```\n\n### Parse all python artifacts in repository:\n```\nuvify psf/requests\nuvify https://github.com/psf/requests\n```\n\n### Parse specific fields in the response\n```\nuvify psf/black | jq '.[] | {file: .file, pythonVersion: .pythonVersion, dependencies: .dependencies, packageName: .packageName}'\n```\n\n### Use existing python repos with 'uv':\n```\nuvify psf/requests | jq '.[0].oneLiner'\n\"uv run --with 'git+https://github.com/psf/requests' --python '3.11' python\"\n```\n### Install a repository with 'uv' from github sources:\n```\nuvify psf/requests | jq '.[0].dependencies'\n```\n\n### List the dependencies.\n```\nuvify psf/requests | jq '.[].dependencies'\n[\n \"certifi>=2017.4.17\",\n \"charset_normalizer>=2,<4\",\n \"idna>=2.5,<4\",\n \"urllib3>=1.21.1,<3\"\n]\n```\n\n## Uvify HTTP Server: Using uvify with client/server architecture instead of SDK\n\nFirst, install uvify with the optional API dependencies:\n```shell\nuv add uvify[api]\n# or with pip:\n# pip install uvify[api]\n```\n\nThen run the server:\n```shell\n# Run the server using the built-in serve command\nuvify serve --host 0.0.0.0 --port 8000\n\n# Or using uvicorn directly\nuv run uvicorn src.uvify:api --host 0.0.0.0 --port 8000\n\n# Using curl\ncurl http://0.0.0.0:8000/psf/requests | jq\n\n# Using wget\nwget -O- http://0.0.0.0:8000/psf/requests | jq\n```\n\n\n## Developing\n```shell\n# Install dependencies (including optional API dependencies)\nuv venv\nuv sync --dev --extra api\nuv run pytest\n\n# Run linter before PR \n./lint.sh\n\n# Install editable version locally\nuv run pip install --editable .\nuv run python -m src.uvify --help\nuv run python -m src.uvify psf/requests\n\n# Run the HTTP API with reload\nuv run uvicorn src.uvify:api --host 0.0.0.0 --port 8000 --reload \n# Or use the built-in serve command:\n# uv run python -m src.uvify serve --host 0.0.0.0 --port 8000\n\ncurl http://0.0.0.0:8000/psf/requests | jq\n```\n\n# Special Thanks \nThanks to the UV team and Astral for this amazing tool.\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2025 Avi Lumelsky. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
"summary": "Get one-liner commands for faster python environment uv python manager.",
"version": "0.1.4",
"project_urls": {
"homepage": "https://github.com/avilum/uvify"
},
"split_keywords": [
"uv",
" python",
" environment",
" uvify",
" virtualenv",
" pip",
" poetry",
" venv"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "f9af4f4fd3120fddbfe0cadc60da408c305053f0595ba1ce489838a7330ae329",
"md5": "90b3ce8a351f2143c2a183015387dfd0",
"sha256": "59a7ebcf28c6f95da0e0cb88bb374c64d7506f20983f70bcead3cd8394596ab7"
},
"downloads": -1,
"filename": "uvify-0.1.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "90b3ce8a351f2143c2a183015387dfd0",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 10104,
"upload_time": "2025-07-28T22:07:51",
"upload_time_iso_8601": "2025-07-28T22:07:51.876869Z",
"url": "https://files.pythonhosted.org/packages/f9/af/4f4fd3120fddbfe0cadc60da408c305053f0595ba1ce489838a7330ae329/uvify-0.1.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "f6c85e85b1c91eeaca0e104b66c25af68b61c3be86540bb4e30b2233ee06c0e8",
"md5": "550e700ba67eb9177c0f90787b2b7708",
"sha256": "df457b3979f07c7cab4c7544f0540665f30f193e2e006bef46a8fa90aa766cc2"
},
"downloads": -1,
"filename": "uvify-0.1.4.tar.gz",
"has_sig": false,
"md5_digest": "550e700ba67eb9177c0f90787b2b7708",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 9269,
"upload_time": "2025-07-28T22:07:53",
"upload_time_iso_8601": "2025-07-28T22:07:53.046918Z",
"url": "https://files.pythonhosted.org/packages/f6/c8/5e85b1c91eeaca0e104b66c25af68b61c3be86540bb4e30b2233ee06c0e8/uvify-0.1.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-28 22:07:53",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "avilum",
"github_project": "uvify",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "uvify"
}