Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
FoundryClient
✓ from foundry_sdk import FoundryClient
✗ from foundry import FoundryClient
Initialize client with hostname and token from environment variables.
from foundry import FoundryClient
from foundry import os
client = FoundryClient(
hostname=os.environ.get('FOUNDRY_HOSTNAME', ''),
token=os.environ.get('FOUNDRY_TOKEN', ''),
)
# List users
users = client.admin.User.list()
for user in users.data[:5]:
print(user.email)
Debug
Known issues
breakingThe SDK requires Python >=3.10. Installations on Python 3.9 or lower will fail.fixUpgrade Python to 3.10 or later.
affects: all versions >=1.0.0
deprecatedAuthentication via foundry_client_id and foundry_client_secret environment variables is deprecated in favor of token-based auth using FOUNDRY_TOKEN.fixSwitch to using FOUNDRY_TOKEN or FoundryClient(token=...).
affects: >=1.50.0
gotchaThe correct import is from foundry import FoundryClient, NOT from foundry_platform_sdk. Many users mistakenly use the PyPI package name as import root.fixUse 'from foundry import FoundryClient'.
affects: all versions
gotchaList methods return a paginated object, not a plain list. Access .data to get items.fixUse users.data instead of users directly.
affects: all versions
Upgrade
Version history
1.82.0latest on PyPI · released Apr 28, 2026
Audit
Dependencies
httpxrequiredHTTP client used internally
pydanticrequiredData validation and settings management