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.1.tar.gz (112.4 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.1-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: psr_lakehouse-0.2.1.tar.gz
  • Upload date:
  • Size: 112.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","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.1.tar.gz
Algorithm Hash digest
SHA256 d11f29ba5955bfb2081aded58efae0105153f7a65748f31a0d3c283b6291552b
MD5 b97efa8e41bd2b386be04e7d4b255ca2
BLAKE2b-256 d66244b94d7f51646520e9cccb1c3a6fda9a6d983eedd1a939f79fc20a9c05b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: psr_lakehouse-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2c7012caaa45d8c6c39e3b1d37c6f6fc7485d68d95222b00aa99b4130a4113f7
MD5 9f08824b99f3bfe1ab37afd5a6f47d61
BLAKE2b-256 4938be183da40535150becefaace318870a3adddd3aaba36e24c40c658e737c5

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