Palantir Foundry SDK Patterns

•
2.3k
•

Implements production-ready Python and TypeScript patterns for the Palantir Foundry SDK and OSDK.

This skill provides a standardized framework for building robust integrations with the Palantir Foundry platform. It automates the implementation of industry best practices, such as thread-safe singleton clients, structured error handling with custom Result types, and memory-safe pagination for large datasets. By utilizing idiomatic patterns for both the Foundry Platform SDK and OSDK, it helps developers create resilient, maintainable, and high-performance codebases that handle transient API failures and multi-tenant configurations gracefully.

Key Features

01Multi-tenant client factories for managing multiple Foundry environment configurations
02Resilient retry logic featuring jittered exponential backoff for transient failures
03Thread-safe singleton client initialization for Python and TypeScript
04Structured error handling with typed Result wrappers to prevent uncaught exceptions
052,272 GitHub stars
06Automatic pagination helpers for efficient iteration through large object sets

Use Cases

01Refactoring legacy Foundry SDK code to use modern async/await and typed patterns
02Implementing resilient service-to-service communication with Foundry APIs
03Developing production-grade data pipelines that interact with the Foundry Ontology