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()

# Fetch a list of all components in Duro filtered by status
components = client.components(status = "OBSOLETE")

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.3.tar.gz (3.0 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.3-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: duro_rest-0.0.3.tar.gz
  • Upload date:
  • Size: 3.0 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.3.tar.gz
Algorithm Hash digest
SHA256 4d99fa25a470e84305e7343ab3260193663c2bf881d52481569b212626510708
MD5 6bdf1bb8482aa63958e4891384229de1
BLAKE2b-256 b138c4485e64ad1be909f20b2ca4a548f021360db7b7077fd8fc02a56bba877c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: duro_rest-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 9.3 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 269d6131e7ab98b68c8ba39a92e3c1f798106e73b9c4a7f3d4c8386594539f9e
MD5 f613de4dfc5a6641b960a46b5c22344d
BLAKE2b-256 dbd7cd3b80afbb6359b24de58b7d2d2d161d3317c15e8a8cc53c412e9b0a769c

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