Skip to main content

Pointless utilities for python.

Project description

Pointless Utils

A collection of utilities that are (probably) pointless.

Decorators

There are currently 6 pointless decorators available to use:

  • @none - Causes the function to always return None
  • @true - Causes the function to always return True
  • @false - Causes the function to always return False
  • @maybe - Causes the function to return a random choice of True or False
  • @never - The function will never return and will block indefinitely
  • @always - The function is now a generator that indefinitely yields True
  • @alwaysv(value) - The function is now a generator that indefinitely yields the given value

These decorators can be used on either normal or async functions. For example:

@maybe
def ex_1():
    pass

@maybe
async def ex_2():
    pass

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

pointlessutils-0.1.5.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

pointlessutils-0.1.5-py3-none-any.whl (2.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