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:
- Create a directory that will contain your integration
- 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)
-
Bump the version in pyproject.toml
-
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)
| File | Size | Uploaded | |
|---|---|---|---|
| lhub_integ-1.0.2.tar.gz | 11.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|