Skip to main content

A collection of utilities for the QUAS ecosystem

Project description

quas-utils

Flask-oriented utilities (date/time helpers + decorators).

Install

python -m pip install quas-utils

Usage

Date/time helpers:

from quas_utils.date_time import QuasDateTime, to_gmt1_or_none

now_utc = QuasDateTime.aware_utcnow()
readable = QuasDateTime.format_date_readable(now_utc)
gmt1 = to_gmt1_or_none(now_utc)

Decorators:

from quas_utils.decorators import retry, get_time


@retry(retries=3, delay=1.5)
def fetch_from_db():
    ...


@get_time
def heavy_work():
    ...

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

quas_utils-0.0.4.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

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

quas_utils-0.0.4-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: quas_utils-0.0.4.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for quas_utils-0.0.4.tar.gz
Algorithm Hash digest
SHA256 b23381cc4eac50bb692f5f831dd9a189ccc52b7e7d4995d41dfd059a8b0a093d
MD5 ecaaaf9009f52b67e10ca4e899f1eab0
BLAKE2b-256 5222026c93b7c8c9231b6adb11888cbca43f7a4ea578a6096deaa285aef2232d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quas_utils-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d870e5e90c245bc8a719ed7d8e6ca90563cbf579be04e90a52db01a17615f82c
MD5 d7183b19c9bf4c1e66dd8ead1b842b62
BLAKE2b-256 2f5d67e0b812897a5d820115a8c6d883d9ae1b17c56d4fa2826bd7c7834c9f69

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page