Skip to main content

Python SDK for Gard Data Service

Project description

PyGARD

PyGARD is Python SDK for the GARD (Geo Analysis Ready Data) service.

Installation

$ pip install pygard

Usage

# Import modules
from pygard.config.gardmeta_config import GardMetaConfig
from pygard.service.gardmeta_client import GardMetaClient
from pygard.model.dto_models import DataInstanceMetaRequest

# Initialize the configuration and client
config = GardMetaConfig()
gard_meta_client = GardMetaClient(config=config)

# Query the GARD service by ID
result = gard_meta_client.query_by_id(did=1)
print(result)

data_instance_meta = gard_meta_client.get_data_instance_meta(
    data_mark=DataInstanceMetaRequest(
        did=result.did,
        _format=result.format
    )
)
print(data_instance_meta)

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

pygard-0.1.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

pygard-0.1.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file pygard-0.1.0.tar.gz.

File metadata

  • Download URL: pygard-0.1.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for pygard-0.1.0.tar.gz
Algorithm Hash digest
SHA256 164ecfff227b59bb00611c565bc7ea9cec56a424dacdf0cd375f453145b659ce
MD5 55c5bb2a3e388af19ea3406ad90481be
BLAKE2b-256 f01812675fd69c9a12e6147c1dc534247879dd14fe436b60faafa8f60b9bc701

See more details on using hashes here.

File details

Details for the file pygard-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pygard-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for pygard-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5acd9ffcf8cdbc201b403b3229097785bfe7e3ab2b2a8f27e4f54ac6eb04fc70
MD5 688c2a92baed9ccbe78b18b0196e136f
BLAKE2b-256 920e0bf4727e5ad32b225bac5e16e0d966afe95d214cb55a45f349961dc3220c

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