Skip to main content

UniversalFunctions

UniversalFunctions is a Python utility library providing foundational functions, validators, decorators, type utilities, and infrastructure for building structured Python applications and domain-specific APIs.

It is designed as an independent foundation layer that can be used on its own or as a dependency of larger projects such as GeometricalDomination.

Installation

Install UniversalFunctions from PyPI:

pip install UniversalFunctions

The package requires Python 3.14 or later.

Usage

UniversalFunctions is imported through the UF Python package:

from uf.validators import TypeValidate
from numbers import Real

TypeValidate(Real)(56)

The distribution name is UniversalFunctions, while the Python import package is UF.

Package Structure

UniversalFunctions is organized into several foundational components:

UF

The main package containing the core infrastructure and utilities.

UF.Validators

Provides runtime validation utilities and validation classes for enforcing types, ranges, relationships, and other constraints.

Notable components include:

  • TypeValidate -> class for validating an object against an expected type
  • SequenceValidate -> class used to validate a sequence of objects
  • LessThan -> class to validate a real number, constraint: value < expected
  • qtm_validation_decorator -> when applied to a function, the decorator takes the provided parameter values and validates them against the expected type
  • ErrorDedent
  • Callable validation utilities

This package inside UF contains numerous validators designed to validate all sorts of values and types, including some sophisticated ones like SequenceValidate which allows users to enter extra restrictions to the items in a given sequence.

There are 2 extra errors which are provided:

  • ItemCountError
  • ConstraintError

ItemCountError was created since Python does not have an error for a situation where the values and types might be correct, though the number of items is not.

ConstraintError provides users to express that the type of a value might be correct, though it fails to pass a specific constraint.

The validation system also contains the Quantum Turtle Mechanics (QTM) validation infrastructure used for more structured runtime validation.

Decorators

UniversalFunctions provides reusable decorator infrastructure, including decorator composition and class-level decorator utilities.

Notable components include:

  • deco_superposition -> applies an arbitrary number of decorators to a function
  • cls_deco_superposition -> applies an arbitrary number of decorators to every function in a class, except for protected ones (names starting with "_")
  • Quantum Turtle Mechanics validation decorators

Helper Functions

The library contains foundational helper functions intended to be reused by higher-level applications and APIs.

These utilities include mathematical and general-purpose functionality used throughout the surrounding ecosystem.

Design Philosophy

UniversalFunctions exists as a foundational layer rather than as a standalone end-user application.

Its purpose is to provide reusable infrastructure that higher-level projects can build upon without duplicating common functionality.

The architecture separates foundational utilities from domain-specific functionality, allowing projects to depend on UniversalFunctions independently.

In the GeometricalDomination ecosystem, UniversalFunctions acts as the bridge between the underlying infrastructure and higher-level systems.

Quantum Dimension

UniversalFunctions contains several architectural concepts inspired by the internal terminology of GeometricalDomination.

These include:

  • Quantum Turtle Mechanics (QTM)
  • Classical Turtle Mechanics (CTM)
  • Quantum Turtle String Theory (QTST)
  • The Quantum Dimension

These names describe architectural concepts within the project's validation and infrastructure systems.

Requirements

Python 3.14 or later

UniversalFunctions is designed for modern Python and makes use of contemporary Python typing and language features.

Source Code Navigation

If you wish to explore the source code, installing the Comment Linking extension for Visual Studio Code is recommended. The source code contains internal navigation links that help you navigate between modules, classes, functions, and their corresponding definitions.

The extension makes these links easier to recognize and follow, providing a more convenient way to explore the project's internal architecture.

License

UniversalFunctions is distributed under the terms of the license included in this repository.

Author

Miah M. Sabiq

UniversalFunctions is developed as an independent Python package and serves as foundational infrastructure for larger projects within the author's software ecosystem.

Metadata

Release files for UniversalFunctions 5.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for UniversalFunctions 5.1.3
File Size Uploaded Provenance
universalfunctions-5.1.3.tar.gz 18.1 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for UniversalFunctions 5.1.3
File Interpreter ABI Platform
universalfunctions-5.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 46.4 kB

Release files / universalfunctions-5.1.3.tar.gz

Download URL universalfunctions-5.1.3.tar.gz
Size 18.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f04b9508ac9fd2ee89c23d686bb2ab22ae531fe648d8132c37db067d25ce638b
BLAKE2b-256 checksum
How to use checksums
16c0591425cf6cb28bbbdb10a4b842169e12c2604ea25b0d0f958245e94a8d12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

Release files / universalfunctions-5.1.3-py3-none-any.whl

Download URL universalfunctions-5.1.3-py3-none-any.whl
Size 28.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7adfbd2cc89e6d25cd58d40869cb144841f1b7d5092620ed3e4d39a6f3a9551c
BLAKE2b-256 checksum
How to use checksums
aab5c9a155dda9a9f7ab367f7cfd57c64956a70b139329ff365593afc7f54132
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

Security for UniversalFunctions 5.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for universalfunctions-5.1.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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