HSL Builder for creating hsl elements
Project description
HSL Builder
Python pip package for creating HSL Elements.
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-0a1.tar.gz
(5.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hsl_builder-0a1.tar.gz.
File metadata
- Download URL: hsl_builder-0a1.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8fad09443470645184284d1c87cd242d673f60f061c6c8e27832940956218c2
|
|
| MD5 |
7ad5a8a25bd8cf9c9a6b612a9eb598db
|
|
| BLAKE2b-256 |
2e858786b499d5e08a4907f4c6a9774b64f22b053b3f8eb92d58f230f3c2dcb9
|
File details
Details for the file hsl_builder-0a1-py3-none-any.whl.
File metadata
- Download URL: hsl_builder-0a1-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eac7036fd64eb62a9f47fc62f6bb445a2c3ba046381062b6a801f4ff2e949e36
|
|
| MD5 |
34ce54f1e882c3110ea6a45fe95a34c6
|
|
| BLAKE2b-256 |
a46d09ff69a15ac23e6c80b9c2028cb1846ad873ba05b4e454bc6f68be2fc56e
|