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.
Metadata
Release files for ecointeract 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ecointeract-0.1.3.tar.gz | 7.1 kB | Without provenance | Details for ecointeract-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ecointeract-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for ecointeract-0.1.3-py3-none-any.whl |
Total release size: 14.8 kB
Release files / ecointeract-0.1.3.tar.gz
| Download URL | ecointeract-0.1.3.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
713960f9f72c50184c97976ecca3a3c8969b2d82811cda4563c0b3b65ede7161
|
|
BLAKE2b-256 checksum How to use checksums |
c78910132ebcc23fc891dfa8ca1751f568e0f9c0657c5841581e679f88731771
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.9
|
Release files / ecointeract-0.1.3-py3-none-any.whl
| Download URL | ecointeract-0.1.3-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
00b7f2233f2c3e88aec949627af08d655b1498dc24b17bf7be91e2d6ab0f52ff
|
|
BLAKE2b-256 checksum How to use checksums |
794b6ba9f9ea974d90ce8dbdbc8e849217e079d0ee363c4d205e4dbe856da4ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.9
|
Security for ecointeract 0.1.3
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.