pinterest/pinterest-python-generated-api-client — reverse-engineered prompt

Reverse engineered prompt

Build me a Python client library for Pinterest’s v5 REST API. I want something installable that’s mostly auto generated from the OpenAPI spec, with the API endpoints exposed as Python classes and models so I can call Pinterest endpoints without hand writing requests. It should support Python 3.6 and up, let me set the API host and an OAuth access token, and include a simple example showing how to authenticate and call something like ad account analytics.

Please include the usual packaging so I can install it with pip or setup.py, plus generated docs for the available endpoints and models, and some basic tests or integration checks. Keep the structure clean and consistent with a generated client project, not a full app or dashboard.

If there are any gaps in the repo, look up the current Pinterest developer docs and OpenAPI generator docs to fill them in. Also note somewhere that this is a generated low level client, not necessarily the main hand crafted SDK.

Want more depth? Deep Reverse