Installation¶
Requirements¶
Python ≥ 3.8
Access to the EUROCONTROL PRISME / NM Oracle database
Oracle credentials exposed as environment variables (see Environment variables)
Core install¶
pip install eurocontrolpy
This installs the SQLAlchemy backend (EUROCONTROLpy) and all
required runtime dependencies (pandas, sqlalchemy, oracledb, requests).
Optional extras¶
Install additional extras as needed:
Extra |
Command |
Enables |
|---|---|---|
|
|
Accurate geodesic distances in |
|
|
Airspace geometry methods: |
|
|
H3 hexagon polyfill via |
|
|
|
|
|
Development tools: |
Combine extras with commas:
pip install "eurocontrolpy[geo,geo_shapes,h3]"
Installing from source¶
git clone https://github.com/eurocontrol/eurocontrolpy.git
cd eurocontrolpy
pip install -e ".[dev]"
Environment variables¶
The library reads Oracle credentials from environment variables. The prefix
(PRU_DEV by default) can be changed via the schema parameter of
EUROCONTROLpy or build_sqlalchemy_oracle_engine().
Variable |
Value |
|---|---|
|
Oracle username |
|
Oracle password |
|
Full Oracle connection string in the form |
Set them in your shell or .env file before running any queries:
export PRU_DEV_USR="myuser"
export PRU_DEV_PWD="mypassword"
export PRU_DEV_DBNAME="oracle.example.int:1521/PRISME"