{"id":18604095,"url":"https://github.com/gravmatt/random-cat","last_synced_at":"2025-08-14T12:44:25.905Z","repository":{"id":57459878,"uuid":"50134679","full_name":"gravmatt/random-cat","owner":"gravmatt","description":"Modul to get random cat images","archived":false,"fork":false,"pushed_at":"2016-03-03T20:06:50.000Z","size":6,"stargazers_count":27,"open_issues_count":1,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-12T07:22:57.646Z","etag":null,"topics":["api","cat","cat-images","python"],"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/gravmatt.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}},"created_at":"2016-01-21T20:29:51.000Z","updated_at":"2024-07-11T11:40:37.000Z","dependencies_parsed_at":"2022-09-09T23:01:09.126Z","dependency_job_id":null,"html_url":"https://github.com/gravmatt/random-cat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gravmatt/random-cat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gravmatt%2Frandom-cat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gravmatt%2Frandom-cat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gravmatt%2Frandom-cat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gravmatt%2Frandom-cat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gravmatt","download_url":"https://codeload.github.com/gravmatt/random-cat/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gravmatt%2Frandom-cat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270422586,"owners_count":24580829,"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-08-14T02:00:10.309Z","response_time":75,"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":["api","cat","cat-images","python"],"created_at":"2024-11-07T02:16:36.901Z","updated_at":"2025-08-14T12:44:25.841Z","avatar_url":"https://github.com/gravmatt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# random-cat\n\nrandom-cat is a amazing modul to get cat images. This Project won't be\nposible without the great Cat API (http://thecatapi.com).\n\n## Big Thanks to the great Cat API\n\nGo and visit [http://thecatapi.com](http://thecatapi.com)\n\n![alt text](http://thecatapi.com/api/images/get?type=gif \"See? amazing!\")\n\n**Python 2 and 3 compatible**\n\n## Installation\n\nInstall through **pip**.\n\n```\n$ pip install random-cat\n```\n\nor get from source\n\n```\n$ git clone https://github.com/gravmatt/random-cat\n$ cd random-cat\n$ python setup.py install\n```\n\n## Usage\n\nThe cat module has just one function **getCat()** with three optional arguments.\n\n### Arguments\n\n**directory** - default is the current directory\n\n**filename** - default is a unique id\n\n**format** - default is _png_. optional _png_, _jpg_ and _gif_ is available\n\n```\nimport cat\n\n# cat.getCat(directory=None, filename=None, format='png')\n\ncat.getCat(directory='/users/tor', filename='cat', format='gif')\n\n# /users/tor/cat.gif\n```\n\nThe function return the image name (absolute path if directory is specified) of the image.\n\n### Command Line\n\nYou can also request an image on the terminal.\n\n```\n$ randomcat [format] [file]\n\n# Example:\n\n$ randomcat gif /users/tor/cat.gif\n```\n\nThe two arguments _format_ and _file_ are optional.\n\nYou can select the formats _png_, _jpg_ or _gif_.\n\nThe command return the filename/absolute path of the image to the standard output (stdout).\n\n### Licence\n\nThe MIT License (MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgravmatt%2Frandom-cat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgravmatt%2Frandom-cat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgravmatt%2Frandom-cat/lists"}