This release is a pre-release and may not be stable for production use.
HSL Builder Repo
Python pip package for creating HSL Elements.
Installation:
You can install hsl builder using pip.
pip install --pre hsl_builder
OR
You can also add hsl_builder==0.0.1b0 it to your project requirements.txt
Usage:
#import hsl builder
from hsl_builder import Button
from hsl_builder.elements import Actionable, ActionableType, URI
# Create a button
button = Button("Title")
# Create link actionable
actionable = Actionable("actionable text", ActionableType.APP_ACTION, URI.LINK)
actionable.payload = {
'url': 'https://www.haptik.ai'
}
# Add actionable to button
button.actionables.append(actionable)
# generate hsl for our button object
hsl = button.to_hsl()
Publishing
Make sure you have specified the correct version specified in setup.py
Remove existing build files
rm -rf rm -rf dist/ build/ hsl_builder.egg-info/
Build package wheel
python setup.py sdist bdist_wheel
Publishing package
Make sure that correct version is specified in setup.py
you'll need to create an account at pypi beforehand
publish to test.pypi.org to make sure that whl is built correctly and can be installed and used from other machines
python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
publish to pypi
python -m twine upload dist/*
Metadata
Release files for hsl-builder 0.0.1b0
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 |
|---|---|---|---|---|
| hsl_builder-0.0.1b0.tar.gz | 6.6 kB | Without provenance | Details for hsl_builder-0.0.1b0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hsl_builder-0.0.1b0-py3-none-any.whl | Python 3 | none | any | Details for hsl_builder-0.0.1b0-py3-none-any.whl |
Total release size: 16.5 kB
Release files / hsl_builder-0.0.1b0.tar.gz
| Download URL | hsl_builder-0.0.1b0.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fa6997ae6cd16a1c42af8a2408e15df76345da989ee1ecc015c22c96b253d717
|
|
BLAKE2b-256 checksum How to use checksums |
507464d79db0add162d872d787595b4c5f8a8c97014a30426526fe3dd2dc51e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2
|
Release files / hsl_builder-0.0.1b0-py3-none-any.whl
| Download URL | hsl_builder-0.0.1b0-py3-none-any.whl |
|---|---|
| Size | 9.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eeb3c969cb285437f70a40e7ec433c5aa943bed42ca1e67a6f9badc8b3e24875
|
|
BLAKE2b-256 checksum How to use checksums |
2b9b16792feff7c57e9b5eb8ad572868009d834248e16dfc4f227d4c1d138052
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2
|
Security for hsl-builder 0.0.1b0
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.