{"id":19429785,"url":"https://github.com/soraxas/asynccsv","last_synced_at":"2026-06-20T14:03:29.381Z","repository":{"id":57412077,"uuid":"210715611","full_name":"soraxas/asynccsv","owner":"soraxas","description":"Async CSV performance logging","archived":false,"fork":false,"pushed_at":"2020-07-20T13:00:18.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-31T06:34:48.752Z","etag":null,"topics":["csv","logging","performance-metrics","performance-monitoring"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/soraxas.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}},"created_at":"2019-09-24T23:32:57.000Z","updated_at":"2020-11-30T15:25:33.000Z","dependencies_parsed_at":"2022-09-07T23:50:08.704Z","dependency_job_id":null,"html_url":"https://github.com/soraxas/asynccsv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/soraxas/asynccsv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soraxas%2Fasynccsv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soraxas%2Fasynccsv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soraxas%2Fasynccsv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soraxas%2Fasynccsv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soraxas","download_url":"https://codeload.github.com/soraxas/asynccsv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soraxas%2Fasynccsv/sbom","scorecard":{"id":838430,"data":{"date":"2025-08-11","repo":{"name":"github.com/soraxas/asynccsv","commit":"3e9752f17519375d6741c7db4046225de93a7150"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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":"Code-Review","score":0,"reason":"Found 0/5 approved changesets -- score normalized to 0","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":"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":"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: 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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 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-23T19:48:38.960Z","repository_id":57412077,"created_at":"2025-08-23T19:48:38.960Z","updated_at":"2025-08-23T19:48:38.960Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34572426,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"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":["csv","logging","performance-metrics","performance-monitoring"],"created_at":"2024-11-10T14:21:22.605Z","updated_at":"2026-06-20T14:03:29.348Z","avatar_url":"https://github.com/soraxas.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Async CSV Logger\n[![PyPI](https://img.shields.io/pypi/v/asynccsv.svg)](https://pypi.python.org/pypi/asynccsv)\n\nThis module is a async csv logger that helps you log performance of your algorithm.\n\n\n## Description\n\nThis module is intented to be a csv logger which will write to file async-ly.\n\nWith the hope to have minimum performance impact on benchmarking your algorithm (i.e. I/O blocking to write to disk), this is especially useful for logging performance at each iteration/time-step. Internally, it utilise threading to async write to file.\n\nThere are two way to initialise and use the logger.\n\n\n## Install\n\n```\npip install asynccsv\n```\n\n\n### 1. Recommended way (with block)\n\n```python\nimport time\nimport datetime\nfrom asynccsv import AsyncCSVLogger\n\nwith AsyncCSVLogger('path_of_your_log.csv') as logger:\n    # csv titles\n    logger.write(['Time', 'Accuracy', 'Num of nodes'])\n\n    # do your other stuff\n    # ......\n\n    for i in range(10):\n        # perform calculation\n        # ....\n        # write results to file\n        logger.write([datetime.datetime.now().strftime(\"%S.%f\"), acc, num_nodes])\n        time.sleep(0.5)\n```\n\n\n### 2. The normal way\n\n```python\nimport time\nfrom asynccsv import AsyncCSVLogger\n\nclass MyAwesomeAlgorithm():\n\n    def __init__(self):\n        # with the 'log_timestamp' flag it will automatically log timestamp\n        self.logger = AsyncCSVLogger('path_of_your_log.csv', log_timestamp=True)\n        self.logger.write(['Time', 'Accuracy', 'Num of nodes'])\n\n    def run(self):\n        # perform calculation\n        # ...\n        logger.write([acc, num_nodes])\n        time.sleep(0.5)\n\n\nif __name__ == '__main__':\n    awesome = MyAwesomeAlgorithm()\n    for i in range(10):\n        awesome.run()\n\n    # You SHOULD run this to properly close the threading and force\n    # everything to be written to disk\n    # This is automatically done by the 'with' block in previous example\n    awesome.logger.close()\n```\n\n---\n\nWith both methods, the final content of `path_of_your_log.csv` will look something like:\n\n```csv\n\"Time\",\"Accuracy\",\"Num of nodes\"\n\"57.689359\",\"92.5\",\"11\"\n\"58.189979\",\"93.5\",\"12\"\n\"58.690520\",\"94.22\",\"13\"\n\"59.191268\",\"93.5\",\"15\"\n\"59.692062\",\"92.2\",\"17\"\n\"00.192850\",\"92.4\",\"22\"\n\"00.693661\",\"94.8\",\"26\"\n\"01.194634\",\"96.6\",\"27\"\n\"01.695368\",\"94.1\",\"30\"\n\"02.196014\",\"97.5\",\"42\"\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoraxas%2Fasynccsv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoraxas%2Fasynccsv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoraxas%2Fasynccsv/lists"}