pyawx-client
A python library for interacting with Ansible AWX instances
Installation
You can install from pypi using pip
bash pip install pyawx-client
Usage
AWX provides an API v2 for interacting with it. Most of the API is supported but keep in mind this is in alpha and not everything will be built yet
The Client object sort of works in the idea of SQLAlchemy... at least for now.
Also, please be aware that models, or the python API could change since this project is still in Apha.
Get a list of Jobs
from pyawx import Client
from pyawx.models.jobs import Job
client = Client("https://awx.mycompany.com", username="me", password="password")
jobs = client.get_data(Job)
Create a job template
from pyawx import Client
from pyawx.models.jobs import JobTemplate
client = Client("https://awx.mycompany.com", username="me", password="password")
new_job = JobTemplate(name="My Job", description="Do some stuff", project=1)
client.add(new_job)
client.commit()
Delete a job template
from pyawx import Client
from pyawx.models.jobs import JobTemplate
client = Client("https://awx.mycompany.com", username="me", password="password")
job_template = client.get_data(JobTemplate)[0]
client.delete(job_template)
client.commit()
Metadata
Release files for pyawx-client 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pyawx-client-0.2.0.tar.gz | 36.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyawx_client-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 90.3 kB
Release files / pyawx-client-0.2.0.tar.gz
| Download URL | pyawx-client-0.2.0.tar.gz |
|---|---|
| Size | 36.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
29c39cee053ace00d367b7b2d81ddd47b4228fd6daa9d6a8aaca1049d8a7c7b4
|
|
BLAKE2b-256 checksum How to use checksums |
12f31b07fa94b55940fb748d7b0c43bd6162de49623cc0805b8a19bb7092f2a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1
|
Release files / pyawx_client-0.2.0-py3-none-any.whl
| Download URL | pyawx_client-0.2.0-py3-none-any.whl |
|---|---|
| Size | 53.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
53458ed919a9be5af4db63d73d405a7ada267f4f259bdfcebd9d32e31b5878c4
|
|
BLAKE2b-256 checksum How to use checksums |
7c7819f3affe9aefd9b56a7753391635eff616d698a389d6b24ac2a71206c5b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1
|
Security for pyawx-client 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.