Skip to content

Generate python code from async api yaml files using docker-compose

Notifications You must be signed in to change notification settings

mxklb/asyncapi-to-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AsyncApi to Python

This uses asyncapi/python-paho-template to create python code from a given async-api.yaml via docker-compose.

How to use this

Configure/Set the following environment variables within the .env file:

APIPATH=./api
APIYAML=async-api.yaml
CODEPATH=./output
VERSION=0.2.10

APIPATH defines where to find a given APIYAML file. CODEPATH defines where to output the generated python code. Set VERSION=0.2.10 to define the python-paho-template release to be used.

Generate python code

To generate python code from a given api/async-api.yaml file, just call

docker-compose up --build

The generated python code can be found in the given output directory.

Automated tests Build Status

Travis CI generates code from $APIYAML and runs main.py against test.mosquitto.org:1883 using python3.

About

Generate python code from async api yaml files using docker-compose

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published