Skip to main content

A simple python module for receiving random images with cats.

Project description


Random cat module
rnd_cat

A simple python module for receiving random images with cats.

InstallationHow To UseCredits

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   


Alien cat
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

rnd_cat-0.0.3.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rnd_cat-0.0.3-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file rnd_cat-0.0.3.tar.gz.

File metadata

  • Download URL: rnd_cat-0.0.3.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.1 Windows/10

File hashes

Hashes for rnd_cat-0.0.3.tar.gz
Algorithm Hash digest
SHA256 266d8494b368147e15d463dac98c802acf6fa347aecdaab179e28144a002f962
MD5 9c51b2ca95d45795eff6d29f2f4136c7
BLAKE2b-256 4bca5c0b8b1686c518aac4101c0a786ec0c3159b02b7a79d98d5dae732ad4966

See more details on using hashes here.

File details

Details for the file rnd_cat-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: rnd_cat-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.1 Windows/10

File hashes

Hashes for rnd_cat-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f425c29be338224cb68c4d7879499126f1f7397e3f6bb6aae6e81b69f9b5c568
MD5 aa5f177d1fdd5af80c377e60ede525d2
BLAKE2b-256 94514b09cdf6a1f88d7ee10ae3b713c22782c62be44d1115bbfcb136d982287c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page