{"id":22051768,"url":"https://github.com/3jackdaws/py-switchcase","last_synced_at":"2025-03-23T15:27:27.071Z","repository":{"id":114061907,"uuid":"152925354","full_name":"3jackdaws/py-switchcase","owner":"3jackdaws","description":"Switchcases in Python! 100% in language, minimal hacks.","archived":false,"fork":false,"pushed_at":"2018-10-14T01:09:18.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-28T21:35:03.691Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/3jackdaws.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":"2018-10-14T00:19:45.000Z","updated_at":"2023-12-31T05:40:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"c866e791-0166-4377-8c9e-1a73bb8091f3","html_url":"https://github.com/3jackdaws/py-switchcase","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3jackdaws%2Fpy-switchcase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3jackdaws%2Fpy-switchcase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3jackdaws%2Fpy-switchcase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3jackdaws%2Fpy-switchcase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/3jackdaws","download_url":"https://codeload.github.com/3jackdaws/py-switchcase/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245121835,"owners_count":20564192,"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":[],"created_at":"2024-11-30T15:10:59.985Z","updated_at":"2025-03-23T15:27:27.060Z","avatar_url":"https://github.com/3jackdaws.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Switchcase\nSwitch cases in python that aren't too weird.\n\n# Usage\n```py\nfrom switchcase import switch\n\nwith switch(value) as case:\n\n    with case(\"foo\"):\n        assert False\n\n    with case(\"bar\"):\n        assert False\n\n    # default case must be last\n    with case.default:\n        print(\":^)\")\n```\n\n# Installation\npy-switchcase is available on pypi.\n\n`pip install py-switchcase`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3jackdaws%2Fpy-switchcase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F3jackdaws%2Fpy-switchcase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3jackdaws%2Fpy-switchcase/lists"}