Skip to main content

The official client for the Logichub API

Project description


This utility connects to a deployment to

  • Import scripts
  • Import modules
  • Import flow
  • Create an Event Type from a CSV file


All actions expect the following parameters

  • origin: eg. https:///api
  • username
  • password (prompted interactively if missing)

The last argument is either a file or a directory. If a directory is provided, the script will apply the action to all the files in the directory with suffixes .json, .py, .sh, .csv.


Import a script

Uploads either a python or a bash script. If a script with the same name already exists, its contents are overwritten with the new contents (that's how the backend works, nothing specific to this script).


python import script --origin https://<deployment_host>/api --username <username> <the py/sh file or folder>

Import a module

Imports a module from its JSON representation. If a module with the same ID already exists, it will fail with the DuplicateModuleIdException exception.


python import module --origin https://<deployment_host>/api --username <username> <the json file or folder>

Import a flow

Imports a flow from its JSON representation. We are currently using the legacy API, so import will fail if a flow with the same name already exists.


python import flow --origin https://<deployment_host>/api --username <username> <the json file or folder>

Create Event Type from CSV

Uploads a CSV file, creates a new FileConnection (named as the file, without the extension) and creates a new EventType (named as the file, without the extension as well). If the CSV file already exists, its contents will NOT be overwritten on the server. If an EventType already has the name of the filename, the creation will fail (we can't have two EventTypes with the same name).

You can optionally use the --name argument to specify the name to use for both the FileConnection and the EventType


python create event-type from-csv --origin https://<deployment_host>/api --username <username> <the csv file or folder>

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

lhclient-0.1.14.tar.gz (4.3 kB view hashes)

Uploaded Source

Built Distribution

lhclient-0.1.14-py2.py3-none-any.whl (13.2 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page