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 🐍

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

voltarium-1.1.0.tar.gz (30.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

voltarium-1.1.0-py3-none-any.whl (38.4 kB view details)

Uploaded Python 3

File details

Details for the file voltarium-1.1.0.tar.gz.

File metadata

  • Download URL: voltarium-1.1.0.tar.gz
  • Upload date:
  • Size: 30.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.33 {"installer":{"name":"uv","version":"0.11.33","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}

File hashes

Hashes for voltarium-1.1.0.tar.gz
Algorithm Hash digest
SHA256 3de8964e3003e40f8abe82699293a768f4752090c2ccf0bcd3841de0fa3bb3ea
MD5 155c2f3d6b40142fe2eeb6fd2e577f96
BLAKE2b-256 e46f9fe9e3f0f89386c9b640abf10c7d21932c2fc2037786f8658331ed4e4ca0

See more details on using hashes here.

File details

Details for the file voltarium-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: voltarium-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 38.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.33 {"installer":{"name":"uv","version":"0.11.33","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}

File hashes

Hashes for voltarium-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 333559d11e7b054f3fc24e749b0b7653d46a9d4ab3d162dbdf730ff9bf38df7d
MD5 3adf7cf18e8b755d3de79b16898e80fe
BLAKE2b-256 43397e0fba2f2ce1e95131616b31cd70aad47d93b2fbca266ab9b70918834313

See more details on using hashes here.

Release history Release notifications | RSS feed

1.1.1

2 files

This release

1.1.0 This release

2 files

1.0.0

2 files

0.5.5

2 files

0.5.4

2 files

0.5.3

2 files

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.6

2 files

0.3.5

2 files

0.3.4

2 files

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

0.1.0

2 files

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