fabric-platform
Python SDK for the Fabric AI workflow platform.
Installation
pip install fabric-platform
Quick Start
from fabric_platform import FabricClient
# API key auth
fabric = FabricClient(api_key="fab_your_key")
# Or: native email/password auth
fabric = FabricClient(base_url="https://fabric.example.com")
auth = fabric.login("alice@example.com", "SecurePass1!")
# Or: consumer-driven social login (your app handles OAuth)
auth = fabric.social_login(
provider="google",
provider_user_id=google_user["sub"],
email=google_user["email"],
display_name=google_user["name"],
)
# Use the authenticated client
me = fabric.get_me()
orgs = fabric.get_my_organizations()
Features
- Auth: signup, login, social login, change password, logout-all
- Organizations & Teams: CRUD, memberships, invitations
- Workflows: submit, monitor, stream events
- Assets: upload, download, galleries
- Webhooks & Schedules: create, manage, delivery history
- Admin: user management (list, unlock, verify, delete)
Typed workflows
Fabric derives JSON Schemas from each workflow's Pydantic task types at server boot and stores them in the registry. Discover a workflow's contract without reading the source:
schemas = fabric.get_workflow_schemas("research/trends")
print(schemas["input_schema"]) # JSON Schema for workflow input
print(schemas["output_schema"]) # JSON Schema for workflow output
print(schemas["task_schemas"]) # Per-task breakdown
Opt in to server-side validation on submission:
from fabric_platform.errors import FabricValidationError
try:
run = fabric.submit_run(
"research/trends",
input={"topic": 42}, # wrong type
validate=True,
)
except FabricValidationError as e:
print(e.response.json()["error"]["details"])
See the Typed Workflows guide for the full pattern, CI integration, and migration tips.
Documentation
See the Fabric documentation for the full API reference.
Metadata
Release files for fabric-platform 0.17.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fabric_platform-0.17.1.tar.gz | 28.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fabric_platform-0.17.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 62.6 kB
Release files / fabric_platform-0.17.1.tar.gz
| Download URL | fabric_platform-0.17.1.tar.gz |
|---|---|
| Size | 28.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
291b3974e6a8efc860129be7d9108516802c6d7672dab7d643bfbdcb0097c127
|
|
BLAKE2b-256 checksum How to use checksums |
f29c4321dc6ff8d4ba4063580072d7a74b75cd5012e3d4bbf3eb65d79923aa31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / fabric_platform-0.17.1-py3-none-any.whl
| Download URL | fabric_platform-0.17.1-py3-none-any.whl |
|---|---|
| Size | 33.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c4180a18ceb73e746f4b0dd70ff45d02e78d0254c7d219aaca2b8b0148624320
|
|
BLAKE2b-256 checksum How to use checksums |
0cc2b767b3acc8e30667f419aa53290e76fe78e44c355054ef55f2ee84607385
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|