Part of the EcoToolBox ecosystem 🌿
EcoInteract is a lightweight Python library for retrieving ecological interaction data from the Global Biotic Interactions (GloBI) database.
With a single function call you can retrieve food webs, pollination networks, host-parasite relationships, competition, mutualism and many other ecological interactions.
The library automatically constructs a NetworkX directed graph, making it easy to perform ecological network analysis or integrate interaction data into biodiversity workflows. :contentReference[oaicite:0]{index=0}
- 🌎 Retrieve interaction data directly from GloBI
- 🕸️ Build NetworkX graphs automatically
- 🔍 Filter by interaction type
- 📈 Control search depth
- 🐍 Simple Python API
- 🌿 Designed to integrate with EcoLab and EcoObs
pip install ecointeractAvailable on PyPI. :contentReference[oaicite:1]{index=1}
from EcoInteract import get_interaction_data
graph = get_interaction_data(
target_species="Panthera onca"
)
print(graph.nodes())Retrieve only pollination interactions.
from EcoInteract import get_interaction_data
graph = get_interaction_data(
target_species="Apis mellifera",
interaction_type="pollination"
)| Parameter | Description |
|---|---|
| target_species | Scientific or common species name |
| search_depth | Graph traversal depth |
| interaction_type | Optional interaction filter |
Examples include:
- 🐝 Pollination
- 🦅 Predation
- 🌱 Herbivory
- 🍄 Symbiosis
- 🤝 Mutualism
- 🦠 Parasitism
- ⚔️ Competition
Species
│
▼
EcoInteract
│
▼
GloBI API
│
▼
NetworkX Graph
│
▼
Visualization / Analysis / Machine Learning
EcoInteract is part of the EcoToolBox ecosystem.
| Project | Description |
|---|---|
| 🖥️ EcoLab | Species Distribution Modeling |
| 🌍 EcoEnv | Environmental variables |
| 🦋 EcoObs | Species occurrences |
| 🌿 EcoInteract | Ecological interactions |
If EcoInteract contributes to your research, please cite:
Ane Simões et al.
(BibTeX coming soon.)
Pull requests are welcome.
Bug reports and feature requests can be submitted through GitHub Issues.
MIT License.