{"id":26229640,"url":"https://github.com/pyflow/basepy","last_synced_at":"2026-03-10T10:02:44.636Z","repository":{"id":57414041,"uuid":"230586161","full_name":"pyflow/basepy","owner":"pyflow","description":"Base library of python 3.6+(asyncio) , include log, config, event, metric etc. ","archived":false,"fork":false,"pushed_at":"2024-01-07T11:23:34.000Z","size":79,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-03T00:33:12.467Z","etag":null,"topics":["asyncio","config","logger","python","settings"],"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/pyflow.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","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,"zenodo":null}},"created_at":"2019-12-28T09:09:35.000Z","updated_at":"2022-09-02T02:37:54.000Z","dependencies_parsed_at":"2023-01-22T10:01:02.685Z","dependency_job_id":"a1f8d19b-4ad1-4c2c-b270-d571bfd908eb","html_url":"https://github.com/pyflow/basepy","commit_stats":{"total_commits":54,"total_committers":4,"mean_commits":13.5,"dds":"0.11111111111111116","last_synced_commit":"93a9526fc7b2a7dc33a0972b8efa6478b7b76cc6"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/pyflow/basepy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyflow%2Fbasepy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyflow%2Fbasepy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyflow%2Fbasepy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyflow%2Fbasepy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyflow","download_url":"https://codeload.github.com/pyflow/basepy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyflow%2Fbasepy/sbom","scorecard":{"id":751394,"data":{"date":"2025-08-11","repo":{"name":"github.com/pyflow/basepy","commit":"5d5e7870ad1176c68e2d619af3275ad10e33229d"},"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":"Code-Review","score":0,"reason":"Found 1/27 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":"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":"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":"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":"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":"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: 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 4 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-22T20:29:30.031Z","repository_id":57414041,"created_at":"2025-08-22T20:29:30.031Z","updated_at":"2025-08-22T20:29:30.031Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30329697,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["asyncio","config","logger","python","settings"],"created_at":"2025-03-12T22:17:13.141Z","updated_at":"2026-03-10T10:02:44.568Z","avatar_url":"https://github.com/pyflow.png","language":"Python","readme":"# basepy\nBasic library for python 3.6+, includes:\n\n* config loader\n* structure logger\n* program metrics (statsd)\n* exception logger (via sentry)\n* datastructures for asyncio\n\n## log\n\nVery simple and powerful log system, support structure log. It's not depends on python builtin `logging` module.\n\n```python\nimport asyncio\nfrom basepy.asynclog import logger\n\nlogger.add(\"stdout\")\n\nasync def main():\n    await logger.info(\"hello\")\n    await logger.info(\"stuct\", a=1, b=2, hello='world')\n\n\nasyncio.run(main())\n\n```\n\nAnd the code will generated.\n\n```\n[2020-02-01 11:42:07 +0800] [local.72267] [INFO] [hello]\n[2020-02-01 11:42:07 +0800] [local.72267] [INFO] [stuct] [a = 1] [b = 2] [hello = \"world\"]\n```\n\n## config\n\nConfig module is easy and powerful settings configuration with following features.\n\n1. keep secrets related in sperate file `.secrets.toml`\n2. keep local config in sperate file `settings.local.toml` or `.secrets.local.toml`, the local settings will override the settings for the same key.\n\nSo, config files should looks like\n\n```\napplication\n├── .secrets.local.toml\n├── .secrets.toml\n├── settings.local.toml\n└── settings.toml\n```\n\nThe `.secrets.toml` should contains several keys, like\n\n```toml\nsigning_secret = \"local_a\"\naccess_token = \"local_b\"\n```\n\nTo access secrets in program, just use `settings.secrets`\n\n```python\nfrom basepy.config import settings\n\nprint(settings.secrets.signing_secret) # will print \"local_a\"\n\n```\n\nThe `settings.toml` can contains very complex setting, for example\n\n```toml\n[log]\n    handlers = [\"stdout\", \"local_fluent\"]\n\n    [log.stdout]\n    handler_type = \"stdout\"\n    level = \"debug\"\n\n    [log.local_fluent]\n    handler_type = \"fluent\"\n    host = \"127.0.0.1\"\n    port = 24224\n    tag = \"basepy\"\n    level = \"info\"\n```\n\nTo access normal setting, just use `settings.key`\n\n```\nfrom basepy.config import setting\nprint(setting.log.handlers)\n```\n\n## more\nPlease refer the docs directory.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyflow%2Fbasepy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyflow%2Fbasepy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyflow%2Fbasepy/lists"}