Skip to main content

No project description provided

Project description

gone

Make stuff disappear

PyPI - Version PyPI - Python Version


Table of Contents

Installation

pip install gone

Usage

The gone module provides three decorators to manipulate function input and output:

  1. args: Absorbs all input arguments and calls the decorated function without them.
  2. result: Discards the result of the decorated function.
  3. inout: Absorbs all input arguments and discards the result of the decorated function.

Usage Example

import gone

@gone.args
def greet():
    return "Hello World"

greet(1, 2, key=3)  # Result: Hello, world!

@gone.result
def add(a, b):
    return a + b

print(add(1, 2))  # Output: None


@gone.inout
def display_message():
    print("This will print, but inputs and outputs are ignored.")
    return "ignored"

display_message("ignored input")  # Output: This will print, but inputs and outputs are ignored; Returns: None

License

gone is distributed under the terms of the MIT license.

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

gone-0.1.0.tar.gz (65.1 MB view details)

Uploaded Source

Built Distribution

gone-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file gone-0.1.0.tar.gz.

File metadata

  • Download URL: gone-0.1.0.tar.gz
  • Upload date:
  • Size: 65.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for gone-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5cd4a01d97dc9b59468c32f7a661d9f3b7d40c8680f1cf656bb32957effa4ffc
MD5 10ee4dbfca3b60628b9e027dcc9fcf0c
BLAKE2b-256 e0414d9eaa12a79a4e4da60397fadb2d7be2502d150b488293127bc31264f5ba

See more details on using hashes here.

File details

Details for the file gone-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gone-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for gone-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c494f0f39161061ed955c6bd06e3d64b030989e8ef143a67e430cb7a170c9d81
MD5 63ac61cfdec051e39f175459fac644ea
BLAKE2b-256 6381baaebb7f1a26336188722848a11ba30dac91df20f6af0027aa0b7021bd04

See more details on using hashes here.

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