Skip to main content

Vedro Import Profiler

Vedro Import Profiler allows you to profile your imports in Vedro projects, helping you identify and optimize import statements for better performance.

Installation

To get started, you first need to install the vedro-import-profiler plugin. Open your terminal and run the following command:

$ pip install vedro-import-profiler

Enabling the Plugin Temporarily

Once installed, you can temporarily enable the Vedro Import Profiler for your current session. Additionally, you may need to disable the assert_rewriter plugin to avoid conflicts. Run these commands in your terminal:

$ vedro plugins enable vedro-import-profiler
$ vedro plugins disable vedro.plugins.assert_rewriter

Running the Profiler

To run the profiler and generate a log of your import times, use the command below. Make sure to prepend PYTHONPROFILEIMPORTTIME=yes to capture the necessary data:

$ PYTHONPROFILEIMPORTTIME=yes vedro run --vedro-import-profiler 2> import.log

Visualizing Import Times

After running the profiler, you can visualize the import times using the tuna viewer. Tuna provides an intuitive interface for analyzing the performance of your imports. To use Tuna with your generated log file, execute the following command:

$ tuna import.log

Metadata

Release files for vedro-import-profiler 0.0.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 vedro-import-profiler 0.0.2
File Size Uploaded
vedro-import-profiler-0.0.2.tar.gz 7.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vedro-import-profiler 0.0.2
File Interpreter ABI Platform
vedro_import_profiler-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 15.5 kB

Release files / vedro-import-profiler-0.0.2.tar.gz

Download URL vedro-import-profiler-0.0.2.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
126f8c6452c645cb91fa878bcd56a4e6aec4fcb3666c5e28038f14f0118463d7
BLAKE2b-256 checksum
How to use checksums
71267472f3a6bd5c3c1e3ec818495d54162ab2a2efc44e863c58a03cc503696b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.8

Release files / vedro_import_profiler-0.0.2-py3-none-any.whl

Download URL vedro_import_profiler-0.0.2-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
77a32558e54df7d73617ca5afcbb2260595ed63210208a85b6d8f09490927a44
BLAKE2b-256 checksum
How to use checksums
c386bc844c02a96a4d467abf282cf50dad313f4885e6a4088da38180fda55af0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.8

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

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