Skip to main content

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

Project details


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.1b0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hsl_builder-0.0.1b0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file hsl_builder-0.0.1b0.tar.gz.

File metadata

  • Download URL: hsl_builder-0.0.1b0.tar.gz
  • Upload date:
  • Size: 6.6 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

Hashes for hsl_builder-0.0.1b0.tar.gz
Algorithm Hash digest
SHA256 fa6997ae6cd16a1c42af8a2408e15df76345da989ee1ecc015c22c96b253d717
MD5 2441684096090a020c7b25dd4112f046
BLAKE2b-256 507464d79db0add162d872d787595b4c5f8a8c97014a30426526fe3dd2dc51e6

See more details on using hashes here.

File details

Details for the file hsl_builder-0.0.1b0-py3-none-any.whl.

File metadata

  • Download URL: hsl_builder-0.0.1b0-py3-none-any.whl
  • Upload date:
  • Size: 9.9 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

Hashes for hsl_builder-0.0.1b0-py3-none-any.whl
Algorithm Hash digest
SHA256 eeb3c969cb285437f70a40e7ec433c5aa943bed42ca1e67a6f9badc8b3e24875
MD5 4a53cc142cd7da6f10269550e14343f3
BLAKE2b-256 2b9b16792feff7c57e9b5eb8ad572868009d834248e16dfc4f227d4c1d138052

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page