{"id":23557184,"url":"https://github.com/moreati/ansible-uv","last_synced_at":"2025-04-30T07:42:59.415Z","repository":{"id":265914621,"uuid":"882848313","full_name":"moreati/ansible-uv","owner":"moreati","description":"Ansible bindings for uv pip, by Astral.sh","archived":false,"fork":false,"pushed_at":"2025-01-02T11:45:22.000Z","size":24,"stargazers_count":13,"open_issues_count":7,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-23T03:08:25.453Z","etag":null,"topics":["ansible","ansible-collection"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/ui/repo/published/moreati/uv/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moreati.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-03T22:48:08.000Z","updated_at":"2025-04-16T14:43:18.000Z","dependencies_parsed_at":"2024-12-01T14:30:42.395Z","dependency_job_id":"9e838019-d2d6-4d52-ad5c-c69f252ea6b4","html_url":"https://github.com/moreati/ansible-uv","commit_stats":null,"previous_names":["moreati/ansible-uv"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moreati%2Fansible-uv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moreati%2Fansible-uv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moreati%2Fansible-uv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moreati%2Fansible-uv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moreati","download_url":"https://codeload.github.com/moreati/ansible-uv/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251663432,"owners_count":21623900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-collection"],"created_at":"2024-12-26T14:20:22.782Z","updated_at":"2025-04-30T07:42:59.361Z","avatar_url":"https://github.com/moreati.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible Collection - moreati.uv\n\nA module for managing Python packages and virtualenvs using Astral's [uv].\nThe module is adapted from on Ansible's builtin [ansible.builtin.pip], so it\ncan be used as a drop in replacement.\n\n[ansible.builtin.pip]: https://docs.ansible.com/ansible/latest/collections/ansible/builtin/pip_module.html\n[uv]: https://docs.astral.sh/uv/\n\n## Example\n\n```yaml\n- name: Demonstrate moreati.uv\n  hosts: localhost\n  gather_facts: false\n  tasks:\n    - name: Install requests to a virtualenv\n      moreati.uv.pip:\n        name: requests\n        virtualenv: ~/venv\n```\n\n```console\n$ ansible-playbook playbook.yml -v\nPLAY [Demonstrate moreati.uv] **************************************************\n\nTASK [Install requests to a virtualenv] ****************************************\nchanged: [localhost] =\u003e changed=true\n  cmd:\n  - /Users/alex/.cargo/bin/uv\n  - pip\n  - install\n  - --python\n  - /Users/alex/venv/bin/python\n  - requests\n  name:\n  - requests\n  requirements: null\n  state: present\n  stderr: |-\n    Using CPython 3.13.0 interpreter at: /Users/alex/.local/share/uv/tools/ansible-core/bin/python\n    Creating virtual environment at: /Users/alex/venv\n    Activate with: source /Users/alex/venv/bin/activate\n    Using Python 3.13.0 environment at /Users/alex/venv\n    Resolved 5 packages in 44ms\n    Installed 5 packages in 5ms\n     + certifi==2024.8.30\n     + charset-normalizer==3.4.0\n     + idna==3.10\n     + requests==2.32.3\n     + urllib3==2.2.3\n  stderr_lines: \u003comitted\u003e\n  stdout: ''\n  stdout_lines: \u003comitted\u003e\n  version: null\n  virtualenv: /Users/alex/venv\n\nPLAY RECAP *********************************************************************\nlocalhost                  : ok=1    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0\n\n$ ~/venv/bin/python -c \"import requests; print(requests.get('https://httpbin.org/get'))\"\n\u003cResponse [200]\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoreati%2Fansible-uv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoreati%2Fansible-uv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoreati%2Fansible-uv/lists"}