{"id":15593637,"url":"https://github.com/seven7ty/httpdogs","last_synced_at":"2025-10-13T13:08:09.424Z","repository":{"id":55444758,"uuid":"323958910","full_name":"seven7ty/httpdogs","owner":"seven7ty","description":"Bringing you closer to your favorite HTTP Dogs.","archived":false,"fork":false,"pushed_at":"2020-12-30T13:38:35.000Z","size":16,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-13T13:07:34.726Z","etag":null,"topics":["dog","dogs","http","httpdogs","package","pypi","pypi-package","python","python3","python38"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/httpdogs/","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/seven7ty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-23T17:07:34.000Z","updated_at":"2024-02-21T02:49:37.000Z","dependencies_parsed_at":"2022-08-15T00:30:23.115Z","dependency_job_id":null,"html_url":"https://github.com/seven7ty/httpdogs","commit_stats":null,"previous_names":["paulnewcomer/httpdogs","itsmewulf/httpdogs","bwv2/httpdogs","seven7ty/httpdogs"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/seven7ty/httpdogs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seven7ty%2Fhttpdogs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seven7ty%2Fhttpdogs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seven7ty%2Fhttpdogs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seven7ty%2Fhttpdogs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seven7ty","download_url":"https://codeload.github.com/seven7ty/httpdogs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seven7ty%2Fhttpdogs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279015279,"owners_count":26085683,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["dog","dogs","http","httpdogs","package","pypi","pypi-package","python","python3","python38"],"created_at":"2024-10-03T00:20:43.441Z","updated_at":"2025-10-13T13:08:09.400Z","avatar_url":"https://github.com/seven7ty.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# httpdogs [![Badge](https://img.shields.io/pypi/v/httpdogs?color=3776AB\u0026logo=python\u0026style=for-the-badge)](https://pypi.org/project/httpdogs/) [![Badge 2](https://img.shields.io/pypi/dm/httpdogs?color=3776AB\u0026logo=python\u0026style=for-the-badge)](https://pypi.org/project/httpdogs/)\nGetting URLs to your favourite HTTP dogs made easy!\n\n\n### Installation\n\nInstalling `httpdogs` is easy, just run `pip install httpdogs`!\n\n### Usage\n\nI've developed `httpdogs` to make using HTTP dogs simple and fun.\n\nCurrently, you can get your dogs using one of two functions - `dog_by_name` and `dog_by_code`\n\n`dog_by_name(name: str)` takes in a sole parameter - `name`, which is the status code name to get a dog for.\nUpon finding a dog matching the name, it returns an `HTTPDog` object. Here's an example -\n\n```py\nfrom httpdogs import dog_by_name\n\nmy_dog = dog_by_name(\"Success\")\n\nprint(f\"My dog has a code of {my_dog.code} and means {my_dog.name}! The URL is {my_dog.url}\")\n# Prints - \n# My dog has a code of 200 and means Success! The URL is https://http.dog/200\n```\n\n`dog_by_code(code: int)` is extremely similar to `dog_by_name`, just using a status code value.\nUpon finding a dog matching the code, it returns an `HTTPDog` object. Here's an example -\n\n```py\nfrom httpdogs import dog_by_code\n\nmy_dog = dog_by_code(404)\n\nprint(f\"My dog has a code of {my_dog.code} and means {my_dog.name} :( The URL is {my_dog.url}\")\n# Prints - \n# My dog has a code of 404 and means Not Found :( The URL is https://http.dog/404\n```\n\n##### The HTTPDog object also has an `image` attribute\n\nYou can use this attribute to get the image bytes associated with the dog.\nYou can then save it or view it, like in the example below -\n\n```py\nfrom httpdogs import dog_by_code\nfrom PIL import Image\nfrom io import BytesIO\n\nmy_dog = dog_by_code(302)\n\ndog_image = Image.open(BytesIO(my_dog.image))\ndog_image.show()\n\n# Output below -\n```\n\n\u003cimg src=\"https://httpstatusdogs.com/img/302.jpg\" alt=\"dog\" width=\"300\"/\u003e\n\n### Contributing \n\nThis package is opensource so anyone with adequate python experience can contribute to this project!\n\n### Report Issues\nIf you find any errors/bugs/mistakes with the package or in the code feel free to create an issue and report them [here.](https://github.com/itsmewulf/httpdogs/issues)\n\n### Fix/Edit Content\nIf you want to contribute to this package, fork the repository, make your changes and then simply create a Pull Request!\n\n### Contact\nIf you want to contact me -  \n**Mail -** ```wulf.developer@gmail.com```\u003cbr\u003e\n**Discord -** ```wulf#9716```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseven7ty%2Fhttpdogs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseven7ty%2Fhttpdogs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseven7ty%2Fhttpdogs/lists"}