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.

Download files

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

Source Distribution

pyomie-1.2.0.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

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

pyomie-1.2.0-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file pyomie-1.2.0.tar.gz.

File metadata

  • Download URL: pyomie-1.2.0.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyomie-1.2.0.tar.gz
Algorithm Hash digest
SHA256 617d72000ed9a5fe25fc6aa92547fb99ef3d27af1d9ce518662bb7a99a424bf9
MD5 9b1f650b14e91c7b1ee3356ef9211ba5
BLAKE2b-256 8552b606d162fc5983c48d0f40049450e49b6c596380cbead2a2c485fe5f6f46

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyomie-1.2.0.tar.gz:

Publisher: ci.yml on luuuis/pyomie

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyomie-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: pyomie-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyomie-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 991bec417bc11a7587ab516987731a0dca1de6eeb079837a11a47ec96901f218
MD5 6c1b5469b25166ad55594f84f3bbc04d
BLAKE2b-256 38f816faaaad61a50f676dbf0a6834a81887ce6c8f3ae38b737fc8e94c551722

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyomie-1.2.0-py3-none-any.whl:

Publisher: ci.yml on luuuis/pyomie

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 files

1.1.3

2 files

1.1.2

2 files

1.1.1

2 files

1.1.0

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

0.0.0

2 files

Supported by

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