A Python library for ecological data collection and environmental analysis
Project description
Usage
Installation
pip install EcoInteract
Quick Start
The main function exposed by this library is get_interaction_data, available in the getgraph module.
get_interaction_data
Builds the interaction graph for a target species.
Signature:
get_interaction_data(
target_species: str,
search_depth: int = 3,
interaction_type: str | list[str] | None = None,
) -> nx.DiGraph | None
Example:
from EcoInteract import get_interaction_data
# Fetch interaction data for a species
data = get_interaction_data(target_species="wolf")
# With custom depth and interaction types
data = get_interaction_data(
target_species="wolf",
search_depth=5,
interaction_type=["predation", "competition"]
)
Parameters:
target_species(str): The species to search interactions forsearch_depth(int): Depth of the interaction graph traversal (default: 3)interaction_type(str | list[str] | None): Filter by interaction type(s). If None, returns all interactions
Returns:
- A directed graph (
nx.DiGraph) containing ecological relationships, or None if no interactions are found
Documentation
For more information, refer to the module docstrings and source code.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ecointeract-0.1.0.tar.gz.
File metadata
- Download URL: ecointeract-0.1.0.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
474aef1d2e7bd9b62e700eaa8c732c5f7a6e64b0e2f9969e07ce4568c91dec16
|
|
| MD5 |
60bfb613f648d071e9f7d59a0e725fd2
|
|
| BLAKE2b-256 |
d0cde8d2d01312d9727075794ccbe56bb667460854775f1d199ad85fb74510da
|
File details
Details for the file ecointeract-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ecointeract-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
346061ce358508e469d1d4396a664a5897f415ac220f4cac8a1ea5d5da5674e6
|
|
| MD5 |
9501a2741f6c6f07900a9247a6611936
|
|
| BLAKE2b-256 |
741ce063b38cf0d1bf925ad79dd30760233094e9b144382a0a01e92ee2aaf5b0
|