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.2.tar.gz (7.2 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.2-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ecointeract-0.1.2.tar.gz
  • Upload date:
  • Size: 7.2 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.2.tar.gz
Algorithm Hash digest
SHA256 459ff93974b724756f3e6b319768faed1b8b5f213d82b2f5c1c5ac09b0229c5b
MD5 00b3701fb4aa3c8636e1824e3571f805
BLAKE2b-256 d46b63d6e3713ac5dfa75afd34600d2e43f9048daf34125e72d0be7820775f14

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ecointeract-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c15da859f5c163c4b15f24dc80f30a98def351f94fb0fa90b14d241928b78a38
MD5 b00b9a1f489d8c30f5b2855936924606
BLAKE2b-256 8b8dd640bce04658b47aad4d0be17cb1b4b6caa640f385de10d8493f47254dfd

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