Skip to content

Create a function that returns all of the datasets in an identified IPT #9

@MathewBiddle

Description

@MathewBiddle
import pyipt

ipt_auth = {
    'email': config['IPT_ADMIN_EMAIL'],
    'password': config['IPT_PASSWORD'],
}

ipt_url = 'https://ipt-obis.gbif.us/'

ipt_session = pyipt.open_ipt_session(ipt_auth, ipt_url)

ipt_datasets = ipt_session.get_datasets()

Returns a dataframe of datasets currently on IPT. Includes the following fields (with an example row):

Name Url Organization Type Subtype Records Last modified Last publication Next publication Visibility Author
Harbor seal (Phoca vitulina) location data from a satellite telemetry tag (ptt id 41820) deployed in the Gulf of Alaska from 2004-08-30 to 2004-12-29, deployment id 54d53eca60d4250fe86473ce https://ipt-obis.gbif.us/manage/resource?r=atn_41820_harbor-seal_trajectory_20040830-20041229 NOAA Integrated Ocean Observing System Sampling event -- 1 2025-12-11 16:16:24 2025-12-11 16:16:29 -- Registered Mathew Biddle

The question is, do we only return the current list of published datasets (ie. Home) or the resources the credentials have rights to manage (ie. Manage Resources)?

xref: https://github.com/obis-usa/ipt-mgmt/issues/1#issuecomment-4099365739

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions