metaflow-pyinstrument
Profile Metaflow steps with pyinstrument and view results as interactive HTML cards.
Installation
pip install metaflow-pyinstrument
Usage
from metaflow import FlowSpec, step, pypi_base
from metaflow_pyinstrument import pyinstrument_card
@pypi_base(packages={'pyinstrument': ''})
class MyFlow(FlowSpec):
@pyinstrument_card()
@step
def start(self):
# Your code here - will be profiled
result = sum(i**2 for i in range(100000))
self.next(self.end)
@step
def end(self):
pass
if __name__ == '__main__':
MyFlow()
Run with:
python myflow.py --environment=pypi --with kubernetes run
View the card:
python myflow.py card view start
Parameters
| Parameter | Default | Description |
|---|---|---|
card_id |
"pyinstrument" |
Card identifier |
interval |
0.001 |
Sampling interval (seconds). Use 0.0001 for fast code |
html_attribute |
"html" |
Artifact name for HTML output |
Metadata
Release files for metaflow-pyinstrument 0.1.1
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 | |
|---|---|---|---|---|
| metaflow_pyinstrument-0.1.1.tar.gz | 7.6 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| metaflow_pyinstrument-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.8 kB
Release files / metaflow_pyinstrument-0.1.1.tar.gz
| Download URL | metaflow_pyinstrument-0.1.1.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
93a79986672676eaf6d04abc4f27630a5b4360d0ca56c5b597686f6cc2457e47
|
|
BLAKE2b-256 checksum How to use checksums |
178f804c7ecf28e7857413bb95988e062d3d91351e569858888e7bbffeb253ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 26, 2026.
Transparency logRelease files / metaflow_pyinstrument-0.1.1-py3-none-any.whl
| Download URL | metaflow_pyinstrument-0.1.1-py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
692bda2ab0c4707e89046afb192327fafcdf8f1c52398e26a4159891b3ef4fb9
|
|
BLAKE2b-256 checksum How to use checksums |
f8bb1a39dbe26c21c80b0c365244a1a4424b49a7beb596068f8c9f0c568316ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 26, 2026.
Transparency logSecurity for metaflow-pyinstrument 0.1.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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for metaflow_pyinstrument-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 26, 2026.
Transparency logA 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.