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 using 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)
Installation
pip install ua-clarity-api
Tests
pip install --update nose
cd ./repo
cd ./tests
nosetests test_clarity_api.py
How to Use
- 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
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
ua_clarity_api-1.0.0.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for ua_clarity_api-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b5591aee21f67baf57f7fd41d15d6f7eb967c229a24d0f264edfabdc9832a79 |
|
MD5 | 94bf9b8b5c096d5178542ab80dfb8eb1 |
|
BLAKE2b-256 | 7e86fdd064a21805ff52c8be12bd9fef00009c88266cca119167d3fc35def0b5 |