API Reference#
Complete API documentation for all bfabricPy classes and methods.
Documentation Style#
This section uses auto-generated documentation directly from the Python code using Sphinx autodoc and autodoc_pydantic extensions. This ensures:
✅ Documentation is always in sync with the code ✅ Type signatures are accurate ✅ Parameters and return types are complete ✅ No redundant manual maintenance
Quick Links#
Component |
Description |
|---|---|
Main client class with all read/write methods |
|
All 20+ entity types with auto-documented features |
|
Entity-based reading with caching support |
|
Entity identifier across instances |
|
Query result container with error handling |
|
Token authentication data structure |
|
All exception types and when they’re raised |
For Beginners#
If you’re new to bfabricPy, start with:
Quick Start Tutorial - 5-minute tutorial
User Guides - Task-based guides
Then return here for detailed API reference
Finding What You Need#
By Task#
Task |
Relevant Documentation |
|---|---|
Create a client |
|
Query B-Fabric |
|
Work with entities |
|
Write data |
|
Handle errors |
By Class#
Class |
What It Does |
|---|---|
|
Main client - all API operations |
|
Base class for all B-Fabric entities |
|
Read entities by URI/ID/query |
|
Container for query results |
|
Entity identifier across instances |
|
Token authentication data |
|
Server-side errors |
|
Configuration errors |
API Stability#
bfabricPy follows semantic versioning (X.Y.Z):
Major changes (X): May include breaking changes, announced in changelog
Minor changes (Y): New features, backward compatible
Patch changes (Z): Bug fixes, backward compatible
For version history and deprecation notices, see Changelog.
Contributing to Documentation#
Documentation is generated from docstrings in the code. To improve it:
Add docstrings to public classes, methods, and functions
Update docstrings when changing behavior
Run documentation build to see changes
Commit documentation changes along with code changes
See Contributing Guide for more details.
Next Steps#
Bfabric Client - Start with main client documentation
Entity Types - See all entity types
User Guides - Return to task-based guides