pip install labstack
Sign up to get an API key
Create a file app.py
with the following content:
from labstack import Client, APIError
client = Client('<API_KEY>')
try:
response = client.barcode_generate(format='qr_code', content='https://labstack.com')
client.download(response['id'], '/tmp/' + response['name'])
except APIError as error:
print(error)
From terminal run your app:
python app.py