Skip to main content

No project description provided

Project description

PSR Lakehouse 🏞️🏡

Tests PyPI - Version 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.4.tar.gz (122.5 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.4-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: psr_lakehouse-0.2.4.tar.gz
  • Upload date:
  • Size: 122.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","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 psr_lakehouse-0.2.4.tar.gz
Algorithm Hash digest
SHA256 0771d18882b4352a984bbedbcf0d320f964cd60f26ffb7792fd5f39cc38b7ed6
MD5 d68b430a0eb488c7356da68b31916ac6
BLAKE2b-256 9e844ed4311c4d2b6370dddd4112e6bc5124b208388a1fdbed15b7abf49c59a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psr_lakehouse-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","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 psr_lakehouse-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f7a9178382f203dd8cc74b2a7c9db942a6abbe020dada47d2f10908011182cd6
MD5 573d0657ee306f9c0e46bdfc3a54d4ae
BLAKE2b-256 5b85c42a7e003850f51948d8ba0c0610dc30d8e5129e625801dea323a2dc82d7

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