Skip to main content

qools

Utility tools from Qarium

Installation

pip install qools

Quick Start

from qools import funcutils

@funcutils.called_once
def init_connection():
    print("Connecting...")
    return "connected"

# First call — executes the function
result = init_connection()  # Connecting...

# Subsequent calls — return cached result without execution
result = init_connection()  # (no output, returns "connected")

API

funcutils

Submodule-style import: from qools import funcutils.

Name Description
called_once(f) Thread-safe decorator. Ensures the function is called only once; subsequent calls return the cached result.
DEFAULT_TIMEOUT Constant 5
DEFAULT_DELAY Constant 0.5

Documentation

Full documentation: https://qarium.github.io/qools/

Download files

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

Source Distribution

qools-1.0.0.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

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

qools-1.0.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file qools-1.0.0.tar.gz.

File metadata

  • Download URL: qools-1.0.0.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for qools-1.0.0.tar.gz
Algorithm Hash digest
SHA256 dc53113b58bbf671ed1f15a4af5c2c181a8e8585adf38788adc2a993c1be491d
MD5 d4e879c2d1543278975bd66f31b5bd01
BLAKE2b-256 f4b4b3d520bedb16e246eda554021a600695d06b5d9d2dec10b9553d7b5cfcf5

See more details on using hashes here.

File details

Details for the file qools-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: qools-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for qools-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6d3e31f29a643fcae8d9de123e274a3817d5ff4be04310fede927536797f318c
MD5 19e9bd7e6406c4ac57a696096bee1dcf
BLAKE2b-256 797f480f7d72a816f116f2963ce4874f1251284cd8b14d8c66e55d4c169d4c36

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

0.0.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