Skip to main content

Official   Ubuntu   LICENSE   GitHub Repo stars   Twitter Follow  

🛠️ Auro Utils

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

⚙️ Installation

To install Auro Utils, you can use one of the following methods:

# Install from PyPI
pip install auro_utils
# Install from the current directory (local development)
git clone https://github.com/Auromix/auro_utils
cd auro_utils
pip install -e .

🔥 Quickstart

You can find detailed examples for the project in the examples directory of the repository.

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 import Logger
my_logger = Logger()
my_logger.log_info("This is a info log test.")

logger_cmd

profiler

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

# Import the profiler
from auro_utils.profiler import auro_profiler


# Use the profiler as a decorator
@auro_profiler
# Your code here
def your_function_code():
    # Simulate your time-consuming operations
    import time

    time.sleep(2)

profiler_cmd

profiler_web

manager

Functions in manager can be used to read and write files and process paths.

# Load the configuration from the specified TOML file
loaded_config = au.load_config(
    config_file_path, relative_to=home_dir, file_type="toml"
)

# Print the loaded configuration data
print("Loaded configuration:", loaded_config)

🧪 Test

cd auro_utils
python3 -m pytest -v .

🧑‍💻 Documentation

For comprehensive documentation, please refer to the comments within the source code and examples.

🙋 Troubleshooting

If you encounter any issues or have questions regarding this package, please contact the maintainers:

📜 License

Copyright 2023-2024 Herman Ye@Auromix

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at:

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
either express or implied. See the License for the specific
language governing permissions and limitations under the License.

🏆 Contributing

Contributions are welcome! Please follow the guidelines provided in the repository for contributing.

Release files for auro-utils 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for auro-utils 0.0.8
File Size Uploaded
auro_utils-0.0.8.tar.gz 18.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for auro-utils 0.0.8
File Interpreter ABI Platform
auro_utils-0.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 39.6 kB

Release files / auro_utils-0.0.8.tar.gz

Download URL auro_utils-0.0.8.tar.gz
Size 18.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9303e554acbd2cdc78bec3e14c8be7b542593d86cfa3a2a5302b2b73b804ecfa
BLAKE2b-256 checksum
How to use checksums
b05ce46236ba548cb459c6f172bbfca1972497e7be26de4ccb612d6107804d28
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.21

Release files / auro_utils-0.0.8-py3-none-any.whl

Download URL auro_utils-0.0.8-py3-none-any.whl
Size 21.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4107548fde1e7dce3443985aa973bfc73082889c3600a6d7a26ec9c5853a5641
BLAKE2b-256 checksum
How to use checksums
19334ccdd4523e482c27c97bc51cd58c6362d8fc61557917c7967b286dedb528
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.21

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page