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.3.tar.gz (4.8 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.3-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for quas_utils-0.0.3.tar.gz
Algorithm Hash digest
SHA256 fe9d5f49e4aa42dd9d3a334d06cb8ab504c222eeb7808258f1d027350328b96e
MD5 f88dfef5e702df2563c2d19b4c0276f5
BLAKE2b-256 2b94bcd6b196871584dd251f30225546260412e12c0da771ebe2ee61b8e814dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for quas_utils-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5ff5684271b147bad7c34188a8d11b2361253176ac55e8d8f79f25bdc6161e63
MD5 631120ab83cd83fa44540af0b589ad8a
BLAKE2b-256 46f6ac376f2de078d3121f0c4e1bca49b9d2508d39541e032df672c5082d42de

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