Skip to content

Python Doc

Adrian edited this page May 3, 2022 · 2 revisions

Install all requirements

Source: https://stackoverflow.com/questions/46419607/how-to-automatically-install-required-packages-from-a-python-script-as-necessary

pip install pipreqs
pip install -r requirements.txt

OpenAPI configuration

Once the OpenAPI files are generated for python it's necessary to change the host in the configuration.py file from "None" to "http://localhost:8080/musicshop-1.0".

image

Using OpenAPI with python

import openapi_client.api.default_api as default_api

thomas = default_api.DefaultApi().find_albums_by_song_title('bad')
print(thomas)
Clone this wiki locally