Skip to main content

A simple python module for receiving random images with cats.

Project description


Random cat module
rnd_cats

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.2.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.2-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rnd_cat-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 9d2646395d1e2d718fc48360707611398519236c60c72fcfbd1f07a307777c2f
MD5 53032d739b4b641d41b1e9fa3f868889
BLAKE2b-256 f0b60545835e66a1a259cde5ce4920253db361af907c85fa875a24aca66d2750

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rnd_cat-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 413412522a4f62c9398d6e27a04dd643a156ad4a4e2026758a617030fde2e50a
MD5 c61f677ee5e5eb979ab97f9c6b5c5908
BLAKE2b-256 812e04df9e0141e8b3b7e960e0dc78580522cca75cc2338c3f025d2fe0f0b1e3

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