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
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for utils_functions_plus-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7815c6f573df7901c278451d7a8ffd9e1fc838bf69838ad73323301cc1e8e791 |
|
MD5 | f13b95c72b2a507aa186c6dcfb3acabc |
|
BLAKE2b-256 | d61429b9b07e33c14912f24184db4c00ea13d029ae922c816a7de5cbc8c15b76 |