Python API client for the DVAS API
Project description
Actris DVAS API Client
DVAS - Data Discovery, Virtual Access and Services - is a platform developed by Actris to facilitate the discovery, access, and use of atmospheric data. The Actris DVAS API provides programmatic access to the metadata in DVAS, allowing users to explore the available metadata.
This is the Python client for accessing the metadata in the Actris DVAS API. It provides a simple interface for retrieving metadata.
The metadata in DVAS is subject to the CC-BY-4.0 license, which means that you are free to use, share, and adapt the metadata as long as you give appropriate credit to the original source, provide a link to the license, and indicate if changes were made. For more information about the CC-BY-4.0 license, please visit Creative Commons.
Installation
You can install the Actris DVAS API client using pip:
pip install dvas-api-client
Basic Usage
#!/usr/bin/env python3
from pprint import pprint
from dvas.client import BoolQuery, QueryField, SortType, PROD_API
from dvas.client import search
query = (
BoolQuery()
.must(QueryField.DATASET_REPOSITORY_ID, "In-Situ")
.must(QueryField.DISTRIBUTION_ACCESS_RESTRICTED, False)
.filter_range(
QueryField.TEMPORAL_EXTENT_BEGIN,
gte="1979-01-01T00:00:00.000Z",
)
.sort([
(QueryField.TEMPORAL_EXTENT_BEGIN, SortType.ASC),
(QueryField.IDENTIFICATION_PID, SortType.ASC),
])
)
for doc in search(PROD_API, query):
pprint(doc)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dvas_api_client-0.6.2.tar.gz.
File metadata
- Download URL: dvas_api_client-0.6.2.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82167f598c2e97c53df6141dce191140b65b371ff4a4d5619e6513603bb31a0e
|
|
| MD5 |
c4b8bf500ed0418f6257682ccfc0123e
|
|
| BLAKE2b-256 |
05cb30da566c33742709d72bfee150cb1f368bb491035b1892caf35a2b9aa69e
|
File details
Details for the file dvas_api_client-0.6.2-py3-none-any.whl.
File metadata
- Download URL: dvas_api_client-0.6.2-py3-none-any.whl
- Upload date:
- Size: 16.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66772fd04738e74ba9abe9f3d5d7fac33d19f90c0222650060b8de178fbbc8c0
|
|
| MD5 |
b6f745a7d24e72d2cc423585adce1a92
|
|
| BLAKE2b-256 |
ee4e91921bee61eeb98ba2b602edb1c69faf473c7a6b16583091cbb98f75256b
|