Skip to main content

pyomie

CI Status Poetry black pre-commit

PyPI Version pypy downloads Supported Python versions License


Documentation: https://pyomie.readthedocs.io

Source Code: https://github.com/luuuis/pyomie


A command-line interface and asynchronous client library for OMIE - Spain and Portugal electricity market data.

Installation

Install this via pip (or your favourite package manager):

pip install pyomie

Usage

The pyomie CLI allows querying day-ahead market data for a given date.

% pyomie --help

 Usage: pyomie [OPTIONS] [DATE]

 Fetch the OMIE spot price data.

╭─ Arguments ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│   date      [DATE]  Date to fetch in YYYY-MM-DD format [default: today's date]                                                                                                                                                                                              │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --csv              Print the CSV as returned by OMIE, without parsing.                                                                                                                                                                                                      │
│ --verbose          Verbose mode.                                                                                                                                                                                                                                            │
│ --help             Show this message and exit.                                                                                                                                                                                                                              │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

By default, the output is a JSON payload that may be used by other tooling.

% pyomie 2025-10-02 | jq -c '{date: .market_date, average_pt:(.pt_spot_price|add/length)}'
{"date":"2025-10-02","average_pt":86.3228125}

You can also pipx run pyomie to run the CLI from a temporary virtual environment.

Contributors ✨

Thanks to these contributors (emoji key):

Luis Miranda
Luis Miranda

💻 🤔 📖

This project follows the all-contributors specification. Contributions of any kind welcome!

Credits

This package was created with Copier and the browniebroke/pypackage-template project template.

Metadata

Release files for pyomie 1.2.0

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

Source distribution (sdist)

Source distribution for pyomie 1.2.0
File Size Uploaded
pyomie-1.2.0.tar.gz 14.7 kB Details

Built distribution (wheel)

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

Total release size: 28.6 kB

Release files / pyomie-1.2.0.tar.gz

Download URL pyomie-1.2.0.tar.gz
Size 14.7 kB
Tags Source
SHA-256 checksum
How to use checksums
617d72000ed9a5fe25fc6aa92547fb99ef3d27af1d9ce518662bb7a99a424bf9
BLAKE2b-256 checksum
How to use checksums
8552b606d162fc5983c48d0f40049450e49b6c596380cbead2a2c485fe5f6f46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 21, 2026.

Transparency log

Release files / pyomie-1.2.0-py3-none-any.whl

Download URL pyomie-1.2.0-py3-none-any.whl
Size 13.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
991bec417bc11a7587ab516987731a0dca1de6eeb079837a11a47ec96901f218
BLAKE2b-256 checksum
How to use checksums
38f816faaaad61a50f676dbf0a6834a81887ce6c8f3ae38b737fc8e94c551722
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 21, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.0

2 release 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