Skip to main content

No project description provided

Project description

PSR Lakehouse 🏞️🏡

Docs

A Python client library for accessing PSR's data lakehouse API, providing easy access to Brazilian energy market data including ANEEL, CCEE and ONS datasets.

📦 Installation

pip install psr-lakehouse

⚙️ Quick Start

Configure the API URL and AWS credentials:

export LAKEHOUSE_API_URL="https://api.example.com"
export AWS_ACCESS_KEY_ID="your-access-key"
export AWS_SECRET_ACCESS_KEY="your-secret-key"
export AWS_DEFAULT_REGION="us-east-1"

Fetch data from the API:

from psr.lakehouse import client

# Fetch CCEE spot price data
df = client.fetch_dataframe(
    table_name="ccee_spot_price",
    data_columns=["spot_price"],
    start_reference_date="2023-05-01",
    end_reference_date="2023-05-02",
    filters={"subsystem": "SOUTHEAST"},
)
print(df)

📚 Documentation

For complete documentation including advanced features, API reference, and examples, visit the full documentation.

Features include:

  • Data filtering and aggregation
  • Temporal aggregation with datetime granularity
  • Complex queries with table joins
  • Schema discovery and exploration
  • Custom ordering and timezone support

💬 Support

For questions or issues, please open an issue on the project repository.

Project details


Download files

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

Source Distribution

psr_lakehouse-0.2.0.tar.gz (112.7 kB view details)

Uploaded Source

Built Distribution

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

psr_lakehouse-0.2.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file psr_lakehouse-0.2.0.tar.gz.

File metadata

  • Download URL: psr_lakehouse-0.2.0.tar.gz
  • Upload date:
  • Size: 112.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.22

File hashes

Hashes for psr_lakehouse-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6d8ccac3f562fc9b9615541c8b4a23cf08219af1af65937f3c2aeb9d04097cb9
MD5 c10f29393aeaceef4a0c1df8e8e78568
BLAKE2b-256 fb4729fcc6ec57fce17932ed457a9a968816e587e91ffb45f9976be8525ecef4

See more details on using hashes here.

File details

Details for the file psr_lakehouse-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for psr_lakehouse-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 642899893ac55028a9f2d2a411bc1102f545a88acb49584fb6dfb7714b6b2e29
MD5 16c44c8c7d23d1342820dd4bd9bfd5e0
BLAKE2b-256 4df38f98a6c69a5c45d67ff97d4fff4e4f541db43290d0293e1e66b47221f2fd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page