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.2.0.tar.gz (5.0 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.2.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file but_better-0.2.0.tar.gz.

File metadata

  • Download URL: but_better-0.2.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.6.17

File hashes

Hashes for but_better-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4de5f18dd84ae6566485cd6a9fdc999d05a71e3144cd8041a77ac02d9df79448
MD5 7503344f41f58d44c78fef077fc74e65
BLAKE2b-256 07b4fd2fcce03b8d41077efe484e17b28dd69f17b191b604dda231f38225ebb5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: but_better-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.6.17

File hashes

Hashes for but_better-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 54c4f671f4acbcc839d36147a55a7579228e3a2852e6d61fff20b8ba962f44e4
MD5 19fef638d3746c2cfe88a06e4604decb
BLAKE2b-256 6f673b8e2a246ed1b581fab481eb17c9d394d4386699c10aa155e97de57c4a17

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