Skip to main content

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


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 hashes)

Uploaded Source

Built Distribution

but_better-0.1.0-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

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