Skip to main content

The Logichub Integration SDK

Project description

lhub_integ

Python package to shim basic scripts to work with integration machinery. This package requires Python 3.6:

# Optional: install Python 3.6 with pyenvv
brew install pyenv
pyenv install 3.6.6
pyenv init # Follow the instructions
pyenv local 3.6.6
python --version
pip install lhub_integ

Usage (as an integration writer)

To write a Python script that is convertible into an integration:

  1. Create a directory that will contain your integration
  2. Install lhub_integ as a local package: pip install lhub_integ

Python scripts must provide an entrypoint function with some number of arguments. These arguments will correspond to columns in the input data. The function should return a Python dictionary that can be serialized to JSON

def process(url, num_bytes: int):
  return {'output': url + 'hello'}

Specifying Dependencies

You must create a requirements.txt file specifying your dependencies. To create a dependency bundle run:

$ bundle-requirements

This script is provided when you install lhub_integ.

Publishing

You will need the PyPi username and password that are in 1Password (search for PyPi)

  1. Bump the version in pyproject.toml

  2. poetry publish --build

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

lhub_integ-1.0.14.tar.gz (29.2 kB view details)

Uploaded Source

Built Distribution

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

lhub_integ-1.0.14-py3-none-any.whl (38.5 kB view details)

Uploaded Python 3

File details

Details for the file lhub_integ-1.0.14.tar.gz.

File metadata

  • Download URL: lhub_integ-1.0.14.tar.gz
  • Upload date:
  • Size: 29.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.5 Darwin/23.1.0

File hashes

Hashes for lhub_integ-1.0.14.tar.gz
Algorithm Hash digest
SHA256 ac07e38e4a940e34e43430807c92b72e9c1d457a71b272aceb47a9f4973b9ad2
MD5 064d97a0945691aa76ace50e8e637a8b
BLAKE2b-256 36aad69ff61bc328012c5d2dc11e1dfc2b5636111125a70c2c89b3ee2e6f583b

See more details on using hashes here.

File details

Details for the file lhub_integ-1.0.14-py3-none-any.whl.

File metadata

  • Download URL: lhub_integ-1.0.14-py3-none-any.whl
  • Upload date:
  • Size: 38.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.5 Darwin/23.1.0

File hashes

Hashes for lhub_integ-1.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 6b771c40c4246e9044ce857d2e7228b467fcc218b3c70643b47f2d444b6c0075
MD5 c4365428b72c48989151ed3a63c4a39b
BLAKE2b-256 8162673220fb71f2e75e15c5c349c74a28fcf35023f3fee1d36e7d233adbe927

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