Your code but better
Project description
Your Code But Better
Wrapper for your code to make it nothing but better.
Installation
pip install but-better
Usage
Pass the time during a long running function by watching a YouTube video.
Pass YouTube video id as the argument to but_better
and use it as a decorator.
from but_better import but_better
my_favorite_youtube_id: str = ...
youtube_video = but_better(my_favorite_youtube_id)
from their_module import their_function
their_function_but_better = youtube_video(their_function)
If you are writing the function, use the decorator syntax:
@youtube_video
def my_function():
# Your code here
pass
Struggling to find something to kill the time? Try out a pre-defined video:
from but_better import (
elevator,
favorite_customer,
gasolina,
gotcha,
phillies_hype_song,
ten_hour_fireplace,
)
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
but_better-0.1.0.tar.gz
(3.4 kB
view details)
Built Distribution
File details
Details for the file but_better-0.1.0.tar.gz
.
File metadata
- Download URL: but_better-0.1.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.0 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb88b43e6dddc861b4572b584032335f601405f38b7e5fc82f5c91d9f3d06b7a |
|
MD5 | 503905432eb1016886f352c561885107 |
|
BLAKE2b-256 | 0dc85fd25203af737bb2edffe859ee9bcd5a0f3d7e84ba1e1f70690401b4c691 |
File details
Details for the file but_better-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: but_better-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.0 Linux/6.5.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5757a38df623dcfad10415d6aaa7d92df0ec27f9226f03b0008efd547cc91860 |
|
MD5 | e6da90d1f74f46853ca547cce0479fac |
|
BLAKE2b-256 | 528fdd32ca171741357138cb621c81b741c3135da541c81e7939c9f667b06b8f |