This is a Project that utilizes the AsyncAPI templates to generate code to know weather of a location.
- Fork and clone the Repo.
- Run npm i command in the terminal.
- Go into the test/project/config.py file and Paste the Weather API KEY. You can get it from weatherapi.com
- Now delete the test/project/client.py file. It will be regenerated using generator.
- In the Terminal run command 'asyncapi generate fromTemplate ./test/fixtures/asyncapi.yml ./ -o test/project --force-write -p server=dev'.
- A client.py file will be formed in the test/project folder.
- Now run the command 'python test/project/cli.py' in the terminal
- You will get prompt to enter the location of which you want to know the weather details.
- After entering the location you will get the weather details.
For More information about the Templates and Generator go to https://www.asyncapi.com/docs/tools/generator/generator-template .