A simple python module for receiving random images with cats.
Project description
rnd_cats
A simple python module for receiving random images with cats.
Installation • How To Use • Credits
Installation
Open python terminal and install module rnd_cat through pip:
$ pip install rnd_cat
How To Use
Import rnd_cat to your py-file:
import rnd_cat
Functions:
• cat() - Will return a random cat.
Arguments: filename, format
import rnd_cat
rnd_cat.cat(filename='default_cat_img', format='jpg')
Note The arguments are also duplicated in the module, and each function has default values for the arguments (it is not necessary to edit them)
• cat_say() - Will return a random cat saying text. The text does not support special characters and emoticons.
Arguments: filename, format, text
import rnd_cat
rnd_cat.cat_say(filename='default_cat_say_img', text='Hello', format='jpg')
• cat_gif() - Will return a random gif cat.
Arguments: filename
import rnd_cat
rnd_cat.cat_gif(filename='default_cat_gif')
• cat_say_edit() - Will return a random gif cat.
Arguments: filename, format, text, fontSize, fontColor
import rnd_cat
rnd_cat.cat_say_edit(filename='default_cat_gif', text + 'Hello', fontSize=50, fontColor='red', format='jpg')
Credits
The module is based on getting images from this site:
The module is still being finalized...
Author:
GitHub @Atom244
Thanks for using my module!!!
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rnd_cat-0.0.1.tar.gz.
File metadata
- Download URL: rnd_cat-0.0.1.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.1 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f5ea93ba25cc52ea42545bb3c40657f61b4ad915820a95ac66607dc1b6f6faa
|
|
| MD5 |
627a077f774ebf969e4d710f3b9c5ba4
|
|
| BLAKE2b-256 |
25365c5cb4acacf4c1391b688c453169b57bb8514b32481f4b77f282f16acf60
|
File details
Details for the file rnd_cat-0.0.1-py3-none-any.whl.
File metadata
- Download URL: rnd_cat-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.1 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab204d7d2e5258d6e9294100aa134c34d0efb000a609e6d949fb6eca4feb6d19
|
|
| MD5 |
cbe81352e4e16f29d70d62beedd61b5a
|
|
| BLAKE2b-256 |
48f75f3c55c419177b789d9828f9353734330d2b869070d969a722b1e8b51f3d
|