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

simplelex - Lexical Analysis

Simple lexical analysis utilities for parsing text and code.

xsource - Source Processing

Source file processing classes used by the XSynth preprocessor.

Installation

pip install qdbase

Or install in development mode:

pip install -e ./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.7
  • 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.2.0.tar.gz (3.5 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.2.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for qdbase-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6fe5f7aca81a22dfc1942972918c965a30ec8af1e257632ed2bb6bea5e561c35
MD5 09441dc37acbd271c9b5926824da354e
BLAKE2b-256 ba3f73585580e52a6bc02f53006f87522af203c2ca579b2848d08112c141b5bb

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for qdbase-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 69c0ce89bee7752b7b1bffd3603dcbd27070f9aed90d4e35d79a5d864b5ea97d
MD5 3ac0903c316cd5eaddef7d30b86b0dc0
BLAKE2b-256 3bb4799e2bbae11371fe25735879a2813d8adfa0fca12df08594203a4b980de5

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