Python Client for QRonos
Project description
qronos-client
Python client for QRonos
Installation
This package can be installed via pip:
pip install qronos-client
Example Usage
from qronos import QRonosClient
# Create client and login
qronos = QRonosClient(host='dev.qronos.xyz')
token, expiry = qronos.login(username='Quentin', password='Rogers')
# Alternatively if you already have a token
qronos = QRonosClient(host='dev.qronos.xyz', token='ABCDEFGHIJKLMN')
# Import Tracker (Item) Data
job_id = qronos.tracker_import(tracker_id=24, tracker_importer_id=63, unique_columns=["Part Number", "Weight"], data=[{"Part Number": "A1", "Weight": 5}, {"Part Number": "A2", "Weight": 8}])
# Import Stage Data
job_id = qronos.stage_import(stage_id=2, stage_importer_id=25, data=[{"Part Number": "A1", "Lead Time": 5}, {"Part Number": "A2", "Actual": "2020-10-26"}])
# Check Status of an Import
status = qronos.import_status(job_id=job_id)
# Logout
qronos.logout(all_tokens=True)
Testing
Speak with a QRonos Demo Site Admin for credentials in order to run the tests.
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
qronos-client-0.0.1.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for qronos_client-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8fcb13c81fcf7a1fa1f64d7313999310efd4704fd2b642bca633a3e9788b058 |
|
MD5 | e7dab980d5899d10ab42178fc826e489 |
|
BLAKE2b-256 | 860ba50684f0ccb39b14e1ec6b924c0cbf0187edac6d2f9dbd7a21fb84a0a024 |