Metadata-Version: 2.4 Name: pyomie Version: 1.1.1 Summary: A client for OMIE - Spain and Portugal electricity market data License: Apache-2.0 License-File: LICENSE Keywords: omie,electricity,spain,portugal,MIBEL Author: Luis Miranda Author-email: soft.road8065@fastmail.com Requires-Python: >=3.11,<4.0 Classifier: Development Status :: 4 - Beta Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: Apache Software License Classifier: Natural Language :: English Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.11 Classifier: Programming Language :: Python :: 3.12 Classifier: Programming Language :: Python :: 3.13 Classifier: Programming Language :: Python :: 3.14 Classifier: Topic :: Software Development :: Libraries Requires-Dist: aiohttp (>=3.9.1,<4.0.0) Requires-Dist: rich (>=10) Requires-Dist: typer[all] (>=0.12,<0.13) Project-URL: Bug Tracker, https://github.com/luuuis/pyomie/issues Project-URL: Changelog, https://github.com/luuuis/pyomie/blob/main/CHANGELOG.md Project-URL: Documentation, https://pyomie.readthedocs.io Project-URL: Repository, https://github.com/luuuis/pyomie Description-Content-Type: text/markdown # 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. ```bash % 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. ```bash % 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](https://pipx.pypa.io/stable/#walkthrough-installing-a-package-and-its-applications-with-pipx). ## Contributors ✨ Thanks to these contributors ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
Luis Miranda
Luis Miranda

💻 🤔 📖
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome! ## Credits This package was created with [Copier](https://copier.readthedocs.io/) and the [browniebroke/pypackage-template](https://github.com/browniebroke/pypackage-template) project template.