Skip to main content

Voltarium

CI Python 3.13+ License

Modern, asynchronous Python client for the CCEE (Brazilian Electric Energy Commercialization Chamber) API. Built with Python 3.13+ and designed for high-performance energy sector applications.

🚀 Key Features

  • 🔥 Asynchronous: Built with httpx and asyncio for maximum performance
  • 🔒 Type Safe: Complete type hints with Pydantic models for bulletproof code
  • 🛡️ Robust: Automatic OAuth2 token management with intelligent retry logic
  • 🏗️ Real Staging Data: 60+ authentic CCEE credentials for comprehensive testing
  • ⚡ Modern: Python 3.13+ with UV for lightning-fast dependency management
  • ✅ Production Ready: Comprehensive test suite and error handling

📦 Installation

# Using UV (recommended)
uv add voltarium

# Using pip
pip install voltarium

🔥 Quick Start

import asyncio
from voltarium import VoltariumClient

async def main():
    async with VoltariumClient(
        client_id="your_client_id",
        client_secret="your_client_secret"
    ) as client:
        # List retailer migrations with automatic pagination
        migrations = client.list_migrations(
            initial_reference_month="2024-01",
            final_reference_month="2024-12",
            agent_code="12345",
            profile_code="67890"
        )

        # Stream results efficiently
        async for migration in migrations:
            print(f"Migration {migration.migration_id}: {migration.migration_status}")

asyncio.run(main())

🏗️ Real Staging Environment

Test with real CCEE data using our comprehensive staging environment:

from voltarium.sandbox import RETAILERS, UTILITIES
from voltarium import SANDBOX_BASE_URL

# Use real staging credentials
retailer = RETAILERS[0]  # 30+ available retailers
utility = UTILITIES[0]   # 30+ available utilities

# Test with actual CCEE staging API
async with VoltariumClient(
    base_url=SANDBOX_BASE_URL,
    client_id=retailer.client_id,
    client_secret=retailer.client_secret
) as client:
    # All operations work with real data
    migrations = await client.list_migrations(...)

📚 Comprehensive Documentation

Visit our complete documentation for:

🛠️ Development

# Clone and setup
git clone https://github.com/joaodaher/voltarium-python.git
cd voltarium-python

# Install dependencies (requires UV)
task install-dev

# Run tests
task test

# Quality checks
task lint && task format && task typecheck

🎯 Current Status

Alpha Release - Core migration endpoints fully supported:

✅ Retailer Migrations - Complete CRUD operations, with V1/V1.1/V2 API version support (api_version=, defaults to "v2") ✅ Contracts - List, get, create, and download signed contract files ✅ Measurements - List consumption measurements with automatic same-month chunking ✅ Change Requests (Solicitações) - Representative changes, return to captive market, supply suspension, and approve/reject workflow 🚧 Utility Migrations - Under development 📋 Additional Endpoints - See roadmap

1.0.0 note: VoltariumClient's default api_version is now "v2" (previously the only option was CCEE's V1 migrations API). Pass api_version="v1" to keep the old behavior — see API Versioning.

🤝 Contributing

We welcome contributions! Please see our documentation for details on:

  • Feature roadmap and priorities
  • Development setup and guidelines
  • Testing with real staging data

📄 License

Apache License 2.0 - see LICENSE.md for details.


Built for the Brazilian energy sector 🇧🇷 | Powered by modern Python 🐍

Metadata

Release files for voltarium 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for voltarium 1.1.1
File Size Uploaded Provenance
voltarium-1.1.1.tar.gz 30.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for voltarium 1.1.1
File Interpreter ABI Platform
voltarium-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 68.7 kB

Release files / voltarium-1.1.1.tar.gz

Download URL voltarium-1.1.1.tar.gz
Size 30.1 kB
Tags Source
SHA-256 checksum
How to use checksums
24c1c4421766397cd76ed112280424ef6660c8d19823d446f11f1fb994a4738b
BLAKE2b-256 checksum
How to use checksums
f2ba75d76704912dbd88d56fb620053f5b1d9adbb63f7e569c91e91cfafd0e41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / voltarium-1.1.1-py3-none-any.whl

Download URL voltarium-1.1.1-py3-none-any.whl
Size 38.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b896cafe8eeb786492c42ad35951b13966741b7255a6d46af9216822654f6369
BLAKE2b-256 checksum
How to use checksums
e75669c8d836ef2c966a6d999f3fdab5694c4da9222e40ab5e4e09719c11292b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for voltarium 1.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page