Skip to main content

Your code but better

Project description

Your Code But Better

PyPI version Ruff

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


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.3.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

but_better-0.3.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

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

Hashes for but_better-0.3.0.tar.gz
Algorithm Hash digest
SHA256 080733044dc7ff3cde51b5ce6d1ef66639f4deb8498d33821a7ca24b6478dcbc
MD5 236ce33d3b964a802a9cf25ae69544a5
BLAKE2b-256 02e1eaf7b9901cdf88c2ebf5a9b25b23566c72675f7e7a2ecbb85ac169fa2463

See more details on using hashes here.

File details

Details for the file but_better-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for but_better-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7b51c1d3e84db3602122099c9165a6c7fde82aad5f09e00699ab3b8e8ad5b889
MD5 0af9a42c8d3ed156c415cf099b0840ca
BLAKE2b-256 9148843fb64c0d039ae5aade98ce271eddd95b1ba0aeb214134dbfaf974d85ae

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page