Python SDK Reference
Explore the Python SDK for programmatic access to Plexus functionality.
Overview
The Plexus Python SDK provides a simple and intuitive way to interact with Plexus programmatically. Use it to automate workflows, manage resources, and integrate Plexus into your applications.
Installation
Install the Plexus SDK using pip:
pip install plexus-sdk
Quick Start
Here's a simple example to get you started:
from plexus import Plexus
# Initialize the client
plexus = Plexus(api_key="your-api-key")
# Create a new source
source = plexus.sources.create(
name="My Source",
type="text",
data="Sample content"
)
# Run an evaluation
evaluation = plexus.evaluations.create(
source_id=source.id,
scorecard_id="your-scorecard-id"
)
Complete Documentation
For complete API reference, authentication guides, advanced usage examples, and best practices, visit our comprehensive Python SDK documentation: