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.5.tar.gz (8.2 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.5-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for quas_utils-0.0.5.tar.gz
Algorithm Hash digest
SHA256 a68d3d4b52caee010c1a4b53e762bfd71a708d4fc6da67b8d49ecca66828b3d3
MD5 cdecfd5f620fcc0c1c6f634216f61b27
BLAKE2b-256 3a94229a00eebf827431714ec4237a86ea2dfd332e3de43281042ecfb5d2ecd3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quas_utils-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0747b9a92d96ca18c2ce9b84e6cab8e0a03c8858cd629707af324004fb95412c
MD5 130793b4042d304e60954f63ccd845bd
BLAKE2b-256 e51c6ae246228f22990aad2eff88f30f5df735fc5f98c018a243715d0d7b5247

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