{"id":19189145,"url":"https://github.com/openprocurement/pyramid-timing","last_synced_at":"2025-08-13T14:08:52.807Z","repository":{"id":141943467,"uuid":"92726248","full_name":"openprocurement/pyramid-timing","owner":"openprocurement","description":null,"archived":false,"fork":false,"pushed_at":"2019-02-27T11:36:43.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-07-15T12:40:43.454Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/openprocurement.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2017-05-29T09:40:36.000Z","updated_at":"2019-02-27T11:36:45.000Z","dependencies_parsed_at":"2023-03-13T09:15:14.660Z","dependency_job_id":null,"html_url":"https://github.com/openprocurement/pyramid-timing","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/openprocurement/pyramid-timing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openprocurement%2Fpyramid-timing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openprocurement%2Fpyramid-timing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openprocurement%2Fpyramid-timing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openprocurement%2Fpyramid-timing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openprocurement","download_url":"https://codeload.github.com/openprocurement/pyramid-timing/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openprocurement%2Fpyramid-timing/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270254160,"owners_count":24552985,"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","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-09T11:28:08.967Z","updated_at":"2025-08-13T14:08:52.726Z","avatar_url":"https://github.com/openprocurement.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/openprocurement/pyramid-timing.svg?branch=master)](https://travis-ci.org/openprocurement/pyramid-timing)\n[![Coverage Status](https://coveralls.io/repos/github/openprocurement/pyramid-timing/badge.svg)](https://coveralls.io/github/openprocurement/pyramid-timing)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\n# pyramid-timing\n\nTiming tween for measure request process time as pyramid plugin.\nWrite to log `request processing time`, `request method` and `response status code` on `DEBUG` level.\n\n### Installation\n\n```shell\npip install pyramidtiming [flask, pyramid, test]\n```\n\nor\n\n```shell\ngit clone https://github.com/openprocurement/pyramid-timing.git\ncd pyramid-timing\npip install .[flask, pyramid, test]\n```\n\n### How to use\n\n```python\nfrom pyramid.config import Configurator\nfrom pyramidtiming.tween import includeme as include_tween\nconfig = Configurator()\ninclude_tween(config)\n```\nFor disable pyramid-timing you can remove plugin or set option `pyramid_timing = false`\n\n`config.settings.pyramid_timing = False`\n\n\n### Use as middleware\n\n```\n[pipeline:main]\npipeline = request_metrics\n\n[filter:request_metrics]\npaste.filter_factory = pyramidtiming.tween:factory\n```\n\n### Use as flask middleware via `app.before_request` and `app.after_request`\n\n```python\nfrom flask import Flask, request, g\nfrom pyramidtiming.flask_middleware import setup_middleware\n\napp = Flask(__name__)\nsetup_middleware(app)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenprocurement%2Fpyramid-timing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenprocurement%2Fpyramid-timing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenprocurement%2Fpyramid-timing/lists"}