ema-data-access
Lightweight Python tools to query and access EMA data.
Setup
Python environment (Poetry)
-
Install Poetry if you don't have it:
curl -sSL https://install.python-poetry.org | python3 - -
Create a virtual environment in the project directory:
python3 -m venv venv source venv/bin/activate -
Install dependencies:
poetry install --extras "dev test" -
Install pre-commit hooks:
poetry run pre-commit install
Command Line Utility
Upload a file
Upload a local file to the EMA data archive. The file name must match a known EMA naming convention, and requires an API key with developer-level access — request one from the EMA PDC team.
$ EMA_API_KEY=<your-api-key> ema-data-access --url <url> upload path/to/ema_l1_anc_sc_1234_20240101.csv
or with CLI flags
$ ema-data-access --url <url> --api-key <your-api-key> upload path/to/ema_l1_anc_sc_1234_20240101.csv
Under the hood, this requests a presigned upload URL and then PUTs the file to it, equivalent to:
$ curl -X POST -H "x-api-key: $EMA_API_KEY" <url>/upload/ema_l1_anc_sc_1234_20240101.csv
# => {"upload_url": "<presigned-url>"}
$ curl -X PUT -T path/to/ema_l1_anc_sc_1234_20240101.csv "<presigned-url>"
Importing as a package
import ema_data_access
ema_data_access.config["API_KEY"] = "<your-api-key>"
ema_data_access.upload("path/to/ema_l1_anc_sc_1234_20240101.csv")
Running tests
pytest
Metadata
Release files for ema-data-access 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ema_data_access-0.4.0.tar.gz | 7.6 kB | Details |
Release files / ema_data_access-0.4.0.tar.gz
| Download URL | ema_data_access-0.4.0.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bb153ea68b57c9aff66ebfe19a3e963dca2ec83a889338d75515f2c89c3e45f5
|
|
BLAKE2b-256 checksum How to use checksums |
89dc68bf3f621b53d487a0a076310a5da93bf753987956a5cac40c4b1998ebfc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 3, 2026.
Transparency log