Package: aomie
aomie is a pure Python 3 open source library that helps you handle Iberian electricity market data published by OMIE.Over 80 statistical indicators of historical data of the Iberian electricity market are published athttp://www.omie.es/aplicaciones/datosftp/datosftp.jsp. These indicators are available as downloadable zip files
containing text files of daily data with different levels of aggregation (by bidding unit, technology, etc.).
To analyse these indicators over time or to make comparison between them you need to follow these steps:Download all the data files covering the time horizon of interestExtract the daily text files from the downloaded zip filesCombine the content of potentially thousands of filesaomie automates this workflow. It  downloads all files of the required metric over a user-specified
time period, unzips the downloaded files and inserts their content into a SQLite database. Once in the database,
data analysis can be conveniently performed using SQLite directly or with tools such as pandas in Python or
dplyr in R.Free software: MIT licenseInstallationpip install aomieUsageImport the aomie library into your Python libraries, scripts or applications as usual:import aomieamoie includes a succint command line interface that make OMIE data handling extremely easy.
Some usage examples follow.A typical aomie starts by jointly setting the required configuration parameters through
a toml configuration fileomie -f myconfig.tomlThe configuration settings included in myconfig.toml are now avalaible to omie commands
without having to explicitly call the toml config file again, e.g. to download data just typeomie downloadObviously you can use a different config file at any timeomie -f otherconfig.toml downloador just change some of the configuration settingsomie -c end 200512To check the current configuration settings typeomie -dOnce the zip files have been downloaded we can extract them like thisomie extractTo complete the workflow by inserting the extracted data into a SQLite database typeomie insertThe aomie commmand fetch bundles all the key data handling tasks. To run these
tasks in a single step just typeomie -f myconfig.toml -c end 200512 fetchGiven the convenience of the fetch command, other commands that just perform one of
the steps in omie workflow may seem redundant. Note however that omie data
handling tasks covering long time horizons may involve downloading and processing
hundreds of MBs that are disk and time consuming, and you may therefore prefer to proceed
cautiously step by step.More information can be found in the command line help, e.g. to learn more about
aomie commands such as download typeomie download --helpFrom this help we learn that we can download and extract in a single step by typingomie download -eTIP: you can save your self some typing in the command line replacing omie with om,
e.g. like thisom download -eDocumentationhttps://aomie.readthedocs.io/DevelopmentTo run all the tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog0.0.0 (2019-09-15)First release on GitHub.First release on PyPI (2019-09-17)