pyomie
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 💻 🤔 📖 |
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)
| File | Size | Uploaded | |
|---|---|---|---|
| pyomie-1.2.0.tar.gz | 14.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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 logRelease 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