{"id":15292055,"url":"https://github.com/irunasroot/pyawx-client","last_synced_at":"2025-07-25T20:31:41.471Z","repository":{"id":53117313,"uuid":"344011004","full_name":"irunasroot/pyawx-client","owner":"irunasroot","description":"API library for interacting with Ansible AWX","archived":false,"fork":false,"pushed_at":"2022-11-13T22:00:03.000Z","size":104,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-13T09:27:10.037Z","etag":null,"topics":["ansible","ansible-playbook","ansible-playbooks","ansible-project","api","awx","awx-ansible","awx-cli","python","tower","tower-cli"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/irunasroot.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-03T05:21:12.000Z","updated_at":"2024-03-06T03:55:27.000Z","dependencies_parsed_at":"2023-01-22T18:00:54.932Z","dependency_job_id":null,"html_url":"https://github.com/irunasroot/pyawx-client","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irunasroot%2Fpyawx-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irunasroot%2Fpyawx-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irunasroot%2Fpyawx-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irunasroot%2Fpyawx-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/irunasroot","download_url":"https://codeload.github.com/irunasroot/pyawx-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227614682,"owners_count":17793949,"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-playbook","ansible-playbooks","ansible-project","api","awx","awx-ansible","awx-cli","python","tower","tower-cli"],"created_at":"2024-09-30T16:16:20.784Z","updated_at":"2024-12-01T19:08:18.459Z","avatar_url":"https://github.com/irunasroot.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyawx-client\nA python library for interacting with Ansible AWX instances\n\n![Unittest - master](https://github.com/irunasroot/pyawx-client/workflows/Python%20package/badge.svg?branch=master)\n\n# Installation\nYou can install from pypi using pip\n``bash\npip install pyawx-client\n``\n\n# Usage\nAWX provides an API v2 for interacting with it. Most of the API is supported but keep in mind this is in alpha\nand not everything will be built yet\n\nThe Client object sort of works in the idea of SQLAlchemy... at least for now.\n\nAlso, please be aware that models, or the python API could change since this project is still in Apha.\n\nGet a list of Jobs\n```python\nfrom pyawx import Client\nfrom pyawx.models.jobs import Job\n\nclient = Client(\"https://awx.mycompany.com\", username=\"me\", password=\"password\")\n\njobs = client.get_data(Job)\n```\n\nCreate a job template\n```python\nfrom pyawx import Client\nfrom pyawx.models.jobs import JobTemplate\n\nclient = Client(\"https://awx.mycompany.com\", username=\"me\", password=\"password\")\n\nnew_job = JobTemplate(name=\"My Job\", description=\"Do some stuff\", project=1)\n\nclient.add(new_job)\nclient.commit()\n```\n\nDelete a job template\n```python\nfrom pyawx import Client\nfrom pyawx.models.jobs import JobTemplate\n\nclient = Client(\"https://awx.mycompany.com\", username=\"me\", password=\"password\")\n\njob_template = client.get_data(JobTemplate)[0]\n\nclient.delete(job_template)\nclient.commit()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firunasroot%2Fpyawx-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Firunasroot%2Fpyawx-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firunasroot%2Fpyawx-client/lists"}