Skip to main content

A simple class-based Python client for getting data from the VeraCore REST API

Project description

https://api.travis-ci.org/VeraCore-API/veracore-api-client-python.svg?branch=master Documentation Status

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']])
  ))

Authors & License

This package is released under an open source GNU General Public License v3 or later (GPLv3+) license. This package was originally created by Eli Keimig.

The latest build status can be found at Travis CI

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

veracore_api_client-0.0.2.tar.gz (18.5 kB view details)

Uploaded Source

Built Distribution

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

veracore_api_client-0.0.2-py2.py3-none-any.whl (18.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file veracore_api_client-0.0.2.tar.gz.

File metadata

  • Download URL: veracore_api_client-0.0.2.tar.gz
  • Upload date:
  • Size: 18.5 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.9.5

File hashes

Hashes for veracore_api_client-0.0.2.tar.gz
Algorithm Hash digest
SHA256 95e825d0ea9a74d4f97090605a04c90c565a01755cb955066e2c8af876ec4fa4
MD5 af3249091aaa6b9918330a82cc95ea67
BLAKE2b-256 a3400c6d844385044c407a4482d6a3f8ddafbb61dcd990ac099dc8160b4f636b

See more details on using hashes here.

File details

Details for the file veracore_api_client-0.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: veracore_api_client-0.0.2-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.9.5

File hashes

Hashes for veracore_api_client-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fd55c25c2e4544a760b18425cdd882b764a74c5cf8b13bfcefbd116bcd1d2815
MD5 06e34c30e1076d1396b3df4cc6a77123
BLAKE2b-256 cf7a86ca2b40523b0a2c8a05ebfa7283b4346f3f941a8f90ff39553e5207e68e

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