Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Compiling a new python library for Pocketsmith

Compiling a new python library for Pocketsmith

  1. Clone the source code for the Python client library
  2. Inside that directory, clone the Pocketsmith API into python-pocketsmith-api/pocketsmith-api-spec.
  3. Use the Swagger editor to convert openapi.json to openapi.yaml. (Reference)
  4. Go back to the client library and run ./generate-pocketsmith-library.sh. The library will be written to ./pocketsmith.
  5. Place the new library in $PYTHONPATH. On macOS, you can use /usr/local/lib/python<ver>/site-packages/pocketsmith.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment