clista - CLI to STreamlit App
Create interactive web app from any CLI with streamlit
Status
Very early alpha version, tested only with hey.
Install
pip install clista
Why
There are different ways to do task "benchmark a website"
- Type the command to run it then copy the output and write to the report.
- Write a script to run the command 10 times then copy the output and write to the report.
- Learn Jupyter and run the command from there, export the notebook as Playbook and use as report.
- Write a webapp to run the command and display the result (take 2 months, and 5 people).
- Write a streamlit app and let who give the task run themselves, as they need.
Use-cases
- Build one-time-used internal tool
- Build internal tool
- Build amazing tool (TODO later on this)
Usage
Example with hey
hey is a CLI HTTP load generator, like
apache bench.
$ hey 2>&1 | clista
Wrote stapp.py, please copy and edit as needed then run streamlit run stapp.py
NOTE: rerun would overwrite stapp.py
$ streamlit run stapp.py
You can now view your Streamlit app in your browser.
Local URL: http://localhost:8501
Network URL: http://192.168.100.4:8501
Open stapp.py, removes undesired options and run to bench itself:
Metadata
Release files for clista 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| clista-0.0.2.tar.gz | 3.9 kB | Without provenance | Details for clista-0.0.2.tar.gz |
Release files / clista-0.0.2.tar.gz
| Download URL | clista-0.0.2.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f52f96e3e5cacc5b87f42808ae8816e3ec75f5a3acbee6a1ab482e03499aba89
|
|
BLAKE2b-256 checksum How to use checksums |
89231b39065fb946084e119435626dd6f020086c43ffafabcbe8ff3df76a3d5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.10
|
Security for clista 0.0.2
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.