The basic framework for coding
Project description
yoyo-bgw
A cozy Python package with greetings, bedtime stories, quotes, and friendly messages.
Created by Youssef.
Requirements
-
+ Python 3.11
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()
Example Usage:
from yoyo import TextStudio
text_editor = TextStudio(
text="Blah-blAh-TExt"
)
text_editor.to_lower()
text_editor.to_upper()
text_editor.to_title()
text_editor.replace_with_spaces(replacement='-') # Replacement is the letter you're gonna replace with spaces.
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
yoyo_bgw-0.2.1.tar.gz
(8.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yoyo_bgw-0.2.1.tar.gz.
File metadata
- Download URL: yoyo_bgw-0.2.1.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4229d655acfdebf64d00230fccc34ae02f566aa39d8dad06ed11494a75fda892
|
|
| MD5 |
0c7822ab212fff6d2b31c2f5b8d20167
|
|
| BLAKE2b-256 |
25639302c4c962365cf9fd7174c0db6dec732d609fa591fca4579be72d8ca0b3
|
File details
Details for the file yoyo_bgw-0.2.1-py3-none-any.whl.
File metadata
- Download URL: yoyo_bgw-0.2.1-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da491ebefdc7a6713f2fd380c062606dd8ac874bdf10a192ef3db9d0538d6316
|
|
| MD5 |
32d59314c4da6ded7c6a10d796d014e2
|
|
| BLAKE2b-256 |
e577920b590e6459e22d039fe2dcc6b8f1255ed553f11f5970eb464828780e00
|