HSL Builder for creating hsl elements
Project description
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==0a1
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()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hsl_builder-0.0.1a0.tar.gz
(6.1 kB
view hashes)
Built Distribution
Close
Hashes for hsl_builder-0.0.1a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 071680421ee978986b2a36e55c45ee7286a7542508a5a9db47182c01033d03d4 |
|
MD5 | 57de961c3059d644219b36b23f84267a |
|
BLAKE2b-256 | 515bdf27a3d510112fca951a939da2dbf3788390d78585eb139170a4ab87fb51 |