skillfed

foundry-platform-sdk

The official Python library for the Foundry API

foundry-platform-sdk v1.103.0 1.0M downloads/30d#4,474 on PyPI197
Permissive license Apache-2.0 Active released

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-sdk

uv

uv add foundry-platform-sdk

poetry

poetry add foundry-platform-sdk

Installing 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

License :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Tags

foundry api clientpalantir foundry sdkfoundry dataset accessfoundry platform pythonapi client for foundryfoundry branch managementfoundry platform api
palantir-foundryapi-clientoauth2

More Application Frameworks packages