{"id":17779545,"url":"https://github.com/ymyzk/wsgi_lineprof","last_synced_at":"2025-04-05T05:05:19.985Z","repository":{"id":49315961,"uuid":"69786191","full_name":"ymyzk/wsgi_lineprof","owner":"ymyzk","description":"WSGI middleware for line-by-line profiling","archived":false,"fork":false,"pushed_at":"2025-03-17T17:30:13.000Z","size":452,"stargazers_count":49,"open_issues_count":9,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-29T04:06:28.941Z","etag":null,"topics":["cython","hacktoberfest","line-profiler","profiler","python","wsgi","wsgi-middleware"],"latest_commit_sha":null,"homepage":"https://wsgi-lineprof.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ymyzk.png","metadata":{"files":{"readme":"README.rst","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,"publiccode":null,"codemeta":null}},"created_at":"2016-10-02T08:11:48.000Z","updated_at":"2024-07-22T21:41:07.000Z","dependencies_parsed_at":"2023-09-27T13:30:54.626Z","dependency_job_id":"c5ec33e0-979b-4362-bb09-9c82115d4b32","html_url":"https://github.com/ymyzk/wsgi_lineprof","commit_stats":{"total_commits":300,"total_committers":4,"mean_commits":75.0,"dds":0.06999999999999995,"last_synced_commit":"e310e236a4a8d1dbac68cdf4518c83628a7ac4de"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ymyzk%2Fwsgi_lineprof","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ymyzk%2Fwsgi_lineprof/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ymyzk%2Fwsgi_lineprof/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ymyzk%2Fwsgi_lineprof/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ymyzk","download_url":"https://codeload.github.com/ymyzk/wsgi_lineprof/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247289426,"owners_count":20914464,"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":["cython","hacktoberfest","line-profiler","profiler","python","wsgi","wsgi-middleware"],"created_at":"2024-10-27T01:04:31.782Z","updated_at":"2025-04-05T05:05:19.960Z","avatar_url":"https://github.com/ymyzk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"wsgi_lineprof\n=============\n.. image:: https://badge.fury.io/py/wsgi-lineprof.svg\n   :target: https://pypi.python.org/pypi/wsgi-lineprof/\n   :alt: PyPI version\n.. image:: https://img.shields.io/pypi/pyversions/wsgi_lineprof.svg\n   :target: https://pypi.python.org/pypi/wsgi-lineprof/\n   :alt: PyPI Supported Python Versions\n.. image:: https://github.com/ymyzk/wsgi_lineprof/workflows/Tests/badge.svg\n   :target: https://github.com/ymyzk/wsgi_lineprof/actions?workflow=Tests\n   :alt: GitHub Actions (Tests)\n.. image:: https://readthedocs.org/projects/wsgi_lineprof/badge/?version=latest\n   :target: https://wsgi-lineprof.readthedocs.io/\n   :alt: Documentation Status\n\n**wsgi_lineprof** is a WSGI middleware for line-by-line profiling.\n\nwsgi_lineprof has the following features:\n\n* *WSGI middleware*: It can be integrated with any WSGI-compatible applications and frameworks including Django, Pyramid, Flask, Bottle, and more.\n* *Easily pluggable*: All configurations for profiling in one place. Users don't need to make any changes to their application.\n\nwsgi_lineprof is *not recommended to be used in production environment* because of the overhead of profiling.\n\nAt a Glance\n-----------\nYou can use wsgi_lineprof as a WSGI middleware of existing applications.\n\n::\n\n   $ pip install wsgi_lineprof\n\nApply wsgi_lineprof to the existing WSGI web application:\n\n.. code-block:: python\n\n   from wsgi_lineprof.middleware import LineProfilerMiddleware\n   app = LineProfilerMiddleware(app)\n\nStart the web application and access the application.\nwsgi_lineprof writes results to stdout every time an HTTP request is processed by default.\nYou can see the output like this in your console:\n\n::\n\n   ... (snip) ...\n\n   File: ./app.py\n   Name: index\n   Total time: 1.00518 [sec]\n     Line      Hits         Time  Code\n   ===================================\n        9                         @app.route('/')\n       10                         def index():\n       11         1      1005175      time.sleep(1)\n       12         1            4      return \"Hello world!!\"\n\n   ... (snip) ...\n\nAlso, you can check the result on your web browser by accessing the special endpoint ``/wsgi_lineprof/``.\n\nPlease check `the documentation \u003chttps://wsgi-lineprof.readthedocs.io/en/latest/index.html\u003e`_ for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fymyzk%2Fwsgi_lineprof","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fymyzk%2Fwsgi_lineprof","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fymyzk%2Fwsgi_lineprof/lists"}