Compiling a new python library for Pocketsmith
- Clone the source code for the Python client library
- Inside that directory, clone the Pocketsmith API into
python-pocketsmith-api/pocketsmith-api-spec
. - Use the [Swagger editor][3] to convert openapi.json to openapi.yaml. [(Reference)][3ref]
- Go back to the client library and run ./generate-pocketsmith-library.sh. The library will be written to
./pocketsmith
. - Place the new library in $PYTHONPATH. On macOS, you can use
/usr/local/lib/python<ver>/site-packages/pocketsmith
.