gone
Make stuff disappear
Table of Contents
Installation
pip install gone
Usage
The gone module provides three decorators to manipulate function input and output:
args: Absorbs all input arguments and calls the decorated function without them.result: Discards the result of the decorated function.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.
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
gone-0.1.0-py3-none-any.whl
(3.6 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5cd4a01d97dc9b59468c32f7a661d9f3b7d40c8680f1cf656bb32957effa4ffc
|
|
| MD5 |
10ee4dbfca3b60628b9e027dcc9fcf0c
|
|
| BLAKE2b-256 |
e0414d9eaa12a79a4e4da60397fadb2d7be2502d150b488293127bc31264f5ba
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c494f0f39161061ed955c6bd06e3d64b030989e8ef143a67e430cb7a170c9d81
|
|
| MD5 |
63ac61cfdec051e39f175459fac644ea
|
|
| BLAKE2b-256 |
6381baaebb7f1a26336188722848a11ba30dac91df20f6af0027aa0b7021bd04
|