Skip to content

polyapi/polyapi-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PolyAPI Python Client

This is the PolyAPI Python client.

Please set the following environment variables:

1. Install Libraries

Then run the following

pip3 install git+https://github.com/polyapi/polyapi-python.git

2. Generate Your Functions

Now you can run the following to generate your library

python3 -m polyapi generate

You 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

3. Test

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))

Unit Tests

To run this library's unit tests, please clone the repo then run:

python3 -m unittest discover

About

PolyAPI Python SDK

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages