All Projects → gravmatt → Random Cat

gravmatt / Random Cat

Licence: mit
Modul to get random cat images

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to Random Cat

Wykop Es6
Wykop.pl API library
Stars: ✭ 17 (-26.09%)
Mutual labels:  api
Movement
Movement is an easier, simpler way to explore and use NIEM. Want to join the Movement and contribute to it? Start here.
Stars: ✭ 19 (-17.39%)
Mutual labels:  api
Cortex4py
Python API Client for Cortex
Stars: ✭ 22 (-4.35%)
Mutual labels:  api
Go Book Store Api
Go Sample project to understand Mysql CRUD operation with best practises Includes logging, JWT, Swagger and Transactions
Stars: ✭ 18 (-21.74%)
Mutual labels:  api
Ripple Lib
A JavaScript API for interacting with the XRP Ledger in Node.js and the browser
Stars: ✭ 899 (+3808.7%)
Mutual labels:  api
Http.cat
🐱 HTTP Cats API
Stars: ✭ 898 (+3804.35%)
Mutual labels:  api
Cv4pve Api Java
Proxmox VE Client API JAVA
Stars: ✭ 17 (-26.09%)
Mutual labels:  api
Swaddle
Automagically create API clients/wrappers in JavaScript
Stars: ✭ 23 (+0%)
Mutual labels:  api
Minapp
重新定义微信小程序的开发
Stars: ✭ 902 (+3821.74%)
Mutual labels:  api
Catpapers
Cool vision, learning, and graphics papers on Cats!
Stars: ✭ 918 (+3891.3%)
Mutual labels:  cat
Httr
httr: a friendly http package for R
Stars: ✭ 897 (+3800%)
Mutual labels:  api
Api schema
DSL for describing APIs and generate swagger json
Stars: ✭ 18 (-21.74%)
Mutual labels:  api
Web Dev Resources Wiki
A collection of my favorite resources for web development, design, and frameworks
Stars: ✭ 22 (-4.35%)
Mutual labels:  api
Atbapi
Sane API for bus data in Trondheim, Norway
Stars: ✭ 17 (-26.09%)
Mutual labels:  api
Forge Server Utils
Tools for accessing Autodesk Forge APIs from modern Node.js apps.
Stars: ✭ 23 (+0%)
Mutual labels:  api
Django rest example
Django/DRF rest application example.
Stars: ✭ 17 (-26.09%)
Mutual labels:  api
Slack
🎉✨ Slack API client for Node and browsers.
Stars: ✭ 903 (+3826.09%)
Mutual labels:  api
Resolutejs
Finally get to retry during a Promise operation (works in modern browsers as well as nodejs), zero dependencies.
Stars: ✭ 23 (+0%)
Mutual labels:  api
Geocoder
🌎 GoLang package that provides an easy way to use the Google Geocoding API
Stars: ✭ 23 (+0%)
Mutual labels:  api
Alpaca Trade Api Python
Python client for Alpaca's trade API
Stars: ✭ 912 (+3865.22%)
Mutual labels:  api

random-cat

random-cat is a amazing modul to get cat images. This Project won't be posible without the great Cat API (http://thecatapi.com).

Big Thanks to the great Cat API

Go and visit http://thecatapi.com

alt text

Python 2 and 3 compatible

Installation

Install through pip.

$ pip install random-cat

or get from source

$ git clone https://github.com/gravmatt/random-cat
$ cd random-cat
$ python setup.py install

Usage

The cat module has just one function getCat() with three optional arguments.

Arguments

directory - default is the current directory

filename - default is a unique id

format - default is png. optional png, jpg and gif is available

import cat

# cat.getCat(directory=None, filename=None, format='png')

cat.getCat(directory='/users/tor', filename='cat', format='gif')

# /users/tor/cat.gif

The function return the image name (absolute path if directory is specified) of the image.

Command Line

You can also request an image on the terminal.

$ randomcat [format] [file]

# Example:

$ randomcat gif /users/tor/cat.gif

The two arguments format and file are optional.

You can select the formats png, jpg or gif.

The command return the filename/absolute path of the image to the standard output (stdout).

Licence

The MIT License (MIT)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].