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
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 but_better-0.3.0.tar.gz.
File metadata
- Download URL: but_better-0.3.0.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
080733044dc7ff3cde51b5ce6d1ef66639f4deb8498d33821a7ca24b6478dcbc
|
|
| MD5 |
236ce33d3b964a802a9cf25ae69544a5
|
|
| BLAKE2b-256 |
02e1eaf7b9901cdf88c2ebf5a9b25b23566c72675f7e7a2ecbb85ac169fa2463
|
File details
Details for the file but_better-0.3.0-py3-none-any.whl.
File metadata
- Download URL: but_better-0.3.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b51c1d3e84db3602122099c9165a6c7fde82aad5f09e00699ab3b8e8ad5b889
|
|
| MD5 |
0af9a42c8d3ed156c415cf099b0840ca
|
|
| BLAKE2b-256 |
9148843fb64c0d039ae5aade98ce271eddd95b1ba0aeb214134dbfaf974d85ae
|