Skip to main content

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

Release files for lhub_integ 1.0.14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lhub_integ 1.0.14
File Size Uploaded
lhub_integ-1.0.14.tar.gz 29.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lhub_integ 1.0.14
File Interpreter ABI Platform
lhub_integ-1.0.14-py3-none-any.whl Python 3 none any Details

Total release size: 67.7 kB

Release files / lhub_integ-1.0.14.tar.gz

Download URL lhub_integ-1.0.14.tar.gz
Size 29.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ac07e38e4a940e34e43430807c92b72e9c1d457a71b272aceb47a9f4973b9ad2
BLAKE2b-256 checksum
How to use checksums
36aad69ff61bc328012c5d2dc11e1dfc2b5636111125a70c2c89b3ee2e6f583b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.13.5 Darwin/23.1.0

Release files / lhub_integ-1.0.14-py3-none-any.whl

Download URL lhub_integ-1.0.14-py3-none-any.whl
Size 38.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6b771c40c4246e9044ce857d2e7228b467fcc218b3c70643b47f2d444b6c0075
BLAKE2b-256 checksum
How to use checksums
8162673220fb71f2e75e15c5c349c74a28fcf35023f3fee1d36e7d233adbe927
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.13.5 Darwin/23.1.0

Release history Release notifications | RSS feed

This release

1.0.14 This release

2 release files

1.0.13

2 release files

1.0.12

2 release files

1.0.11

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page