Skip to main content

Auro Utils is a utility package offering various practical supports for the Auromix application, such as enhanced logging capabilities and more.

Project description

auro_utils

Auro Utils is a utility toolkit, providing enhanced logging, performance profiling, etc.

Install

Install from pip

pip install auro_utils

Install from source

git clone https://github.com/Auromix/auro_utils
cd auro_utils
pip install -e .

Test

cd auro_utils
python3 -m pytest -v .

Usage

Following are some simplified examples of utilities offered by this package.

You can also find detailed examples in the examples folder.

cd auro_utils/examples

Loggers

logger

Logger is a class that can be used to log messages to the console and to a file. It is a wrapper around loguru.

from auro_utils.loggers.logger import Logger
my_logger = Logger()
my_logger.log_info("This is a info log test.")

logger_cmd

classic logger

Classic logger is a class that can be used to log messages to the console and to a file. It is a wrapper around the standard python logging module.

from auro_utils.loggers.logger_classic import Logger
my_logger = Logger()
my_logger.log_info("This is a info log test.")

Profilers

profiler

Decorator for profiling and analyzing performance of functions. It is a wrapper around yappi.

from auro_utils.profilers.profiler import auro_profiler
@auro_profiler
def your_function_code():
    import time
    time.sleep(2)

profiler_cmd

profiler_web

Troubleshooting

ModuleNotFoundError

Make sure you have installed the package correctly. See Install section.

Want to uninstall

pip uninstall auro_utils

Contribute

Please refer to CONTRIBUTING.md for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

auro_utils-0.0.4.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

auro_utils-0.0.4-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file auro_utils-0.0.4.tar.gz.

File metadata

  • Download URL: auro_utils-0.0.4.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for auro_utils-0.0.4.tar.gz
Algorithm Hash digest
SHA256 ef732ead2be13038d77c662f4cf96a74e7c564ac91da36a73e5691880f6277f6
MD5 6864a0a6184f9c1651d2038d759ea3ad
BLAKE2b-256 705e4786ee91ec003bca8d45782717d2557b51f1672312d19251c2c61b3665b1

See more details on using hashes here.

File details

Details for the file auro_utils-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: auro_utils-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for auro_utils-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a7f2eebb518c8f162b8cf5391439f2382fce53d647f775d49b1cc72e8bdedf74
MD5 07187b0f315b3beb976a3ef34696083d
BLAKE2b-256 c7d809b2e95409b6ce864ce756b1c9b00ded7574f0b85cf484a96a58d791c2b1

See more details on using hashes here.

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