
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
Python client for the ALSI API (Aggregated LNG Storage Inventory)
Documentation of the API can be found on: https://alsi.gie.eu/GIE_API_documentation_v004.pdf
Documentation of the client API can be found on: https://roiti-ltd.github.io/alsi-py/
python3 -m pip3 install alsi-py
The package is split in two clients:
from alsi.raw_client import AlsiRawClient
from alsi.pandas_client import AlsiPandasClient
from alsi.mappings import Area
from datetime import datetime
import asyncio
API_KEY = '<API_KEY>'
country_code = Area.ES # Also could be string: 'ES' or 'Spain'
company_code = '21X000000001254A'
facility_code = '21W0000000000370'
async def main():
client = AlsiRawClient(api_key=API_KEY)
# Functions that return JSON.
client.query_data_for_facility(facility_code, company_code, country_code)
client.query_agg_data_for_europe_or_noneurope(europe='eu')
client.query_agg_data_by_country(contry_code='BE')
client.query_data_by_company_and_country(company_code, country_code)
# Filter results by time
client.query_agg_data_by_country(country_code, start=datetime(2017,1,1), end=datetime(2018,1,1), limit=10)
# Create pandas client. All functions are the same as the raw client.
pandas_client = AlsiPandasClient(api_key=API_KEY)
# In the end of the code, make sure to close the client session:
await client.close_session()
# or
await pandas_client.close_session()
asyncio.run(main())
Tell pytest where to look for unit tests and create env for ALSI API key
export PYTHONPATH=./alsi
export ALSI_KEY='...'
Run unit tests in coverage mode
python -m pytest ./tests --import-mode=append --cov
Pull the repository:
git clone https://github.com/ROITI-Ltd/alsi-py.git
cd ./alsi-py
Set up your working environment:
python3 -m venv env
source env/bin/activate
Install required packages:
pip3 install -r requirements.txt
pip3 install -r requirements-dev.txt
Bumping the package version after making changes:
bumpversion major|minor|patch|build
For more general guidelines on contributing see: Contributing to alsi-py.
Many thanks to the entsoe-py library for serving as inspiration for this library.
FAQs
A library to query ALSI data
We found that alsi-py demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.