This guide provides a quick introduction to the ndp-ep Python library for interacting with the NDP-EP API.
pip install ndp-ep
from ndp_ep import Client
# Using token authentication
client = Client(
base_url="https://your-api-endpoint.com",
token="your-api-token"
)
# Or using username/password
client = Client(
base_url="https://your-api-endpoint.com",
username="your-username",
password="your-password"
)
# List organizations
organizations = client.list_organizations()
# Search datasets
datasets = client.search_datasets(terms=["climate"])
# Get system status
status = client.get_system_status()
The library provides methods for:
After getting familiar with the basics: