This is the PolyAPI Python client.
Please set the following environment variables:
Then run the following
pip3 install git+https://github.com/polyapi/polyapi-python.gitNow you can run the following to generate your library
python3 -m polyapi generateYou will be prompted to enter the Poly server url you use and your Poly API key.
You can also provide these as environment variables (useful for deployment):
POLY_API_KEY='your_key'
POLY_API_BASE_URL='your_server' # e.g. na1.polyapi.io
That's it! Now open up a test file and you can run some code like so:
from polyapi import poly
print(poly.polyapi.function.api.list(my_server, my_api_key))To run this library's unit tests, please clone the repo then run:
python3 -m unittest discover