Skip to main content

Foundation utilities for Python development with zero external dependencies

Project description

qdbase

Foundation utilities for Python development with zero external dependencies.

Overview

qdbase is the foundation layer of the QuickDev metaprogramming toolkit, providing a collection of utilities for common development tasks. It has zero external dependencies beyond the Python standard library, making it lightweight and easy to integrate into any project.

Key Modules

exenv - Execution Environment

Detection and normalization of execution environments:

  • Path manipulation with safety checks
  • Directory and file utilities
  • Environment detection

pdict - Enhanced Dictionary

Extended dictionary functionality with additional utilities for data manipulation.

qdsqlite - SQLite Helpers

Simplified SQLite database operations:

  • Connection management
  • Query helpers
  • Schema utilities

CLI Utilities

  • cliargs - Command-line argument parsing
  • cliinput - Interactive command-line input handling

qdconf - Configuration Management

TOML-based configuration management with cache and validation.

qdcheck - Check/Validation Framework

Pluggable check runners for validating service configuration and health.

qdos - OS Operations

Safe filesystem operations with error handling (directory creation, file operations).

Installation

pip install qdbase

Or install in development mode from a local clone:

pip install -e /path/to/qdbase

Usage

from qdbase import pdict, qdsqlite, exenv

# Enhanced dictionary operations
data = pdict.PDict()

# SQLite helpers
db = qdsqlite.QdSqlite("mydb.db")

# Environment utilities
safe_path = exenv.safe_join("/base/path", "subdir")

Part of QuickDev

qdbase is part of the QuickDev metaprogramming toolkit. Other packages include:

  • xsynth - Preprocessor for generating Python from high-level declarations
  • qdflask - Flask authentication with role-based access control
  • qdimages - Flask image management with hierarchical storage

License

MIT License - Copyright (C) Albert B. Margolis

Requirements

  • Python >= 3.9
  • No external dependencies (stdlib only)

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

qdbase-0.3.0.tar.gz (33.9 kB view details)

Uploaded Source

Built Distribution

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

qdbase-0.3.0-py3-none-any.whl (36.1 kB view details)

Uploaded Python 3

File details

Details for the file qdbase-0.3.0.tar.gz.

File metadata

  • Download URL: qdbase-0.3.0.tar.gz
  • Upload date:
  • Size: 33.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for qdbase-0.3.0.tar.gz
Algorithm Hash digest
SHA256 1c1f77c46d6fb371a5e6d308f89b1ff6212e3810408ff9a287e3270ef60282d4
MD5 56dfc3eb9afd938c968dec2b62f2360e
BLAKE2b-256 b03630ba042ae75b06650fca04582f9e7ff3e2aa96c28e0c1c0cde1e8f129e7e

See more details on using hashes here.

File details

Details for the file qdbase-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: qdbase-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 36.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for qdbase-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 222d3607f52b4dba49a3221e0ae8ab773cdcd361f286c00428372586b16ea3c8
MD5 05264f93b1ebe3262cf2de6752e2fd17
BLAKE2b-256 d655d150f19074883c69371f1b0181ec5c88db841d80eea2cb4636ef02866d6a

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