random-cat 1.0.1

Last updated:

0 purchases

random-cat 1.0.1 Image
random-cat 1.0.1 Images
Add to Cart

Description:

randomcat 1.0.1

# random-catrandom-cat is a amazing modul to get cat images. This Project won't beposible without the great Cat API (http://thecatapi.com).## Big Thanks to the great Cat APIGo and visit [http://thecatapi.com](http://thecatapi.com)![alt text](http://thecatapi.com/api/images/get?type=gif "See? amazing!")**Python 2 and 3 compatible**## InstallationInstall through **pip**.```pipinstallrandom−cat‘‘‘orgetfromsource‘‘‘ git clone https://github.com/gravmatt/random-catcdrandom−cat python setup.py install```## UsageThe 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 LineYou can also request an image on the terminal.```You can't use 'macro parameter character #' in math modeYou can't use 'macro parameter character #' in math mode 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).### LicenceThe MIT License (MIT)

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.