Archived
This project has been archived by its maintainers, and is no longer receiving any updates.
yoyo-bgw
A cozy Python package with greetings, bedtime stories, quotes, and friendly messages.
Created by Youssef.
Requirements
Installation
Install the package:
pip install yoyo-bgw
Update the package:
pip install --upgrade yoyo-bgw
What is this package?
yoyo-bgw 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 yoyo import Yoyo
Then create the object:
from yoyo 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 yougood_morning()gives you a morning quotegood_afternoon()gives you an afternoon quotegood_evening()gives you an evening quotegood_night()tells you a bedtime storyauto_greet()calls the specific function depending on the time and seasonbye()tells you goodbye
Example Usage:
from yoyo import Yoyo
person = Yoyo(
name="Youssef",
nickname="Yoyo"
)
print(person.welcome())
Example Output:
Welcome Youssef!
Or welcome Yoyo!
How to use the Timer class
Import it:
from yoyo import Timer
Then create the object:
from yoyo 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:
- pyttsx3 speech
- Tkinter labels
- custom logging functions
Example Usage:
from yoyo import Timer
timer = Timer()
timer.countdown(10, 'sec', print)
timer.pomodoro(work_time=25, break_time=5, long_break_time=25, show=print)
Example Output:
00:10
00:09
00:08
...
Time's Up!
💻 Work Time
25:00
...
00:01
☕ Short Break Time
05:00
...
00:01
⏰ Long Break Time
25:00
How to use the TextStudio class
Import it:
from yoyo import TextStudio
Then create the object:
from yoyo import TextStudio
text_editor = TextStudio(
text='Blah-blAh-TExt'
)
Functions:
to_morse()to_upper()to_title()to_lower()space_out_letters()replace_with_spaces()caeser()reverse()word_count()char_count()remove_spaces()snake()camel()caeser()remove_panctuations()
Example Usage:
from yoyo import TextStudio
text_editor = TextStudio(
text="Blah-blAh-TExt"
)
print(text_editor.to_lower())
print(text_editor.to_upper())
print(text_editor.to_title())
print(text_editor.replace_with_spaces(replacement='-')) # Replacement is the letter you're gonna replace with spaces.
print(text_editor.space_out_letters())
Example Output:
blah-blah-text
BLAH-BLAH-TEXT
Blah-Blah-Text
Blah blAh TExt
B l a h b l A h T E x t
Metadata
Release files for yoyo-bgw 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| yoyo_bgw-0.2.2.tar.gz | 9.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yoyo_bgw-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.0 kB
Release files / yoyo_bgw-0.2.2.tar.gz
| Download URL | yoyo_bgw-0.2.2.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb1dd7bd3b5f44559293c7a911d7c23617f6f598769b2da88524a830d6e589eb
|
|
BLAKE2b-256 checksum How to use checksums |
be6b3971f43ce951218ec41010e52650702330aa4aa11392f9bc1696469843e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Release files / yoyo_bgw-0.2.2-py3-none-any.whl
| Download URL | yoyo_bgw-0.2.2-py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d1b7a9c6c9a055a1dc4d8eee48acd19d8a962294a586cc4cde4de209c9624439
|
|
BLAKE2b-256 checksum How to use checksums |
9640f08408369df904eaba0ed9b0d38316ba3b1160883facc85fd49e858f5abf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|