Skip to main content

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

Metadata

Release files for hstream 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hstream 0.5.1
File Size Uploaded Provenance Actions
hstream-0.5.1.tar.gz 7.9 MB Without provenance Details for hstream-0.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hstream 0.5.1
File Interpreter ABI Platform Actions
hstream-0.5.1-py3-none-any.whl Python 3 none any Details for hstream-0.5.1-py3-none-any.whl

Total release size: 7.9 MB

Release files / hstream-0.5.1.tar.gz

Download URL hstream-0.5.1.tar.gz
Size 7.9 MB
Tags Source
SHA-256 checksum
How to use checksums
8d20cc7153370f9f79c193cb5d7bd7ae14d1b22096edd692444ad83c303b007f
BLAKE2b-256 checksum
How to use checksums
7c5406fe06b0edf3a97b486e6a0cc96af793fdb2d454c4bdb190e1d467e3781c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / hstream-0.5.1-py3-none-any.whl

Download URL hstream-0.5.1-py3-none-any.whl
Size 23.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
da0942dd5a6e0febd5ac4fc98ee18404012ae35de46e00f1529a543e2749470b
BLAKE2b-256 checksum
How to use checksums
9db2ad9f7667c98e9c98bff65adbc5c1ad7a63607df6b9f88230d49f3e2bcd26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for hstream 0.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.5.1 This release

2 release files No provenance

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