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,
)
Metadata
Release files for but-better 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| but_better-0.3.0.tar.gz | 5.3 kB | Without provenance | Details for but_better-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| but_better-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for but_better-0.3.0-py3-none-any.whl |
Total release size: 9.8 kB
Release files / but_better-0.3.0.tar.gz
| Download URL | but_better-0.3.0.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
080733044dc7ff3cde51b5ce6d1ef66639f4deb8498d33821a7ca24b6478dcbc
|
|
BLAKE2b-256 checksum How to use checksums |
02e1eaf7b9901cdf88c2ebf5a9b25b23566c72675f7e7a2ecbb85ac169fa2463
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.7.3
|
Release files / but_better-0.3.0-py3-none-any.whl
| Download URL | but_better-0.3.0-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7b51c1d3e84db3602122099c9165a6c7fde82aad5f09e00699ab3b8e8ad5b889
|
|
BLAKE2b-256 checksum How to use checksums |
9148843fb64c0d039ae5aade98ce271eddd95b1ba0aeb214134dbfaf974d85ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.7.3
|
Security for but-better 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.