PyCatSim Utilities

Utilities upon which PyCatSim depends for higher-level functionalities accessible to users.

Noises (pyCatSim.utils.noises)

Contains various functionalities for cat noises.

This module contains possible sounds cats can make

pyCatSim.utils.noises.chatter(play=False)[source]

Simulates a chatter

Parameters:

play (Bool, optional) – Whether to play the sound (True) or display the text (False). The default is False.

Returns:

If play is False, returns the sound as text

Return type:

str

pyCatSim.utils.noises.chirrup(play=False)[source]

Simulates a chirrup

Parameters:

play (Bool, optional) – Whether to play the sound (True) or display the text (False). The default is False.

Returns:

If play is False, returns the sound as text

Return type:

str

pyCatSim.utils.noises.hiss(play=False)[source]

Simulates a hiss

Parameters:

play (Bool, optional) – Whether to play the sound (True) or display the text (False). The default is False.

Returns:

If play is False, returns the sound as text

Return type:

str

pyCatSim.utils.noises.meow(play=False)[source]

Simulates a meow

Parameters:

play (Bool, optional) – Whether to play the sound (True) or display the text (False). The default is False.

Returns:

If play is False, returns the sound as text

Return type:

str

pyCatSim.utils.noises.purr(play=False)[source]

Simulates a purr

Parameters:

play (Bool, optional) – Whether to play the sound (True) or display the text (False). The default is False.

Returns:

If play is False, returns the sound as text

Return type:

str

Facts (pyCatSim.utils.facts)

Contains functionalities for getting facts about cats

pyCatSim.utils.facts.random_facts()[source]

calls up random facts about cats

Returns:

A fact randomly chosen from a pre-defined fact pool

Return type:

str

Facts (pyCatSim.utils.display)

Contains functionalities for display images

pyCatSim.utils.display.show(color)[source]
Parameters:

color (str) – The color of the cat

Return type:

None.