Name | wfork-streamlit-profiler JSON |
Version |
1.0.0
JSON |
| download |
home_page | None |
Summary | (fork of) Runtime profiler for Streamlit, powered by pyinstrument |
upload_time | 2025-01-29 21:20:36 |
maintainer | None |
docs_url | None |
author | Wyatt S Carpenter |
requires_python | <4.0,>=3.7 |
license | MIT |
keywords |
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# wfork-streamlit-profiler 🏄🏼
[](https://pypi.org/project/wfork-streamlit-profiler/)
**Runtime profiler for Streamlit, powered by [pyinstrument](https://github.com/joerick/pyinstrument).**
*wfork-streamlit-profiler is a fork of streamlit-profiler 0.2.4. If there are any newer versions of the original streamlit-profiler, you should probably use those instead. See the original project's github for more: https://github.com/jrieke/streamlit-profiler*
streamlit-profiler is a [Streamlit component](https://streamlit.io/components) that
helps you find out which parts of your app are slow. It profiles the code via
[pyinstrument](https://github.com/joerick/pyinstrument) and shows the results right
within your Streamlit app.
<sup>Alpha version, use with care.</sup>
---
<h3 align="center">
⏱️ <a href="https://share.streamlit.io/jrieke/streamlit-profiler/main/examples/basic.py">Live demo</a> ⏱️
</h3>
---
<p align="center">
<a href="https://share.streamlit.io/jrieke/streamlit-profiler/main/examples/basic.py"><img src="images/demo.png" width=600></a>
</p>
## Installation
```bash
pip install wfork-streamlit-profiler
```
## Usage
```python
import streamlit as st
from wfork_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](https://pyinstrument.readthedocs.io/en/latest/reference.html#pyinstrument.Profiler).
Raw data
{
"_id": null,
"home_page": null,
"name": "wfork-streamlit-profiler",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.7",
"maintainer_email": null,
"keywords": null,
"author": "Wyatt S Carpenter",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/b5/b4/2fdd5cf413ea1a322ce7fce341c9857c98b263976d137b3c04bf4778638a/wfork_streamlit_profiler-1.0.0.tar.gz",
"platform": null,
"description": "# wfork-streamlit-profiler \ud83c\udfc4\ud83c\udffc\n\n[](https://pypi.org/project/wfork-streamlit-profiler/)\n\n**Runtime profiler for Streamlit, powered by [pyinstrument](https://github.com/joerick/pyinstrument).**\n\n*wfork-streamlit-profiler is a fork of streamlit-profiler 0.2.4. If there are any newer versions of the original streamlit-profiler, you should probably use those instead. See the original project's github for more: https://github.com/jrieke/streamlit-profiler*\n\nstreamlit-profiler is a [Streamlit component](https://streamlit.io/components) that\nhelps you find out which parts of your app are slow. It profiles the code via\n[pyinstrument](https://github.com/joerick/pyinstrument) and shows the results right\nwithin your Streamlit app.\n\n<sup>Alpha version, use with care.</sup>\n\n---\n\n<h3 align=\"center\">\n \u23f1\ufe0f <a href=\"https://share.streamlit.io/jrieke/streamlit-profiler/main/examples/basic.py\">Live demo</a> \u23f1\ufe0f\n</h3>\n\n---\n\n<p align=\"center\">\n <a href=\"https://share.streamlit.io/jrieke/streamlit-profiler/main/examples/basic.py\"><img src=\"images/demo.png\" width=600></a>\n</p>\n\n## Installation\n\n```bash\npip install wfork-streamlit-profiler\n```\n\n## Usage\n\n```python\nimport streamlit as st\nfrom wfork_streamlit_profiler import Profiler\n\nwith Profiler():\n st.title(\"My app\")\n # ... other code\n\n# Or:\n# p = Profiler()\n# p.start()\n# ...\n# p.stop()\n```\n\nThen start your app as usual: `streamlit run my_app.py`\n\nThe `Profiler` class is an extension of `pyinstrument.Profiler`, so you can use\n[all of its functions](https://pyinstrument.readthedocs.io/en/latest/reference.html#pyinstrument.Profiler).\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "(fork of) Runtime profiler for Streamlit, powered by pyinstrument",
"version": "1.0.0",
"project_urls": {
"Homepage": "https://github.com/wyattscarpenter/streamlit-profiler"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "33500246268ea1ab69d46f73ff108436f52b0e3d45639d2b5d34bff4edf919b5",
"md5": "a5f593c509918e2dcddeef0fa6f70cba",
"sha256": "7792373634e603fa1aae9ec56f54c6e4523e454dcc1e21e9909a271ad37b44fe"
},
"downloads": -1,
"filename": "wfork_streamlit_profiler-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a5f593c509918e2dcddeef0fa6f70cba",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.7",
"size": 4119,
"upload_time": "2025-01-29T21:20:34",
"upload_time_iso_8601": "2025-01-29T21:20:34.985401Z",
"url": "https://files.pythonhosted.org/packages/33/50/0246268ea1ab69d46f73ff108436f52b0e3d45639d2b5d34bff4edf919b5/wfork_streamlit_profiler-1.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "b5b42fdd5cf413ea1a322ce7fce341c9857c98b263976d137b3c04bf4778638a",
"md5": "b7a552c417344fcec8ff889cc3d190b6",
"sha256": "1f54e1802f563cec8b5a38baa6ab2d5b33b1442a5109c0ba57e2f1782716a11d"
},
"downloads": -1,
"filename": "wfork_streamlit_profiler-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "b7a552c417344fcec8ff889cc3d190b6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.7",
"size": 3372,
"upload_time": "2025-01-29T21:20:36",
"upload_time_iso_8601": "2025-01-29T21:20:36.638489Z",
"url": "https://files.pythonhosted.org/packages/b5/b4/2fdd5cf413ea1a322ce7fce341c9857c98b263976d137b3c04bf4778638a/wfork_streamlit_profiler-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-29 21:20:36",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "wyattscarpenter",
"github_project": "streamlit-profiler",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "wfork-streamlit-profiler"
}