Skip to content

t-m0riyama/awx-api-demo2

Repository files navigation

AWX API Demo ver.2

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/

Requirement

  • Python 3.10 or later
  • flet 0.20 or later

Contents

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

How to use

  1. install python modules.
$ pip install -r requirements.txt
  1. specify the AWX URL.
$ export AWX_URL=https://awx.example.com/
  1. specifies the port number to listen on, if necessary. (default 8888)
$ export FLET_PORT=8000
  1. run the main script.
$ python main.py

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages