Skip to main content

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

Project description

USAGE.md

Overview

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

Getting Started

Installation

pip install sdmdata

Basic Usage

import sdmdata

# Example: Download occurrences from GBIF, iNaturalist, and SpeciesLink - INaturalist doesn't require any authentication.
sdmdata.save_specieslink_apikey(apikey)
sdmdata.save_gbif_credentials(user, email, pwd)
species_names = ["Panthera onca", "Lynx rufus"]
df = sdmdata.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

sdmdata-0.1.1.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

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

sdmdata-0.1.1-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sdmdata-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2ea2f6cb1717040359e5e14ba561eed6e5043c6ee14ad992d1215d2d9fc63eeb
MD5 1699569d8b4498ee2aca56db924f9bf0
BLAKE2b-256 2b35beb6618c72954a6254890742c2a45673464a1bbe08127d6e0a2eb96844b3

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for sdmdata-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 98ea78ea14998db71d6581c05c47ac22c6460592a1ffad9b8d70ea3fcbd87d8b
MD5 98a26267960c51192af8b670ad9034ff
BLAKE2b-256 38a7a85bca2d2cc5b360af2a7f4758120b621acbc432deca968ee914dedc8d6a

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