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.2

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.2
File Size Uploaded
lhub_integ-1.0.2.tar.gz 11.6 kB Details

Built distribution (wheel)

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

Total release size: 26.0 kB

Release files / lhub_integ-1.0.2.tar.gz

Download URL lhub_integ-1.0.2.tar.gz
Size 11.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ced31758b36ee94fd1a3028b6ea12d82ffc8c9e6890cc5917df30af6f9fe9e2d
BLAKE2b-256 checksum
How to use checksums
8c2e1cc5d7472fc8ce916bf76073300b687d7a6da49ec6574f315fd8004b71a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.0 CPython/3.7.6 Darwin/18.7.0

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

Download URL lhub_integ-1.0.2-py3-none-any.whl
Size 14.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
59989f5855d690cdd00b602b17c59a384d2ab96ed6f7b6612f82303df8b6dfa6
BLAKE2b-256 checksum
How to use checksums
471c9cdfa3feba0c52f0128c62e9b0513e70da5ec54229876034f13160a93f65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.0 CPython/3.7.6 Darwin/18.7.0

Release history Release notifications | RSS feed

1.0.14

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

This release

1.0.2 This release

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