This repository contains examples of AWX job execution via REST API. This is a sample of calling the API from the GUI(Flet).
See also. https://flet.dev/
- Python 3.10 or later
- flet 0.20 or later
awx-api-demo2
|-- LICENSE
|-- README.md: this document
|-- awx_demo
| |-- awx_api: AWX API modules
| |-- components: Flet component modules
| |-- db: SQLAlchemy database modules
| |-- db_helper: Database helper modules
| |-- models: SQLAlchemy database model modules
| `-- utils: Utilitiy modules
|-- docs: other documents
|-- main.py: main script
|-- script: helerp script
`-- requirements.txt: dependent modules
- install python modules.
$ pip install -r requirements.txt- specify the AWX URL.
$ export AWX_URL=https://awx.example.com/- specifies the port number to listen on, if necessary. (default 8888)
$ export FLET_PORT=8000- run the main script.
$ python main.py