Skip to main content
Pre-release

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/*

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)

Source distribution for hsl-builder 0.0.1b0
File Size Uploaded
hsl_builder-0.0.1b0.tar.gz 6.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hsl-builder 0.0.1b0
File Interpreter ABI Platform
hsl_builder-0.0.1b0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.1b0 This release

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