{"id":16900640,"url":"https://github.com/acdha/python-performance-tools","last_synced_at":"2025-06-10T08:35:12.009Z","repository":{"id":9731159,"uuid":"11690147","full_name":"acdha/python-performance-tools","owner":"acdha","description":"Tools for tracking and displaying the performance of Python programs during normal operation","archived":false,"fork":false,"pushed_at":"2013-10-28T20:19:19.000Z","size":128,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-25T22:44:15.153Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/acdha.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.txt","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-26T16:43:24.000Z","updated_at":"2014-08-05T14:16:23.000Z","dependencies_parsed_at":"2022-09-11T01:41:33.771Z","dependency_job_id":null,"html_url":"https://github.com/acdha/python-performance-tools","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acdha%2Fpython-performance-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acdha%2Fpython-performance-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acdha%2Fpython-performance-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acdha%2Fpython-performance-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/acdha","download_url":"https://codeload.github.com/acdha/python-performance-tools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acdha%2Fpython-performance-tools/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259039012,"owners_count":22796746,"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":[],"created_at":"2024-10-13T17:55:25.634Z","updated_at":"2025-06-10T08:35:11.986Z","avatar_url":"https://github.com/acdha.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"========================\nPython Performance Tools\n========================\n\nSimple utilities to make it easier to track performance of Python programs under normal operations\n\nContext Managers\n----------------\n\nDisplayElapsed\n~~~~~~~~~~~~~~\n\nThis context manager makes it easy to display console-oriented start/end messages with end-user tolerable\nformatting.\n\nUsage::\n\n    with DisplayElapsed(\"{now} uploading {filename} (original: {original})\\n\",\n                        \"{now} uploaded {filename} in {elapsed:.1f} seconds\",\n                        filename=remote_path, original=local_path):\n        upload_filename(…)\n\nNotes:\n\n* DisplayElapsed takes one positional argument: ``message``. The message is formatted using\n  `str.format \u003chttp://docs.python.org/2/library/string.html#format-string-syntax\u003e`_ with the values ``{now}``\n  and ``{elapsed}`` provided automatically. All other keyword arguments provided to ``DisplayElapsed`` will be\n  available during formatting.\n* If ``message`` contains ``{{now}}`` it will be replaced with the current timestamp\n* If ``message`` does not contain ``{{now}}`` it will be prepended unless ``include_timestamp=False``\n* If ``postamble`` is not specified, it will default to ``\" ({elapsed:.1f} seconds)\"``\n* If ``output`` is not specified, it will default to ``sys.stdout``\n* If ``output_on_error`` is not True, the normal postamble display will be suppressed when an exception occurs\n* By default, a newline will not be emitted after the opening message so the message and postamble will be\n  displayed on a single line. ``output`` will be flushed, if supported, to provide immediate feedback.\n  Provide a message which ends in ``\\n`` if you want multi-line output.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facdha%2Fpython-performance-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facdha%2Fpython-performance-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facdha%2Fpython-performance-tools/lists"}