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 cat gif.
Arguments: filename

import rnd_cat
rnd_cat.cat_gif(filename='default_cat_gif')

• cat_say_edit() - Will return a random cat saying editable text.
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')

• cat_tag() - Will return a random cat with a tag, You can combine multiple tags with tag separator. All tags here

Arguments: filename, format, tag

import rnd_cat
rnd_cat.cat_tag(filename="default_cat_tag_img", format="jpg", tag="orange,cute")

• cat_tag_say() - Will return a random cat with a tag and saying text.

Arguments: filename, format, tag, text

import rnd_cat
rnd_cat.cat_tag_say(filename="default_cat_tag_say_img", format="jpg", tag="orange,cute", text="Hello")

• cat_type() - Will return a random cat with image (xsmall, small, medium or square).
Arguments: filename, format, type

import rnd_cat
rnd_cat.cat_type(filename = "default_cat_type_img", format = "jpg", type = "square")

• cat_filter() - Will return a random cat with image filtered by filter (blur, mono, negate).

Arguments: filename, format, filter

import rnd_cat
rnd_cat.cat_filter(filename = "default_cat_filter_img", format = "jpg", filter = "mono")

Flying cat

• cat_combo() - A mix of most of the arguments!
Arguments: filename, is_gif, is_say, filter, is_filtered, text, fontSize, fontColor, type, format

import rnd_cat
rnd_cat.cat_combo(
    filename = "default_cat_combo",
    is_gif = True,
    is_say = True,
    filter = "mono",
    is_filtered = True,
    text = "Hello",
    fontSize = 20,
    fontColor = "orange",
    type = "square",
    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.4.tar.gz (3.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.4-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rnd_cat-0.0.4.tar.gz
  • Upload date:
  • Size: 3.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.4.tar.gz
Algorithm Hash digest
SHA256 61dc8b1622283c17a730147948de27dc1f49149892e9e399d973557d757c10e1
MD5 a2b7b2886724252f357e07e35356a9b6
BLAKE2b-256 3ebf4617db808dda973ceef0316a3f42a85045e57c265aa47d777a8215353af7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rnd_cat-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.4 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d37983e96210a60c1921ad1f6fd7a19b0e6542c05aebbcdc62183737d646a2fb
MD5 655055a9f6c25a3dc5d2cda360d60de7
BLAKE2b-256 16bb84282e95d965c428aadfdb43ccfdbe9996de922dbac794ef4c79873f0e33

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