Arize Python SDK API Reference
This directory contains the Sphinx-based API reference documentation for the Arize Python SDK. This reference provides comprehensive details for the SDK's public API.
Structure
docs/
+ source/
| + _static/
| | +-- custom.css
| + client.md # ArizeClient
| + spans.md # SpansClient
| + ml.md # MLModelsClient
| + datasets.md # DatasetsClient
| + experiments.md # ExperimentsClient
| + embeddings.md # EmbeddingGenerator
| + types.md # Type definitions
| + config.md # SDKConfiguration
| + conf.py # Sphinx configuration
| +-- index.md # Main entry point
+ Makefile
+ make.bat
+ requirements.txt
+-- README.md
- conf.py: Sphinx configuration for theme, extensions, and autodoc settings
- index.md: Main entry point with table of contents
- requirements.txt: Python dependencies for building the documentation
- Makefiles: Commands for building HTML documentation locally
Building the Documentation
Prerequisites
Install dependencies:
Build HTML
make clean
make html
The generated HTML will be in build/html/. Open build/html/index.html in your browser.
Live Reload
For development with auto-reload:
Configuration
Theme
The documentation uses the PyData Sphinx Theme, which provides:
- Clean, modern design
- Responsive layout
- Good navigation
Autodoc
Documentation is automatically generated from Google-style docstrings in the source code using Sphinx's autodoc extension.
Configuration settings:
autodoc_typehints = "none"- Types documented in parameter descriptionsautoclass_content = "class"- Only class docstring, not initadd_module_names = False- Cleaner class names
MyST Parser
Markdown files are processed using MyST Parser, allowing:
- Markdown syntax for documentation
- Sphinx directives with
{eval-rst}blocks - Cross-references and linking
Adding New API Documentation
-
Create a new
.mdfile insource/directory -
Add autodoc directives:
# MyClass
```{eval-rst}
.. currentmodule:: arize.mymodule
.. autoclass:: MyClass
:members:
:undoc-members:
:show-inheritance:
:special-members: __init__
``` -
Add the file to the toctree in
index.md:```{toctree}
:maxdepth: 2
client
myclass # <- Add here
``` -
Rebuild the documentation
Publishing
For ReadTheDocs integration, create a .readthedocs.yaml file in the repository root (see plan document for template).