Noveum SDK - Python Client
Professional Python SDK for programmatic access to the Noveum AI platform with 180+ API endpoints
The Noveum SDK is a comprehensive Python client library that provides both high-level convenience methods and low-level access to 180+ API endpoints for AI/ML evaluation, testing, and observability.
Key Features
⨠Complete API Coverage
180+ endpoints fully implemented across all API categories
đ Full IDE Support
Complete type hints, autocomplete, and docstrings
⥠Async & Sync
Both async/await and synchronous support
đ Secure
API key authentication, HTTPS only, proper error handling
đ§Ş Production-Ready
Extensive test suite with integration and unit tests
đŻ Easy to Use
High-level wrapper for common operations
Installation
From PyPI (Recommended)
From Source
Quick Start
Basic Usage
Setting Your API Key
Option 1: Environment Variable (Recommended)
Then use it in code:
Option 2: Direct Initialization
Option 3: .env File
Then load it:
High-Level Client API
The NoveumClient class provides convenient methods for common operations.
List Datasets
Parameters:
limit(int): Number of datasets to return (default: 20)offset(int): Pagination offset (default: 0)
Get Dataset Items
Parameters:
dataset_slug(str): The dataset slug (required)limit(int): Number of items to return (default: 20)offset(int): Pagination offset (default: 0)
Get Evaluation Results
Parameters:
dataset_slug(str): Filter by dataset slug (optional)item_id(str): Filter by item ID (optional)scorer_id(str): Filter by scorer ID (optional)limit(int): Number of results to return (default: 100)offset(int): Pagination offset (default: 0)
Common Use Cases
Use Case 1: CI/CD Regression Testing
Test your model/agent quality in CI/CD pipelines:
Use Case 2: Batch Processing
Process all items in a dataset with pagination:
Use Case 3: Result Analysis
Analyze evaluation results:
Use Case 4: Async Operations
Use async for concurrent operations:
Advanced Configuration
Custom Base URL
Custom Timeout
Context Manager
Response Format
All high-level client methods return a dictionary with:
Check status_code to verify success:
Error Handling
Handle API Errors
Handle Network Errors
Best Practices
1. Use Environment Variables
2. Handle Pagination
3. Use Context Managers
4. Check Status Codes
5. Add Logging
Architecture
Two-Layer Architecture
Layer 1: Generated API Client
- Auto-generated from OpenAPI schema
- Low-level access to all endpoints
- Full control over parameters
- Both sync and async support
Layer 2: High-Level Wrapper (NoveumClient)
- Convenient methods for common operations
- Simplified API for typical use cases
- Automatic error handling
- Better developer experience
Related Packages
The Noveum ecosystem includes multiple specialized packages:
- noveum-trace - Lightweight tracing SDK for LLM applications with decorator-based API
- noveum-sdk-python - This package - comprehensive API client for evaluation and platform management
Support
- Platform: https://noveum.ai/
- PyPI Package: https://pypi.org/project/noveum-sdk-python/
- API Documentation: https://noveum.ai/docs
- GitHub Repository: https://github.com/Noveum/noveum-sdk-python
- GitHub Issues: https://github.com/Noveum/noveum-sdk-python/issues
- Email: support@noveum.ai
Next Steps
- Getting Started - Set up your first project
- NovaEval - Learn about AI model evaluation
- Integration Examples - See SDK in action
- Platform Guide - Explore the dashboard
Ready to build with Noveum? Install the SDK and start integrating with your AI applications!
Get Early Access to Noveum.ai Platform
Be the first one to get notified when we open Noveum Platform to more users. All users get access to Observability suite for free, early users get free eval jobs and premium support for the first year.