A simple class-based Python client for getting data from the VeraCore REST API
Project description
The VeraCore API Client is a basic VeraCore.com REST API client built for Python.
Compatibility & Unit Testing are actively done against Python 3.8 and 3.9.
You can find out more regarding the API in the Official VeraCore.com REST API Documentation
The Swagger documentation can be found here: https://{domain}.veracore.com/VeraCore/Public.Api/swagger/ui/index
Replace {domain} with your VeraCore domain name
Examples
Retrieving orders that are in an unprocessed state:
from veracore_api_client import VeraCore
from veracore_api_client.constants import ORDER_STATUS_UNPROCESSED
veracore = VeraCore(username='APIUsername', password='APIPassword', system_id='APISystemID', domain='VCDomain.veracore.com')
orders = veracore.get_orders(order_status=ORDER_STATUS_UNPROCESSED)
for order in orders:
print('ID: %s | Status: %s | Stream: %s | Ordered By: %s | Ship To: %s' % (
order['ID'], order['CurrentOrderStatus'], order['OrderClassification']['OrderProcessingStream'],
order['OrderedBy']['Name'], ','.join([shipment['ShipTo']['Name'] for shipment in order['Shipments']])
))
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file veracore_api_client-0.0.3a2.tar.gz.
File metadata
- Download URL: veracore_api_client-0.0.3a2.tar.gz
- Upload date:
- Size: 18.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56d985ff0e2bfdf684dcef840cdc843ef608ac788eb65a3df2454b33169c6b06
|
|
| MD5 |
569249f87673a81ad7050b11ec068391
|
|
| BLAKE2b-256 |
9410664d746804ddbbdb49f8a3e3d46fc39ef0e9736065384233ebf82024794f
|
File details
Details for the file veracore_api_client-0.0.3a2-py2.py3-none-any.whl.
File metadata
- Download URL: veracore_api_client-0.0.3a2-py2.py3-none-any.whl
- Upload date:
- Size: 18.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55b26e136f63c19f605f18d2e20c3dba6c9c9a60589ddd77e14406de6ae71810
|
|
| MD5 |
764ec47c04e5802d67d099366016c360
|
|
| BLAKE2b-256 |
97e2fb3a89f18389275a103c7e2d918a9ce79dfa99b1e5ea09ff02ca11c8c175
|