Skip to main content

Unified Python Utils

Collection of python library utils

Installation

poetry add upils

How to use the logger

First, set up the logger. It accepts string like "INFO" or int 20

logger = configure_logger(20)

And then you can just use it like other logger

logger.info("info")
logger.warning("warning")

Add extra information

How to use the extra logging:

logger.bind(user="ajung", desc="smart").error(
    "Inline binding of extra attribute"
)

The output will be

{"level": "ERROR", "time": {"repr": "2023-10-04 12:03:53.043106+07:00", "timestamp": 1696395833.043106}, "message": "Inline binding of extra attribute", "file": {"name": "app.py", "path": "/Users/user/Documents/projects/de-projects/service/statistics-services/app.py"}, "line": 47, "exception": null, "extra": {"ajung": "smart"}}

Metadata

Release files for upils 0.15.0

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

Source distribution (sdist)

Source distribution for upils 0.15.0
File Size Uploaded Provenance Actions
upils-0.15.0.tar.gz 6.4 kB Without provenance Details for upils-0.15.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for upils 0.15.0
File Interpreter ABI Platform Actions
upils-0.15.0-py3-none-any.whl Python 3 none any Details for upils-0.15.0-py3-none-any.whl

Total release size: 14.4 kB

Release files / upils-0.15.0.tar.gz

Download URL upils-0.15.0.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c9c4af2cea5cf917be8c95aa1f6cb9579aed9cc36fdbd1167f121752b9312e74
BLAKE2b-256 checksum
How to use checksums
030f6f0cfdb7fa3aa60b64725460ebf374890f5bc5f0fb3c23bdcf4c60b2e6b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.10.18 Darwin/25.6.0

Release files / upils-0.15.0-py3-none-any.whl

Download URL upils-0.15.0-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dfa58ce66916018522e624a4ab9843d0fae10a1ade63577d9f8845558072269c
BLAKE2b-256 checksum
How to use checksums
e5515b39128807b6a57758311f325d4bc850b394abfc95b4ae4a9b87e7d01c46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.10.18 Darwin/25.6.0

Security for upils 0.15.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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