You can create an inventory in AWX, and under the Sources tab, select the source type “Sourced from a Project.” Then, select your Python script (the dynamic inventory script you created) and ensure it runs within an appropriate AWX Execution Environment (EE) that contains all necessary Python packages. Make sure your script is executable in the repository so AWX can successfully run it after syncing your configured project.
Additionally, review the Update options in your source configuration and select what best suits your requirements. You can also configure an automatic schedule to ensure your dynamic inventory remains consistently up-to-date.