Skip to main content

API client and CLI tools for working with SymphonyAI Store Intelligence platform

Project description

rebotics_sdk

Rebotics SDK for communicating with Rebotics Services, API CLI client.

Features

  • Communication between Rebotics Services through provider client classes

  • Two django applications for external communications through web-hooks

  • CLI clients for Rebotics Services

Prerequisites

You need to have Python 3.7+ installed in your system for current system user.

Installation

Linux & MacOS

Can be installed with pip:

pip3 install --user --upgrade rebotics_sdk

You should have directory ~/.local/bin/ in your PATH variable in ~/.bashrc or ~/.bash_profile.

Windows

Is installed without –user flag:

pip install --upgrade rebotics_sdk

Open environment variable settings and find PATH variable.

After installation rebotics-scripts should be located inside python3 directory.

Append the following path %APPDATA%\Local\Python<version>\bin\ to PATH variable, then log out from your system or restart your PC.

CLI Installation

To run the commands in shell:

pip install --upgrade --quiet --no-input rebotics_sdk[shell]

Usage

After successful installation the CLI for following services should be accessible:

  • admin

  • dataset

  • retailer

  • rebm

  • rebotics

  • fvm

  • hawkeye

  • hawkeye_camera

The “role” could be configured for these services except rebotics and hawkeye_camera.

Retailer setup

For setup you need to configure role to access retailer instance with specifying retailer server:

retailer -r alpha configure --help

This command will prompt you to set retailer host, your username and password.

For role you can specify anything for your own convenience.

Retailer CLI client

Usage:

retailer [OPTIONS] COMMAND [ARGS]...

Options:

-f, --format [table|id|json]

-v, --verbose                 Enables verbose mode

-c, --config PATH             Specify what config.json to use

-r, --role TEXT               Key to specify what retailer to use

                              [required]

--api-verbosity INT           Display request detail

--version                     Show the version and exit.

--help                        Show this message and exit.

Note: The same CLI structure could be used for other services. Check the documentation on available commands at Confluence page.

Hawkeye Camera CLI client

Admin CLI tool to communicate with Public Hawkeye API for cameras without authorization does not require to configure role in rebotics_sdk. Instead, it accepts the target server url.

Example usage:

hawkeye_camera -h https://hawkeye.rebotics.net create-capture "path_to_image.jpg" -c "camera_token"

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2019-05-22)

  • First release on PyPI.

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

rebotics_sdk-0.31.1.tar.gz (21.5 MB view details)

Uploaded Source

Built Distribution

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

rebotics_sdk-0.31.1-py2.py3-none-any.whl (106.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file rebotics_sdk-0.31.1.tar.gz.

File metadata

  • Download URL: rebotics_sdk-0.31.1.tar.gz
  • Upload date:
  • Size: 21.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for rebotics_sdk-0.31.1.tar.gz
Algorithm Hash digest
SHA256 610a16bb0908e3c3bbf794d7a4f4851a9bfec4b59fa6af2adc4fe7528cbc1cd5
MD5 775d9eea1d82c6861aa7d0ab2e5db578
BLAKE2b-256 5d202f93878e1a0d3a3a1dbf5210636047c47a2706a1b8468b5c2c03e1788b1b

See more details on using hashes here.

File details

Details for the file rebotics_sdk-0.31.1-py2.py3-none-any.whl.

File metadata

  • Download URL: rebotics_sdk-0.31.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 106.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for rebotics_sdk-0.31.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1452f78c1eec75746973f656de610c0fdefa92cb8c68b03682d851b949d4ec91
MD5 e751179048b483dd0f5500a991f0630b
BLAKE2b-256 c43c9375c4bc019860e5f84418150ecb6a8e2e06e3e5e0c1f91f5838a7a5db17

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