Skip to main content

streamlit-profiler  🏄🏼

PyPi

Runtime profiler for Streamlit, powered by pyinstrument.

streamlit-profiler is a Streamlit component that helps you find out which parts of your app are slow. It profiles the code via pyinstrument and shows the results right within your Streamlit app.

Alpha version, use with care.


⏱️ Live demo ⏱️


Installation

pip install streamlit-profiler

Usage

import streamlit as st
from streamlit_profiler import Profiler

with Profiler():
    st.title("My app")
    # ... other code

# Or:
# p = Profiler()
# p.start()
# ...
# p.stop()

Then start your app as usual: streamlit run my_app.py

The Profiler class is an extension of pyinstrument.Profiler, so you can use all of its functions.

Metadata

Release files for streamlit-profiler 0.2.4

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

Source distribution (sdist)

Source distribution for streamlit-profiler 0.2.4
File Size Uploaded Provenance Actions
streamlit-profiler-0.2.4.tar.gz 3.9 kB Without provenance Details for streamlit-profiler-0.2.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for streamlit-profiler 0.2.4
File Interpreter ABI Platform Actions
streamlit_profiler-0.2.4-py3-none-any.whl Python 3 none any Details for streamlit_profiler-0.2.4-py3-none-any.whl

Total release size: 7.8 kB

Release files / streamlit-profiler-0.2.4.tar.gz

Download URL streamlit-profiler-0.2.4.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0d87494abdbd9d8372fc004360e06e18dfce316432853d210334026bf616cd2b
BLAKE2b-256 checksum
How to use checksums
f4ec23e0cc71902cae6373fcbf76d76bbae423908b53279aa2fc2e9c01ddbef7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.8 CPython/3.8.5 Darwin/20.5.0

Release files / streamlit_profiler-0.2.4-py3-none-any.whl

Download URL streamlit_profiler-0.2.4-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
66b0a95da4bd2377ee1c7c9020f5b535bb03cd77ffe801b341dfaa2490676506
BLAKE2b-256 checksum
How to use checksums
f49a56378a39d060b2ac883e947c23aaa8688ad7991636151e68ec08b264a37e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.8 CPython/3.8.5 Darwin/20.5.0

Security for streamlit-profiler 0.2.4

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.

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