nhcb / entsog-py Goto Github PK
View Code? Open in Web Editor NEWPython client for the ENTSOG API
License: MIT License
Python client for the ENTSOG API
License: MIT License
Package installed and example code run in environment. The following error message is output:
C:\Users\XXXXX\PycharmProjects\entsog-test\venv\Scripts\python.exe C:/Users/XXXXX/PycharmProjects/entsog-test/main.py
Traceback (most recent call last):
File "C:/Users/XXXXX/PycharmProjects/entsog-test/main.py", line 10, in
client.query_connection_points()
File "C:\Users\XXXXX\PycharmProjects\entsog-test\venv\lib\site-packages\entsog\entsog.py", line 180, in query_connection_points
response = self._base_request(endpoint='/connectionpoints')
File "C:\Users\XXXXX\PycharmProjects\entsog-test\venv\lib\site-packages\entsog\decorators.py", line 22, in retry_wrapper
result = func(*args, **kwargs)
TypeError: _base_request() missing 1 required positional argument: 'params'
Once I used the package to get the data in Dataframe, the error shows "Max retries exceeded with url"
Hello, is there any way how to use proxy with EntsogPandasClient similarly as in ENTSOE-py or EntsogRawClient? Thanks for an answer :)
There are too many requests being pushed with an offset at 1000, increase it to 10.000. Also, catch 504 server error additionally; by waiting some more (using the logic already defined).
Hi,
I've found you library very useful. However, when trying to run the example, it raises an error for plot_utils not being part of entsog. Could you help me with this?
Thanks.
Hi,
Since I updated to entsog-py 1.0.2 the downloaded data cannot be correctly formatted by Pandas and remains as a long string. This was not the case with the previous versions.
Lucas
Hi nhcb,
I run the scripts today and it returned with the key error message below:
File "", line 15, in <cell line: 15>
df = client.query_operational_data_all(start = start, end = end, indicators = ['physical_flow'])
df = pd.json_normalize(json_data[keys[1]])
IndexError: list index out of range
I think their original json format data had changed a little bit.
Not everything is loaded in the hourly data, due to it being 5000 limit. Up the limit to be 15k/20k (https://transparency.entsog.eu/api/v1/operationaldatas?limit=1000&timeZone=UCT&from=2022-10-18&to=2022-10-19&periodType=hour&offset=13000&indicator=Physical+Flow) to make sure everything is collected.
Or better yet, make it dynamically; based on the metadata. Check in the metadata if there is still data yet to be collected, and collect.
Hi,
I'm trying to use your code (thanks a lot for having it public) to download some data and I'm reading the tests.py file. However, I think there are some things that are not yet updated or nor working. First, when using query_interruptions, there are not "country_code", "start"; "end" inputs anymore, right? Second, when using the small loop to aggregate data (lines 64-78), you don't include the balancing_zone, why?
Sorry to bother you and thanks a lot for your work.
Best,
R
E.g. Greifswald, Kondrakti
Hi, when trying to use the EntsogPandasClient I get the following error on 'country_code'.
TypeError: query_operational_data() got an unexpected keyword argument 'country_code'
I would like to pull the data by country but I also struggled with identifying a way to do this when looking at the ENTSOG API user manual as well. It looks like in mappings.py that there was code developed to map the operator labels to countries, but not sure how to resolve the error when running the sample code for NL. The gazprom example with the plot runs perfectly.
Thank you!
Hi,
Probably not an issue with the package, but rather on my knowledge side.
I stumbled upon this repository in my search for calculating/retrieving day ahead prices for energy and gas. With the entsoe API I managed to retrieve the day ahead prices. Is this also possible with the entsog API, and by extension with this package?
More specifically, I'm trying to get the day ahead prices for ZTP in Belgium (both ZTP Day Ahead and ZTP Weekend).
My apologies if this question is too far out of scope. I tried several queries using your library and managed to get a very extensive list of operator points (related to Fluxys/ZTP/...) and tariffs (although I had to revert to requests queries to narrow down the search scope so that the query would not take longer than 5 seconds). But none of those made me any wiser. Do you have any directions? (Hoping you would have gather some knowledge around this by building this library)
Thanks,
Olivier
San Marino in countries
Hi,
Thanks for the package. I'm trying to use the function query_operational_point_data as you do in the description but I get an error saying that it does not exist. I look in the class and it seems that the function does exist. Do you know what's going on? I have installed the package as you describe in the description.
Best.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.