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"}}

Download files

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

Source Distribution

upils-0.15.0.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

upils-0.15.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file upils-0.15.0.tar.gz.

File metadata

  • Download URL: upils-0.15.0.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.10.18 Darwin/25.6.0

File hashes

Hashes for upils-0.15.0.tar.gz
Algorithm Hash digest
SHA256 c9c4af2cea5cf917be8c95aa1f6cb9579aed9cc36fdbd1167f121752b9312e74
MD5 2d1192af1909d29306d6f19686b7c32d
BLAKE2b-256 030f6f0cfdb7fa3aa60b64725460ebf374890f5bc5f0fb3c23bdcf4c60b2e6b5

See more details on using hashes here.

File details

Details for the file upils-0.15.0-py3-none-any.whl.

File metadata

  • Download URL: upils-0.15.0-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.10.18 Darwin/25.6.0

File hashes

Hashes for upils-0.15.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dfa58ce66916018522e624a4ab9843d0fae10a1ade63577d9f8845558072269c
MD5 824112ef1228374d5bae1e25fa18b289
BLAKE2b-256 e5515b39128807b6a57758311f325d4bc850b394abfc95b4ae4a9b87e7d01c46

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.15.0 This release

2 files

0.14.1

2 files

0.14.0

2 files

0.13.0

2 files

0.12.0

2 files

0.11.0

2 files

0.10.0

2 files

0.9.0

2 files

0.8.0

2 files

0.7.0

2 files

0.6.0

2 files

0.5.0

2 files

0.4.0

2 files

0.3.4

2 files

0.3.3

2 files

0.3.1.1

2 files

0.3.1

2 files

0.3.0

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 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