{"id":28234362,"url":"https://github.com/vedro-universe/vedro-import-profiler","last_synced_at":"2025-06-12T21:31:28.461Z","repository":{"id":224225067,"uuid":"762766163","full_name":"vedro-universe/vedro-import-profiler","owner":"vedro-universe","description":"Import profiler for Vedro framework","archived":false,"fork":false,"pushed_at":"2024-03-11T15:17:39.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-17T11:37:22.018Z","etag":null,"topics":["vedro","vedro-plugin"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vedro-universe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-24T16:25:14.000Z","updated_at":"2024-02-24T16:52:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"0b94fb6e-b5d1-443a-b799-a4c999de1f3f","html_url":"https://github.com/vedro-universe/vedro-import-profiler","commit_stats":null,"previous_names":["vedro-universe/vedro-import-profiler"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/vedro-universe/vedro-import-profiler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vedro-universe%2Fvedro-import-profiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vedro-universe%2Fvedro-import-profiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vedro-universe%2Fvedro-import-profiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vedro-universe%2Fvedro-import-profiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vedro-universe","download_url":"https://codeload.github.com/vedro-universe/vedro-import-profiler/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vedro-universe%2Fvedro-import-profiler/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259533665,"owners_count":22872430,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["vedro","vedro-plugin"],"created_at":"2025-05-18T22:13:36.681Z","updated_at":"2025-06-12T21:31:28.454Z","avatar_url":"https://github.com/vedro-universe.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vedro Import Profiler\n\nVedro Import Profiler allows you to profile your imports in [Vedro](https://vedro.io) projects, helping you identify and optimize import statements for better performance.\n\n## Installation\n\nTo get started, you first need to install the [vedro-import-profiler](https://pypi.org/project/vedro-import-profiler/) plugin. Open your terminal and run the following command:\n\n```shell\n$ pip install vedro-import-profiler\n```\n\n## Enabling the Plugin Temporarily\n\nOnce 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:\n\n```shell\n$ vedro plugins enable vedro-import-profiler\n$ vedro plugins disable vedro.plugins.assert_rewriter\n```\n\n## Running the Profiler\n\nTo 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:\n\n```shell\n$ PYTHONPROFILEIMPORTTIME=yes vedro run --vedro-import-profiler 2\u003e import.log\n```\n\n## Visualizing Import Times\n\nAfter running the profiler, you can visualize the import times using the [tuna](https://github.com/nschloe/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:\n\n```shell\n$ tuna import.log\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvedro-universe%2Fvedro-import-profiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvedro-universe%2Fvedro-import-profiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvedro-universe%2Fvedro-import-profiler/lists"}