Metadata-Version: 2.1
Name: OMIEData
Version: 0.1.0.1
Summary: Package to download electricity time series from https://www.omie.es/
Home-page: https://github.com/acruzgarcia/OMIEData
Author: Alberto Cruz and Mirel Mora
Author-email: a.cruz.garcia@gmail.com, mirel.mora@gmail.com
License: UNKNOWN
Description: # OMIEData: 
        
        [![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/)
        [![PyPI version fury.io](https://img.shields.io/pypi/v/OMIEData.svg)](https://pypi.org/project/OMIEData/)
        [![PyPI pyversions](https://img.shields.io/pypi/pyversions/OMIEData.svg)](https://www.python.org/)
        
        Python package to import data from OMIE (Iberian Peninsula's Electricity Market Operator): https://www.omie.es/
        
        Concretely, you can easily access to data for the following markets:
        
        - Daily market: hourly prices in Spain and Portugal, total hourly energy after auction (with/without billateral contracts), breakdown of the total hourly energy by technology and bid/ask curves.
        - Intra-day market: hourly prices for the different sessions and total hourly energy.
        - Additional data in next releases.
        
        
        ## Installation 
        
        The package is uploaded at https://pypi.org/project/OMIEData/, so
        
        ```python
        python -m pip install OMIEData
        
        ```
        from the command line will install the last version uploaded to pypi. 
        
        Aternatively, to install it from GitHub repository, type:
        
        ```python
        python -m pip install git+https://github.com/acruzgarcia/OMIEData
        
        ```
        
        in the command line. You can also install the .whl or .tar.gz files within [dist](https://github.com/acruzgarcia/OMIEData/tree/dev/dist) as:
        
        ```python
        python -m pip install OMIEData-VERSION-py3-none-any.whl
        
        ```
        or
        
        ```python
        python -m pip install OMIEData-VERSION.tar.gz
        
        ```
        
        or to install a previous version from [dist_old](https://github.com/acruzgarcia/OMIEData/tree/dev/dist_old).
        
        ## Examples:
        
        A very simple example to download hourly electricity prices and demand:
        
        ```python
        import datetime as dt
        from OMIEData.DataImport.omie_marginalprice_importer import OMIEMarginalPriceFileImporter
        
        dateIni = dt.datetime(2012, 3, 11)
        dateEnd = dt.datetime(2012, 4, 15)
        
        # This can take time, it is downloading the files from the website..
        df = OMIEMarginalPriceFileImporter(date_ini=dateIni, date_end=dateEnd).read_to_dataframe(verbose=True)
        df.sort_values(by='DATE', axis=0, inplace=True)
        print(df)
        ```
        
        Another example to download hourly demand resulting of the daily market auction, breakdown by technologies:
        
        ```python
        import datetime as dt
        from OMIEData.Enums.all_enums import SystemType
        from OMIEData.DataImport.omie_energy_by_technology_importer import OMIEEnergyByTechnologyImporter
        
        dateIni = dt.datetime(2020, 6, 1)
        dateEnd = dt.datetime(2020, 7, 30)
        system_type = SystemType.SPAIN
        
        # This can take time, it is downloading the files from the website..
        df = OMIEEnergyByTechnologyImporter(date_ini=dateIni,
                                            date_end=dateEnd,
                                            system_type=system_type).read_to_dataframe(verbose=True)
        df.sort_values(by=['DATE', 'HOUR'], axis=0, inplace=True)
        print(df)
        ```
        
        Another example to download supply/demand curves:
        
        ```python
        import datetime as dt
        from OMIEData.DataImport.omie_supply_demand_curve_importer import OMIESupplyDemandCurvesImporter
        
        dateIni = dt.datetime(2020, 6, 1)
        dateEnd = dt.datetime(2020, 6, 1)
        hour = 1
        
        # This can take time, it is downloading the files from the website..
        df = OMIESupplyDemandCurvesImporter(date_ini=dateIni, date_end=dateEnd, hour=hour).read_to_dataframe(verbose=True)
        df.sort_values(by=['DATE', 'HOUR'], axis=0, inplace=True)
        print(df)
        ```
        
        Other examples that illustrate the use of the package in here:
        
        - [examples folder](https://github.com/acruzgarcia/OMIEData/tree/dev/examples)
        
        Enjoy!.
        
Keywords: OMIE,Electricity prices
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
