Skip to main content

No project description provided

Project description

HStream

Convert your script to interactive python web app like so:

user_said = hs.text_input("What would you like to say:")

Powered by Django + htmx enables easy app ejection to scale/extend once you've outgrown HStream. Inspired by Streamlit.

Usage

pip install hstream

hstream init # populates example.py

hstream run example.py

hstream demo

Motivation

Write beautiful user interfaces that enable quick iteration for Proof-of-Concept (PoC) python scripts, without the need to start over when we go to production.

Love Streamlit but:

  • impossible to customise beyond PoC phase
  • hard to reason about when extending and deploying
  • non-standard approach doesn't play nicely with existing ecosystems

H-(html)-Stream is built with semantic html, Django and htmx to provide a fast and simple framework for rapid web app development that follows traditional frontend/server architecture (or at least follow it closer than Streamlit).

Some features that excite us

Some examples

Technologies

Big thanks to the following libraries in particular

  • Streamlit
  • htmx
  • Yattag
  • pico css
  • Django

Backlog (WIP)

  • live server reload on file change (through univorn)
  • semantic html and basic html manipulation from within script
  • basic components - see below
  • swap stylesheet
  • complex html manipulation from within script (setting attributes)
  • plotly plot support
  • select component
  • multi select component
  • auto ssl certs for easy deployment
  • example component architecture
  • reload browser on code change

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

hstream-0.1.57.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

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

hstream-0.1.57-py3-none-any.whl (21.9 kB view details)

Uploaded Python 3

File details

Details for the file hstream-0.1.57.tar.gz.

File metadata

  • Download URL: hstream-0.1.57.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for hstream-0.1.57.tar.gz
Algorithm Hash digest
SHA256 0effc5289e312e8f5882ac33e68a20d051e3a1cb4cdc41f751f4aa195c3887c1
MD5 159d7114134d4c76045f9040532aa138
BLAKE2b-256 051e8d471d23173f467abe10f1997075bf68926c435530d459d95b9f6b13221e

See more details on using hashes here.

File details

Details for the file hstream-0.1.57-py3-none-any.whl.

File metadata

  • Download URL: hstream-0.1.57-py3-none-any.whl
  • Upload date:
  • Size: 21.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for hstream-0.1.57-py3-none-any.whl
Algorithm Hash digest
SHA256 6710b74a3b8ffb26781eb58d41fe8a4cf2407a6759765f1bf04f505dc47e13d9
MD5 6fccf9ed18d686ccfe652296b56e1efc
BLAKE2b-256 7accf924b76314a6fc11a476f32edd8466cef9c1e0f6e998add1275b7e219fdc

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