A set of auxiliary functions
Project description
Utils Plus
A set of auxiliary functions that are subdivided into:
Decorator
This module is responsible for grouping the decorator functions. There are decorators to use lazy load, notifications, timeout, measure time and prevent exception.
from utils_plus.decorators import timeout
@timeout(20)
def process_test():
# process
Parser
This module is responsible for grouping the parser functions. There are functions to parser xml, json and images.
from utils_plus.parser import convert_list_to_dict
list_data = [{"name": "Fabio"}, {"age": "26"}, {"company": "SIDIA"}]
result = {}
convert_list_to_dict(result, list_data)
print(result)
>> {"name": "Fabio", "age": "26", "company": "SIDIA"}
Utility
This module is responsible for grouping the utility functions. There are functions to logging config, prints and threads.
from utils_plus.utility import waiting
tasks = []
tasks.append(threading.Thread(target=process_1))
tasks.append(threading.Thread(target=process_2))
tasks.append(threading.Thread(target=process_3))
waiting(tasks)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
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
File details
Details for the file utils_functions_plus-0.0.8-py3-none-any.whl.
File metadata
- Download URL: utils_functions_plus-0.0.8-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7815c6f573df7901c278451d7a8ffd9e1fc838bf69838ad73323301cc1e8e791
|
|
| MD5 |
f13b95c72b2a507aa186c6dcfb3acabc
|
|
| BLAKE2b-256 |
d61429b9b07e33c14912f24184db4c00ea13d029ae922c816a7de5cbc8c15b76
|