{"id":26996433,"url":"https://github.com/madi-s/protocols-vs-abc","last_synced_at":"2025-04-04T01:18:45.855Z","repository":{"id":255188439,"uuid":"848773230","full_name":"Madi-S/protocols-vs-abc","owner":"Madi-S","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-28T12:43:26.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T01:18:42.813Z","etag":null,"topics":["abc","protocols","python","python-typing"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Madi-S.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-08-28T11:36:51.000Z","updated_at":"2025-03-21T10:25:40.000Z","dependencies_parsed_at":"2024-08-28T14:20:17.853Z","dependency_job_id":null,"html_url":"https://github.com/Madi-S/protocols-vs-abc","commit_stats":null,"previous_names":["madi-s/protocls-vs-abc","madi-s/protocols-vs-abc"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Madi-S%2Fprotocols-vs-abc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Madi-S%2Fprotocols-vs-abc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Madi-S%2Fprotocols-vs-abc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Madi-S%2Fprotocols-vs-abc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Madi-S","download_url":"https://codeload.github.com/Madi-S/protocols-vs-abc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247103235,"owners_count":20884024,"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":["abc","protocols","python","python-typing"],"created_at":"2025-04-04T01:18:44.992Z","updated_at":"2025-04-04T01:18:45.850Z","avatar_url":"https://github.com/Madi-S.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# protocls-vs-abc\r\n\r\nA common question among the Python developers is whether to use protocols or abc module and when to put each of these two in a proper way.\r\n\r\nHave a look at `abc_usecase.py` and `protocls_usecase.py` to grasp the difference and when it is suitable situtation for abc or protocols use.\r\n\r\nKeep in mind, they serve the same purpose but are different in a way, so it is essential to understand when to use which tool.\r\n\r\nProtocols are almost the same as abc, but allows you to use ducktyping instead of explicit typing.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadi-s%2Fprotocols-vs-abc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadi-s%2Fprotocols-vs-abc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadi-s%2Fprotocols-vs-abc/lists"}