{"id":41475796,"url":"https://github.com/tbhartman/doorbell","last_synced_at":"2026-01-23T17:06:27.847Z","repository":{"id":57423636,"uuid":"155885706","full_name":"tbhartman/doorbell","owner":"tbhartman","description":"You have a visitor.","archived":false,"fork":false,"pushed_at":"2018-11-17T03:02:41.000Z","size":55,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-27T19:26:58.256Z","etag":null,"topics":["python","visitor-pattern"],"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/tbhartman.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}},"created_at":"2018-11-02T15:29:50.000Z","updated_at":"2022-07-14T15:00:25.000Z","dependencies_parsed_at":"2022-08-30T03:11:50.166Z","dependency_job_id":null,"html_url":"https://github.com/tbhartman/doorbell","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/tbhartman/doorbell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbhartman%2Fdoorbell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbhartman%2Fdoorbell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbhartman%2Fdoorbell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbhartman%2Fdoorbell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tbhartman","download_url":"https://codeload.github.com/tbhartman/doorbell/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbhartman%2Fdoorbell/sbom","scorecard":{"id":870139,"data":{"date":"2025-08-11","repo":{"name":"github.com/tbhartman/doorbell","commit":"a185ad15dd87b38fa21f992eb696136daa043f40"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/11 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":"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: MIT License: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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 8 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-24T03:55:39.103Z","repository_id":57423636,"created_at":"2025-08-24T03:55:39.103Z","updated_at":"2025-08-24T03:55:39.103Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28696521,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T15:57:05.722Z","status":"ssl_error","status_checked_at":"2026-01-23T15:56:27.656Z","response_time":59,"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":["python","visitor-pattern"],"created_at":"2026-01-23T17:06:27.149Z","updated_at":"2026-01-23T17:06:27.838Z","avatar_url":"https://github.com/tbhartman.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"doorbell\n========\n\n[![Build Status](https://travis-ci.com/tbhartman/doorbell.svg?branch=master)](https://travis-ci.com/tbhartman/doorbell)\n[![Coverage Status](https://coveralls.io/repos/github/tbhartman/doorbell/badge.svg)](https://coveralls.io/github/tbhartman/doorbell)\n[![Docs Status](https://readthedocs.org/projects/doorbell/badge/?version=latest)](https://readthedocs.org/projects/doorbell)\n\n[![PyPI version](https://badge.fury.io/py/doorbell.svg)](https://pypi.org/project/doorbell)\n![Python Version](https://img.shields.io/pypi/pyversions/doorbell.svg)\n\n`doorbell` provides a visitor pattern implementation for Python.\n\nUsage\n=====\n\nDefine an object that receives a visitor.  For example, in an expression\nevaluator, create classes for a value and add and multiply operators:\n\n```python\n@doorbell.Visitee.create\nclass Value:\n    def __init__(self, value=0):\n        self.value = value\n        self.children = []\n\n\n@doorbell.Visitee.create\nclass Add(Value):\n    pass\n\n\n@doorbell.Visitee.create('Multiply')\nclass Mult(Add):\n    pass\n```\n\nThen create a visitor class to evaluate:\n\n```python\nclass Visitor(doorbell.CascadingVisitor):\n    def visit_Value(self, obj, children):\n        return obj.value\n\n    def visit_Add(self, obj, children):\n        return functools.reduce(operator.add, children, 0)\n\n    def visit_Multiply(self, obj, children):\n        return functools.reduce(operator.mul, children, 1)\n```\n\nCreate an object and visit it:\n\n```python\n// (1+1)*(1+1)\none = Value(1)\nadd = Add()\nadd.children.extend((one, one))\nmult = Mult()\nmult.children.extend((add, add))\n\nv = Visitor()\nr = mult.accept(v)\nassert r == 4\n```\n\nInstallation\n============\n\n`pip install doorbell`\n\nLicense\n=======\n\n`doorbell` is free software and licensed under the MIT License.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbhartman%2Fdoorbell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftbhartman%2Fdoorbell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbhartman%2Fdoorbell/lists"}