Skip to main content

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

utils_functions_plus-0.0.8-py3-none-any.whl (7.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page