Demo SDMX-VTL on OECD data
This project uses Poetry for dependency management. Make sure you have Poetry installed on your system.
- Python 3.11 or higher
- Poetry (install from poetry.poetry.dev)
- Clone the repository:
git clone <repository-url>
cd oecd_demo- Install dependencies using Poetry:
poetry install- Activate the virtual environment:
- Poetry 1.x
poetry shell- Poetry 2.x
poetry env activateThis will print the activation command for the virtual environment.
Example (Windows PowerShell):
& "C:\Users\<your-user>\AppData\Local\pypoetry\Cache\virtualenvs\oecd-demo-xxxx\Scripts\activate.ps1"Example (Unix/MacOS):
source ~/path/to/your/virtualenv/bin/activate- Make sure you're in the Poetry virtual environment:
- Poetry 1.x
poetry shell- Poetry 2.x
poetry env activate- Navigate to the src directory and run Jupyter:
cd src
jupyter notebook- Open
notenook.ipynbin your browser
You can also run the notebook directly from the command line:
poetry run jupyter notebook src/notenook.ipynbIf you prefer to run it as a Python script, you can convert the notebook or run it programmatically:
poetry run python -c "
from src.notenook import *
# Your code here
"src/notenook.ipynb- Main Jupyter notebook with OECD data processingoutput/- Generated output files and logspyproject.toml- Poetry configuration and dependenciespoetry.lock- Locked dependency versions
The main dependencies are managed by Poetry and include:
pysdmx- SDMX data handlingvtlengine- VTL transformation enginejupyter- Jupyter notebook environment
The notebook generates several output files:
- Validation logs in
output/validations/ - Derivation logs in
output/derivation/ - Final dataset logs in
output/derivation/final_dataset_logs.csv