Skip to main content

polars-lprof

uv PyPI Supported Python versions License pre-commit.ci status

Read line_profiler reports into Polars DataFrames

Installation

The polars-lprof package can be installed with either polars or polars-lts-cpu using the extras by those names:

pip install polars-lprof[polars]
pip install polars-lprof[polars-lts-cpu]

If Polars is already installed, you can simply pip install polars-lprof.

Usage

Note: use this tool after running Python code with @line_profiler.profile decorators on functions which will output .txt plain text reports on the program's performance. The line_profiler tool relies on the environment variable set with export LINE_PROFILE=1.

First run your line_profiler (in whichever variations you want) and then use this tool to analyse the performance reports (named like profile_output_2025-02-04T002856.txt). The most recent one will always be called profile_output.txt but often we want to collect multiple for review.

plprof profile_output.txt

Use it from Python as a library:

from plprof import parse_lprof

metadata, lines = parse_lprof("profile_output.txt")

Metadata

Release files for polars-lprof 0.1.2

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

Source distribution (sdist)

Source distribution for polars-lprof 0.1.2
File Size Uploaded
polars_lprof-0.1.2.tar.gz 4.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for polars-lprof 0.1.2
File Interpreter ABI Platform
polars_lprof-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 10.3 kB

Release files / polars_lprof-0.1.2.tar.gz

Download URL polars_lprof-0.1.2.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e4aa05dd18da719c207b49e5887544997f6adc2576fc2e5d8a4fadd88b489bb0
BLAKE2b-256 checksum
How to use checksums
f3e9aab1a83f3d97b484b40c025c36871f904d837d0ea8869dc7267b7c7752f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Apr 16, 2026.

Transparency log

Release files / polars_lprof-0.1.2-py3-none-any.whl

Download URL polars_lprof-0.1.2-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e51f7559a0823ab480cd38d10705b7214b2b9c4648246db73285e1e4f0b5f8fe
BLAKE2b-256 checksum
How to use checksums
83a386e89602c8507ebc23defaa7fc60df71326a424c853d5b8ca75f1ab13d0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Apr 16, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

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