{"id":32177819,"url":"https://github.com/scottgigante/tasklogger","last_synced_at":"2025-10-21T20:30:11.863Z","repository":{"id":33113654,"uuid":"141497700","full_name":"scottgigante/tasklogger","owner":"scottgigante","description":"An extension to the core python logging library for logging the beginning and completion of tasks and subtasks.","archived":false,"fork":false,"pushed_at":"2023-03-07T23:47:23.000Z","size":103,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-29T19:30:18.193Z","etag":null,"topics":["computation","logging","python","timing"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scottgigante.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"CONTRIBUTING.md","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":"2018-07-18T22:48:25.000Z","updated_at":"2022-12-29T09:15:00.000Z","dependencies_parsed_at":"2024-06-21T14:14:48.982Z","dependency_job_id":"6bf40aa8-70aa-4173-b667-00b959568a78","html_url":"https://github.com/scottgigante/tasklogger","commit_stats":{"total_commits":117,"total_committers":6,"mean_commits":19.5,"dds":"0.24786324786324787","last_synced_commit":"61755af7a8ea9b862d8e2ebfd5e166b429e3df5b"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/scottgigante/tasklogger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottgigante%2Ftasklogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottgigante%2Ftasklogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottgigante%2Ftasklogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottgigante%2Ftasklogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scottgigante","download_url":"https://codeload.github.com/scottgigante/tasklogger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scottgigante%2Ftasklogger/sbom","scorecard":{"id":805656,"data":{"date":"2025-08-11","repo":{"name":"github.com/scottgigante/tasklogger","commit":"61755af7a8ea9b862d8e2ebfd5e166b429e3df5b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"name":"Code-Review","score":5,"reason":"Found 4/7 approved changesets -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/scottgigante/tasklogger/deploy.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/deploy.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/scottgigante/tasklogger/deploy.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/deploy.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/scottgigante/tasklogger/deploy.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/deploy.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/scottgigante/tasklogger/deploy.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pre-commit.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/scottgigante/tasklogger/pre-commit.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pre-commit.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/scottgigante/tasklogger/pre-commit.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pre-commit.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/scottgigante/tasklogger/pre-commit.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pre-commit.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/scottgigante/tasklogger/pre-commit.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pre-commit.yml:50: update your workflow using https://app.stepsecurity.io/secureworkflow/scottgigante/tasklogger/pre-commit.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/run_tests.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/scottgigante/tasklogger/run_tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/run_tests.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/scottgigante/tasklogger/run_tests.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/run_tests.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/scottgigante/tasklogger/run_tests.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/deploy.yml:30","Warn: pipCommand not pinned by hash: .github/workflows/run_tests.yml:48","Warn: pipCommand not pinned by hash: .github/workflows/run_tests.yml:49","Warn: pipCommand not pinned by hash: .github/workflows/run_tests.yml:50","Info:   0 out of   7 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   5 third-party GitHubAction dependencies pinned","Info:   0 out of   4 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/deploy.yml:1","Warn: no topLevel permission defined: .github/workflows/pre-commit.yml:1","Warn: no topLevel permission defined: .github/workflows/run_tests.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2022-42991 / GHSA-v3c5-jqr6-7qm8"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 28 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T11:41:49.099Z","repository_id":33113654,"created_at":"2025-08-23T11:41:49.099Z","updated_at":"2025-08-23T11:41:49.099Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280327740,"owners_count":26311949,"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-10-21T02:00:06.614Z","response_time":58,"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":["computation","logging","python","timing"],"created_at":"2025-10-21T20:30:08.328Z","updated_at":"2025-10-21T20:30:11.853Z","avatar_url":"https://github.com/scottgigante.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"==========\ntasklogger\n==========\n\n.. image:: https://img.shields.io/pypi/v/tasklogger.svg\n    :target: https://pypi.org/project/tasklogger/\n    :alt: Latest PyPi version\n.. image:: https://anaconda.org/conda-forge/tasklogger/badges/version.svg\n    :target: https://anaconda.org/conda-forge/tasklogger/\n    :alt: Latest Conda version\n.. image:: https://api.travis-ci.com/scottgigante/tasklogger.svg?branch=master\n    :target: https://github.com/scottgigante/tasklogger/actions\n    :alt: GitHub Actions Build\n.. image:: https://ci.appveyor.com/api/projects/status/qi79tqay73uslr0i/branch/master?svg=true\n    :target: https://ci.appveyor.com/project/scottgigante/tasklogger\n    :alt: Appveyor Build\n.. image:: https://coveralls.io/repos/github/scottgigante/tasklogger/badge.svg?branch=master\n    :target: https://coveralls.io/github/scottgigante/tasklogger?branch=master\n    :alt: Coverage Status\n.. image:: https://img.shields.io/twitter/follow/scottgigante.svg?style=social\u0026label=Follow\n    :target: https://twitter.com/scottgigante\n    :alt: Twitter\n.. image:: https://img.shields.io/github/stars/scottgigante/tasklogger.svg?style=social\u0026label=Stars\n    :target: https://github.com/scottgigante/tasklogger/\n    :alt: GitHub stars\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n    :target: https://github.com/psf/black\n    :alt: Code style: black\n.. image:: https://img.shields.io/badge/style%20guide-openstack-eb1a32.svg\n    :target: https://docs.openstack.org/hacking/latest/user/hacking.html#styleguide\n    :alt: Style Guide: OpenStack\n.. image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit\u0026logoColor=white\n    :target: https://github.com/pre-commit/pre-commit\n    :alt: pre-commit\n\nAn extension to the core python logging library for logging the beginning and completion of tasks and subtasks.\n\nInstallation\n------------\n\ntasklogger is available on `pip`. Install by running the following in a terminal::\n\n    pip install --user tasklogger\n\nAlternatively, tasklogger can be installed using `Conda \u003chttps://conda.io/docs/\u003e`_ (most easily obtained via the `Miniconda Python distribution \u003chttps://conda.io/miniconda.html\u003e`_)::\n\n    conda install -c conda-forge tasklogger\n\nUsage examples\n--------------\n\nReceive timed updates mid-computation using ``tasklogger.log_start`` and ``tasklogger.log_complete``::\n\n    \u003e\u003e\u003e import tasklogger\n    \u003e\u003e\u003e import time\n    \u003e\u003e\u003e tasklogger.start_task(\"Supertask\")\n    Calculating Supertask...\n    \u003e\u003e\u003e time.sleep(1)\n    \u003e\u003e\u003e tasklogger.start_task(\"Subtask\")\n      Calculating Subtask...\n    \u003e\u003e\u003e time.sleep(1)\n    \u003e\u003e\u003e tasklogger.complete_task(\"Subtask\")\n      Calculated Subtask in 1.01 seconds.\n    \u003e\u003e\u003e time.sleep(1)\n    \u003e\u003e\u003e tasklogger.complete_task(\"Supertask\")\n    Calculated Supertask in 3.02 seconds.\n\nSimplify logging syntax with ``tasklogger.log_task``::\n\n    \u003e\u003e\u003e import tasklogger\n    \u003e\u003e\u003e import time\n    \u003e\u003e\u003e with tasklogger.log_task(\"Supertask\"):\n    ...     time.sleep(1)\n    ...     with tasklogger.log_task(\"Subtask\"):\n    ...        time.sleep(1)\n    ...     time.sleep(1)\n    Calculating Supertask...\n      Calculating Subtask...\n      Calculated Subtask in 1.01 seconds.\n    Calculated Supertask in 3.02 seconds.\n\nLog wall time, CPU time, or any other counter function with the class API::\n\n    \u003e\u003e\u003e import tasklogger\n    \u003e\u003e\u003e import time\n    \u003e\u003e\u003e logger = tasklogger.TaskLogger(name='cpu_logger', timer='cpu', min_runtime=0)\n    \u003e\u003e\u003e with logger.log_task(\"Supertask\"):\n    ...     time.sleep(1)\n    ...     with logger.log_task(\"Subtask\"):\n    ...        _ = [[(i,j) for j in range(i)] for i in range(1000)]\n    ...     time.sleep(1)\n    Calculating Supertask...\n      Calculating Subtask...\n      Calculated Subtask in 0.09 seconds.\n    Calculated Supertask in 0.09 seconds.\n    \u003e\u003e\u003e logger = tasklogger.TaskLogger(name='nano_logger', timer=time.monotonic_ns)\n    \u003e\u003e\u003e with logger.log_task(\"Supertask\"):\n    ...     time.sleep(1)\n    ...     with logger.log_task(\"Subtask\"):\n    ...        time.sleep(1)\n    ...     time.sleep(1)\n    Calculating Supertask...\n      Calculating Subtask...\n      Calculated Subtask in 1001083511.00 seconds.\n    Calculated Supertask in 3003702161.00 seconds.\n\nUse ``tasklogger`` for all your logging needs::\n\n    \u003e\u003e\u003e tasklogger.log_info(\"Log some stuff that doesn't need timing\")\n    Log some stuff that doesn't need timing\n    \u003e\u003e\u003e tasklogger.log_debug(\"Log some stuff that normally isn't needed\")\n    \u003e\u003e\u003e tasklogger.set_level(2)\n    Set TaskLogger logging to DEBUG\n    \u003e\u003e\u003e tasklogger.log_debug(\"Log some stuff that normally isn't needed\")\n    Log some stuff that normally isn't needed\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottgigante%2Ftasklogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscottgigante%2Ftasklogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscottgigante%2Ftasklogger/lists"}