Skip to main content

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 for
  • search_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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ecointeract-0.1.3.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ecointeract-0.1.3-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file ecointeract-0.1.3.tar.gz.

File metadata

  • Download URL: ecointeract-0.1.3.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for ecointeract-0.1.3.tar.gz
Algorithm Hash digest
SHA256 713960f9f72c50184c97976ecca3a3c8969b2d82811cda4563c0b3b65ede7161
MD5 774cb13078434a9842bb662c1829a0dc
BLAKE2b-256 c78910132ebcc23fc891dfa8ca1751f568e0f9c0657c5841581e679f88731771

See more details on using hashes here.

File details

Details for the file ecointeract-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: ecointeract-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for ecointeract-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 00b7f2233f2c3e88aec949627af08d655b1498dc24b17bf7be91e2d6ab0f52ff
MD5 cee469384a9f1054b8973cbcbbfd418b
BLAKE2b-256 794b6ba9f9ea974d90ce8dbdbc8e849217e079d0ee363c4d205e4dbe856da4ee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page