foundry-platform-sdk
The official Python library for the Foundry API
What it is and what it does
The Foundry Platform SDK is an auto-generated Python client for Palantir's Foundry API, providing structured access to platform resources like datasets, branches, and ontology metadata. It wraps HTTP calls to versioned Foundry API endpoints (v1, v2, etc.) and handles authentication via user tokens or OAuth2 client credentials. The SDK is built on httpx for HTTP transport and pydantic for request/response validation, and it automatically retries failed requests when OAuth2 tokens expire.
You use it to programmatically interact with Foundry platform infrastructure—creating branches, querying datasets, managing ontological resources—from Python applications. The SDK distinguishes itself from the Ontology SDK by surfacing platform-level operations on resource types themselves. It's designed for applications that need to automate Foundry administration or integrate Foundry data workflows into larger systems.
Use it for:
- Automate dataset and branch creation or management workflows in Foundry from Python scripts
- Build integration layers that programmatically query Foundry platform metadata and ontology definitions
- Develop service applications using OAuth2 client credentials to access Foundry resources on behalf of a service user
- Construct data pipelines that need to interact with Foundry datasets and transactions via API
- Create administrative tools that manage Foundry platform resources without manual console interaction
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A Python client library for the Foundry API that provides programmatic access to Foundry platform resources including datasets, branches, and ontological constructs through versioned endpoints.
Yes. The SDK is actively maintained (released 1 day ago), has low install friction, supports current Python versions (3.10–3.14), carries no known vulnerabilities, and is licensed permissively. Install it if you need programmatic access to Foundry platform APIs; skip it if you only need to query Foundry objects and links or if you're working with Gotham platform.
Install
foundry-platform-sdk on PyPI
pip
pip install foundry-platform-sdkuv
uv add foundry-platform-sdkpoetry
poetry add foundry-platform-sdkInstalling foundry-platform-sdk
Before you install
Low friction install with a pure-wheel distribution and eight common runtime dependencies. Actively maintained with a release 1 day old and 197 repository stars.
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial use, modification, and redistribution with minimal restrictions.
Quickstart
pip install foundry-platform-sdk
from foundry_platform_sdk import FoundryClient
client = FoundryClient(
auth=UserTokenAuth(token),
hostname="example.palantirfoundry.com"
)
api_response = client.datasets.Dataset.Branch.create(
dataset_rid, name="master"
)
Requires Python 3.10 or later. Requires a Foundry instance hostname and valid authentication token (user token or OAuth2 client credentials).
Verify before relying
- Whether the SDK covers all current Foundry API endpoints or if some require direct HTTP calls
- Performance characteristics when working with large datasets or high-volume API calls
- Specific scopes required for different endpoint categories when using OAuth2 authentication
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (<4.0,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 8 — annotated-types, h11, httpx, httpx-sse, pydantic, pyyaml, retrying, typing-extensions |
| Maintenance | actively maintained — 1 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,027,297/month — #4,474 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: foundry_platform_sdk-1.103.0-py3-none-any.whl
Keywords: Palantir, Foundry, SDK, Client, API
Tags
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
azure-ai-projectsProvides a Python client for Microsoft Foundry…
permissive · top 5,000 on PyPI
agent-framework-foundryProvides Microsoft Foundry integrations for the…
permissive · top 15,000 on PyPI
foundry-local-sdkA Python SDK for discovering, downloading,…
permissive · top 15,000 on PyPI
cloudfoundry-clientA Python client library for interacting with…
unclear · top 15,000 on PyPI
oneloginOfficial Python SDK for OneLogin's API,…
unclear · top 15,000 on PyPI
PureCloudPlatformClientV2Python client library for the Genesys Cloud…
permissive · top 5,000 on PyPI
fireblocksPython SDK for integrating with the Fireblocks…
permissive · top 15,000 on PyPI
Salesforce-FuelSDKProvides Python bindings to Salesforce…
permissive · top 15,000 on PyPI
cfenvParses Cloud Foundry environment variables and…
permissive · top 15,000 on PyPI
athina-clientA Python SDK for logging and interacting with…
permissive · top 15,000 on PyPI