palantir/foundry-platform-python ? reverse-engineered prompt
Reverse engineered prompt
Build me a Python SDK for Palantir Foundry’s API, with a clean client that can talk to the platform using either a personal user token or an OAuth client credentials flow. I want it to feel easy to use from regular Python code, with the main client ready to pick up hostname and auth from arguments, environment variables, or context when possible.
Please organize it so different major API versions can be imported separately, with the latest one available from the main package. Include the basic auth helpers, token refresh for the OAuth flow, and a simple quickstart style example in the docs. It should be well tested and easy to install as a normal pip package.
If you need to check the latest Foundry API details or auth guidance, look up the current docs online and match the behavior to that.
Are you gonna build this?
make sure you review the code using coderabbit