https://github.com/a-boring-square/ohmydecorators
This is a python library that as it's name suggests contains over 100+ function decorators for use in your programs
https://github.com/a-boring-square/ohmydecorators
error-handling library python-decorators python-library python3
Last synced: about 2 months ago
JSON representation
This is a python library that as it's name suggests contains over 100+ function decorators for use in your programs
- Host: GitHub
- URL: https://github.com/a-boring-square/ohmydecorators
- Owner: A-Boring-Square
- Created: 2024-03-12T16:31:42.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-14T02:40:21.000Z (9 months ago)
- Last Synced: 2025-04-04T05:40:35.949Z (about 2 months ago)
- Topics: error-handling, library, python-decorators, python-library, python3
- Language: Python
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# About
# Installation
instalation is simple just use the command
```pip install OhMyDecorators```
or
```pip3 install OhMyDecorators```# Docs
## Concurrency
### RunFunctionInThread
The RunFunctionInThread function takes in the function and the thread timeout time as a float and when you run the function decorated with this that function will get it's own threadExample:
```
from OhMyDecorators import Concurrency@Concurrency.RunFunctionInThread(100000)
def Test():
print("Hello World")
```### RunFunctionOnGpu
The RunFunctionOnGpu function takes in a function and when you run the function decorated with this it will exacute on the gpuExample:
```
from OhMyDecorators import Concurrency@Concurrency.RunFunctionOnGpu()
def Test():
print("Hello World")
```