Skip to main content

The basic library for coding

Project description

cozy-kit

A cozy Python package with greetings, bedtime stories, quotes, and friendly messages.

Created by Youssef.


Requirements

  • + Python 3.8


Installation

Install the package:

pip install cozy-kit

Update the package:

pip install --upgrade cozy-kit

What is this package?

cozy-kit is a friendly Python package that provides:

Welcome messages

Goodbye messages

Morning greetings

Bedtime stories

Motivational quotes

JSON-powered random content...

The package is designed to be simple, cozy, and beginner-friendly.

Using the package and its classes


How to use this package:

Import it:

from cozy_kit import Yoyo

Then create the object:

from cozy_kit import Yoyo

example_name = Yoyo(
    name='Example',
    age=12,
    height=12,
    weight=13,
    eye_color='blue',
    hair_color='black',
    gender='male',
    nickname='Example'
)

Functions

  • welcome() welcomes you
  • good_morning() gives you a morning quote
  • good_afternoon() gives you an afternoon quote
  • good_evening() gives you an evening quote
  • good_night() tells you a bedtime story
  • auto_greet() calls the specific function depending on the time and season
  • bye() tells you goodbye
  • motivate() gives you a motivational quote
  • fun_facts() gives you a fun fact

Example Usage:

from cozy_kit import Yoyo

person = Yoyo(
    name="Youssef",
    nickname="Yoyo"
)

print(person.say())

Example Output:

Welcome Youssef!
Or welcome Yoyo!

How to use the Timer class

Import it:

from cozy_kit import Timer

Then create the object:

from cozy_kit import Timer

timer = Timer()  # No parameters required currently

Functions:

  • countdown(count, time_type, show)

Enter the count amount,

then if it is min/hour/sec.

The show parameter allows custom output systems such as:

- print
- pyttsx3 speech
- Tkinter labels
- custom logging functions
  • pomodoro(work_time, break_time, long_break_time, show) The work, break, and long_break times will be calculated as minutes
  • wait(count, time_type)
  • get_time()
  • start_stopwatch()
  • end_stopwatch()

Example Usage:

from cozy_kit import Timer

timer = Timer()
timer.countdown(10, 'sec', print)
timer.pomodoro(work_time=25, break_time=5, long_break_time=25, show=print)

How to use the TextStudio class

Import it:

from cozy_kit import TextStudio

Then create the object:

from cozy_kit import TextStudio

text_editor = TextStudio()

Functions:

  • to_morse(text)
  • to_upper(text)
  • to_title(text)
  • to_lower(text)
  • space_out_letters(text)
  • replace_with_spaces(text, replacement)
  • caesar(text, shift)
  • reverse(text)
  • word_count(text)
  • char_count(text)
  • remove_spaces(text)
  • snake(text)
  • remove_punctuation(text)

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

cozy_kit-0.2.6.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

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

cozy_kit-0.2.6-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file cozy_kit-0.2.6.tar.gz.

File metadata

  • Download URL: cozy_kit-0.2.6.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for cozy_kit-0.2.6.tar.gz
Algorithm Hash digest
SHA256 3e9167449c460d8ca1f0e971c929dda6816fc6e2b4f615d589b5b7173dc2eea8
MD5 bab992bdc09e8f232ec2241cba12e44a
BLAKE2b-256 3c9755e16c348dc40c42a6492ff023d1378ce44b1aa8ca37523176246314a9f9

See more details on using hashes here.

File details

Details for the file cozy_kit-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: cozy_kit-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for cozy_kit-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 0f7ae77a03957a11511c3e53f54b47d1c0cc46e46e2b22b5e7c1ab96001c3503
MD5 123283789007df4c582e622e84f10561
BLAKE2b-256 e6507a8c50b4652a5ca3b681150ab5bf01069c47aa02a2b443b8fc1c9b93507a

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