Skip to main content

A library for Species Occurence data retrieval from GBIF, iNaturalist, and SpeciesLink APIs.

Project description

USAGE.md

Overview

ecoobs is a library designed to facilitate data management and processing for scientific and research applications.

Getting Started

Installation

pip install ecoobs

Basic Usage

import ecoobs

# Example: Download occurrences from GBIF, iNaturalist, and SpeciesLink - INaturalist doesn't require any authentication.
ecoobs.save_specieslink_apikey(apikey)
ecoobs.save_gbif_credentials(user, email, pwd)
species_names = ["Panthera onca", "Lynx rufus"]
df = ecoobs.get_occurrences(
    species_names,
    country="Brazil",
    year_range=(2000, 2020),
)

Functions

  • get_occurrences(species_names, country=None, year_range=None, lat_min=None, lat_max=None, lon_min = None, lon_max = None, includeGbif = True, includeInaturalist = True, includeSpeciesLink = True): Fetches occurrence data for the specified species from GBIF, iNaturalist, and SpeciesLink (you can choose the source), with optional filters for country, year range, and latitude bounds.
  • get_species_autocomplete(name): Retrieves a list of species suggestions from GBIF based on the provided name.
  • save_gbif_credentials(user, email, pwd): Saves GBIF user credentials for authenticated requests.
  • save_specieslink_apikey(apikey): Saves the API key for SpeciesLink requests.
  • delete_gbif_credentials(): Deletes stored GBIF user credentials.
  • delete_specieslink_apikey(): Deletes the stored SpeciesLink API key.

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

ecoobs-0.1.4.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

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

ecoobs-0.1.4-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file ecoobs-0.1.4.tar.gz.

File metadata

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

File hashes

Hashes for ecoobs-0.1.4.tar.gz
Algorithm Hash digest
SHA256 1a316c14dd9c6b5a3288db950801596e1997ee3b97e1e86b8285794be255dba0
MD5 c3bba23d9bef3c7d2db5670a0c993796
BLAKE2b-256 4013d0165fd37078fd26ed063c86f4aa63926f0419f9270b1bbdd8b9bffae8d8

See more details on using hashes here.

File details

Details for the file ecoobs-0.1.4-py3-none-any.whl.

File metadata

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

File hashes

Hashes for ecoobs-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b73a305ce05c592a03e0852c544260321f691395f62114c3ee5193743096f428
MD5 d28d36086e1c090f67561c08db52e73c
BLAKE2b-256 f49a42ac58d80b10dec7d5a94dc0504e7b48c89fd6b03175b67d1091421de982

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