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
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lhub_integ-1.0.14.tar.gz | 29.2 kB | Without provenance | Details for lhub_integ-1.0.14.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lhub_integ-1.0.14-py3-none-any.whl | Python 3 | none | any | Details for lhub_integ-1.0.14-py3-none-any.whl |
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
|
Security for lhub_integ 1.0.14
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.