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.7.tar.gz (4.2 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.7-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: seven_api_sdk-0.1.7.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.9.15 Darwin/22.4.0

File hashes

Hashes for seven_api_sdk-0.1.7.tar.gz
Algorithm Hash digest
SHA256 c4f12935a32a45bd12e54904fd35e3d55af4314fff6702c87e3e7c64ebb93df6
MD5 3d3bd671f09b7a5f9159e7e7fb12079d
BLAKE2b-256 7054046afd994551efe17d8a5b0f0a63f817f9bbda7d07ca207b7ded7cb87da6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: seven_api_sdk-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.9.15 Darwin/22.4.0

File hashes

Hashes for seven_api_sdk-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a9de521c79de24ff63f5509cf8072e3389f4d9332f0502cab59957e65fec02fb
MD5 68e18d135baa0d9bf1cac6e45ef7b160
BLAKE2b-256 fb6acd54d00bc30ec363627ea9daa2ca1fe7a1f11986f947ef97e945e16f1cb4

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