Skip to main content

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.

Metadata

Release files for gone 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gone 0.1.0
File Size Uploaded
gone-0.1.0.tar.gz 65.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for gone 0.1.0
File Interpreter ABI Platform
gone-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 65.1 MB

Release files / gone-0.1.0.tar.gz

Download URL gone-0.1.0.tar.gz
Size 65.1 MB
Tags Source
SHA-256 checksum
How to use checksums
5cd4a01d97dc9b59468c32f7a661d9f3b7d40c8680f1cf656bb32957effa4ffc
BLAKE2b-256 checksum
How to use checksums
e0414d9eaa12a79a4e4da60397fadb2d7be2502d150b488293127bc31264f5ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.27.0

Release files / gone-0.1.0-py3-none-any.whl

Download URL gone-0.1.0-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c494f0f39161061ed955c6bd06e3d64b030989e8ef143a67e430cb7a170c9d81
BLAKE2b-256 checksum
How to use checksums
6381baaebb7f1a26336188722848a11ba30dac91df20f6af0027aa0b7021bd04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.27.0

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page