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.1.tar.gz (6.5 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.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ecointeract-0.1.1.tar.gz
  • Upload date:
  • Size: 6.5 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.1.tar.gz
Algorithm Hash digest
SHA256 1fa3ac644e401b28bbd136b84a5db740918fe2c1f02b2b4443c6e113b4652fcd
MD5 44dbc78d57fc2573615bd348bba68791
BLAKE2b-256 5f2de63598cef5dda026f189a82baaf5c850636ebd5a7f5535e2f85624e6b79e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ecointeract-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d88b092fc0f16edbb832e368f43345f1ba5abc9c16bfffb944b5ece6049306a8
MD5 fc038f732495e0e658c1d6f1600776d9
BLAKE2b-256 c250e7b58a1cd14604da80f6e72431caadff01c3b492a4d3b5865557346a2234

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