Skip to main content

API that interacts with Illumina Clarity LIMS REST architecture.

Project description

UA-Clarity-API

Provides a simple REST implementation for use with Clarity endpoints.

Motivation

Was designed to implement a simple way to interact with Clarity REST architecture.

Features

  • Get will do a batch get if that end point exists, otherwise it will return a response similar to what a batch get returns.
  • Caller can add queries to get using a keyword.
  • Caches every get to eliminate excessive get calls.
  • All REST calls will throw an exception if they failed.

Code Example

from ua_clarity_api import ua_clarity_api


api = ua_clarity_api.ClarityApi(host, username, password)
uris_files = api.download_files("some file uri")
data = api.get("some endpoint")

Installation

pip install ua-clarity-api

Tests

pip install --update nose
cd ./repo
cd ./tests
nosetests test_ua_clarity_api.py

How to Use

  • You'll need to instantiate a ClarityApi object with a correct host, and the username/password to access that host's endpoints.
  • Get can retrieve resources from endpoints and can utilize queries with the "parameters" keyword.
  • Put and Post can update or create new resources given the appropriate endpoint and a well-formed payload.
  • Delete can remove a resource from an endpoint.
  • Download_files will create temporary files from a list of file uris and returns them as a dictionary mapping of uri: tempfile.

Credits

sterns1 raflopjr RyanJohannesBland

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

ua_clarity_api-1.1.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file ua_clarity_api-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: ua_clarity_api-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for ua_clarity_api-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dc735b15bbb16441a8e1ecd65ed27b8ab33f4d1e41ce0e52fe6c8d71b25db470
MD5 1d782de2bc4a8b23427dd5fdd679b4d8
BLAKE2b-256 9e910b63cf41d84ad073cf41eb310977ec3920d895a9013e23ebafe2fff84b85

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