Skip to main content

An API client for the Duro REST API

Project description

duro_rest

An API client for the Duro REST API.

Installation

Installing from PyPi

pip install duro_rest

Installing from conda-forge

TBD

Examples

The Duro client is a very minimal API client for reading data from the Duro v1 REST API. It does not define classes for each object type and instead returns plain dictionaries and lists.

from duro_rest import Client

# Create a new client, providing your API key. By default clients will make calls to the public REST
# API, but the endpoint base can be overridden if needed
client = Client("your-api-key")

# Fetch a component by its Duro assigned id (as opposed to the CPN)
component = client.component("component-id")

# Fetch a list of all components in Duro
components = client.components()

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

duro_rest-0.0.2.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

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

duro_rest-0.0.2-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file duro_rest-0.0.2.tar.gz.

File metadata

  • Download URL: duro_rest-0.0.2.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for duro_rest-0.0.2.tar.gz
Algorithm Hash digest
SHA256 e8bfbbee93bc0225a5b727c5a0509be6580c84b58158115550e57a322686ff63
MD5 5e9598bce03d4896f03ba4bada7ab8cd
BLAKE2b-256 a5568e0e46bdac4eded54591463c563b334a5fe290680445aa1da83ea53b9c97

See more details on using hashes here.

File details

Details for the file duro_rest-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: duro_rest-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for duro_rest-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2102a823513aab62c5193cc141a7552b736d9aed19f895aec09ce6f27a6b4708
MD5 bea96444ebbf4080d59d957e67868112
BLAKE2b-256 f7afb4b7c38e4668d1482b52a597aebfc98a4448df9a8fe7fa968645a259fbcf

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