{"id":16208720,"url":"https://github.com/snirsh/requests_error_decorator","last_synced_at":"2025-07-01T10:03:14.967Z","repository":{"id":129018487,"uuid":"449852345","full_name":"snirsh/requests_error_decorator","owner":"snirsh","description":"A simple decorator for python requests","archived":false,"fork":false,"pushed_at":"2022-01-19T21:20:16.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T20:43:45.801Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/snirsh.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-19T20:55:11.000Z","updated_at":"2022-01-19T21:03:39.000Z","dependencies_parsed_at":"2023-07-08T06:52:55.481Z","dependency_job_id":null,"html_url":"https://github.com/snirsh/requests_error_decorator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/snirsh/requests_error_decorator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snirsh%2Frequests_error_decorator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snirsh%2Frequests_error_decorator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snirsh%2Frequests_error_decorator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snirsh%2Frequests_error_decorator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/snirsh","download_url":"https://codeload.github.com/snirsh/requests_error_decorator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snirsh%2Frequests_error_decorator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262941541,"owners_count":23388148,"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-10-10T10:25:22.278Z","updated_at":"2025-07-01T10:03:14.936Z","avatar_url":"https://github.com/snirsh.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# requests_error_decorator\nA simple decorator for python requests\n\n## Example:\n```python\nimport requests\nfrom requests_error_handling_package.requests_error_decorators import requests_error_handler\nfrom requests_error_handling_package.example import example\n\n@requests_error_handler\ndef foo():\n    \"\"\"\n    A function that shows a basic example.\n    \"\"\"\n    resp = requests.get(\"https://google.com/foo\")\n    resp.raise_for_status() # THIS IS A MUST-DO STEP!\n    return resp\n\nexample() # an example function that you can run yourself and see what the output looks like\n```\n\n\n## Plans:\nI'm planning to add more useful decorators to this repo :)\n\u003cbr\u003e\nIf you have any ideas, feel free to contact me!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnirsh%2Frequests_error_decorator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnirsh%2Frequests_error_decorator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnirsh%2Frequests_error_decorator/lists"}