Skip to main content

A package for end users to use the API endpoints of SEVEN with ease.

Project description

SEVEN API endpoint package

This package was meant to help the end users to utilise the API endpoints of seven. In the current verison you can use the following endpoints:

  • Store Fields
  • Store Data
  • Process Fields
  • Process Data
  • Costs
  • Reports

Each of these categories are represented by a class. You can initiate a class instance and use the .call_api() method to get a response.

Installation

You can use your package manager to install from PyPI.

If you are using pip:

python3 -m pip install seven-api-sdk

Examples

import seven_api_sdk
import json

password = "YOUR_SECRET_PASSWORD"
username = "YOUR_USERNAME"
client_id = "YOUR_CLIENT_ID"
client_name = "YOUR_TENANT_NAME"


handler = seven_api_sdk.StoreFields(username=username,password=password,client_id=client_id,client_name=client_name)
data = handler.call_api()

print (json.dumps(data,indent=4))

#You can specify parameters for certain endpoints
handler = seven_api_sdk.ProcessData(username=username,password=password,client_id=client_id,client_name=client_name,parameter="proc_by_storeID")
data = handler.call_api()
print (json.dumps(data,indent=4))

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

seven_api_sdk-0.1.2.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

seven_api_sdk-0.1.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file seven_api_sdk-0.1.2.tar.gz.

File metadata

  • Download URL: seven_api_sdk-0.1.2.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.15 CPython/3.10.6 Darwin/22.1.0

File hashes

Hashes for seven_api_sdk-0.1.2.tar.gz
Algorithm Hash digest
SHA256 12c0aad0c59f9695dfde54fd4545f1cdd6e3b2ac2bc136162dc22b9b9f8e45d3
MD5 8ae74f19516e3666e446aa0194123679
BLAKE2b-256 b4b2563e83a9bbe0065bcb1aed74cd952d70fffe5c9f0f8ae2ba5a237db7b972

See more details on using hashes here.

File details

Details for the file seven_api_sdk-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: seven_api_sdk-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.15 CPython/3.10.6 Darwin/22.1.0

File hashes

Hashes for seven_api_sdk-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 75326fe1f83a72b2d16f2e64a43287a442565ae934a85138001381ded509346b
MD5 3c048f114f6f85e226ca5b69fb8fa492
BLAKE2b-256 aa52cbd0143d6179f6915b8b4b1cd25b3338354c4906a08d4df712273d13c3c6

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