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.14.0.tar.gz (6.3 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.14.0-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for upils-0.14.0.tar.gz
Algorithm Hash digest
SHA256 85994e2d3f65445ddb7592d7f8daf920da470e7164875722dfa2b9a56a5ec048
MD5 25c5a5847bca1252444587173d74c187
BLAKE2b-256 1e60e7d96eea687219deabe30d6717482ded69f9b79869fc48b4ee502b6ed4d1

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for upils-0.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 58bf4767c53af7909d141c7a47c6dba9d1f81427eb26215a0537d66b70f8f823
MD5 cf98ce4e7f74247b67ac31abd5ea0e0e
BLAKE2b-256 d8ca8eb65c8c5b08ca6dcf8891796c954c1bb420fbfac18f6c03007c7fb1e2db

See more details on using hashes here.

Release history Release notifications | RSS feed

0.15.0

2 files

0.14.1

2 files

This release

0.14.0 This release

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