The module that is your welcoming code
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
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.0.tar.gz
(7.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.0.tar.gz.
File metadata
- Download URL: yoyo_bgw-0.2.0.tar.gz
- Upload date:
- Size: 7.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 |
1ad5ffa2b4b6d1c5bf7f50d9e8d0fd3458843214c14a2e987cc5c6b6ba766b1c
|
|
| MD5 |
2d04214489053d994360a2eb1a41521a
|
|
| BLAKE2b-256 |
38d782ac1b7e87a8dcb12613b2a9bcbc41b8a3ec5b6acfa90c025613a9c827ad
|
File details
Details for the file yoyo_bgw-0.2.0-py3-none-any.whl.
File metadata
- Download URL: yoyo_bgw-0.2.0-py3-none-any.whl
- Upload date:
- Size: 8.5 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 |
3abf9c7a87f2b2a81af01a953fef06044f6aa7540518dd83c32f5bf9c7540653
|
|
| MD5 |
740b4a0c67dfbaab5812fb5ade275a08
|
|
| BLAKE2b-256 |
5dffb9beabcca9f63f2caa537f91499c405050cdecb182f1a8ca83a0ee281dbc
|