Skip to main content

techai-webutils

Development: uv ruff pytest CI GitHub commit activity

Overview

techai_webutils is the Python mirror of the knowledge-engine-toolkit's Go substrate. It follows the same layers (core → foundation (+ execution) → clients → repos → services → pipelines → workflows → controllers) and the same rules, described in the repository's ARCHITECTURE.md. Every swappable component is a Kind + a config + a new_<type>_from_config factory, so switching a backend (memory → S3, stub → Bedrock, asyncio → Ray) is a configuration change.

How to use techai_webutils

uv add techai-webutils            # or: pip install techai-webutils
uv add "techai-webutils[postgres]"  # optional backends: ray, postgres, parsing, langdetect

Build a component from its config at your composition root and inject it:

from techai_webutils.clients.storage import (
    S3Config,
    StorageConfig,
    StorageKind,
    new_storage_from_config,
)

config = StorageConfig(
    kind=StorageKind.MEMORY,  # StorageKind.S3 in a deployment: same code, different config
    s3=S3Config(endpoint="", bucket="documents", region="us-east-1"),
)
storage = new_storage_from_config(config)

The base install already includes the AWS, gRPC, FastAPI, Qdrant, Redis and OpenTelemetry clients. The ray, postgres, parsing, langdetect, opensearch, nlp, fasttext and layout extras are imported only when their backend is selected, so a service installs just the extras its configuration uses. layout (Docling and torch) is over 1 GB.

Load layered YAML config (base.yaml → {env}.yaml → secrets.yaml) under an env prefix of your own, and give your settings class the same env_prefix:

from techai_webutils.foundation.config import initialize_config

initialize_config("config", env_prefix="MYAPP")

Set a prefix: without one, config keys are exported under bare names (AWS_REGION, DEBUG) that collide with ambient variables, such as the service links Kubernetes injects (REDIS_PORT=tcp://…).

Metadata

Release files for techai-webutils 0.11.0

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

Source distribution (sdist)

Source distribution for techai-webutils 0.11.0
File Size Uploaded Provenance Actions
techai_webutils-0.11.0.tar.gz 621.2 kB Without provenance Details for techai_webutils-0.11.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for techai-webutils 0.11.0
File Interpreter ABI Platform Actions
techai_webutils-0.11.0-py3-none-any.whl Python 3 none any Details for techai_webutils-0.11.0-py3-none-any.whl

Total release size: 1.5 MB

Release files / techai_webutils-0.11.0.tar.gz

Download URL techai_webutils-0.11.0.tar.gz
Size 621.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2c08fcddbac4bc29853c83d9e3bb014d2255ae7357cd53c67cc6ec6e0c00f3f7
BLAKE2b-256 checksum
How to use checksums
b16044a09f71a4c8a455a14838bb9692d4164ece76a36b8a58eac4b8f9f9807a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / techai_webutils-0.11.0-py3-none-any.whl

Download URL techai_webutils-0.11.0-py3-none-any.whl
Size 887.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e62eeabbd050964cdc540ed3b7400b2c739a3ae80f1ef44290e2221c1de0fb06
BLAKE2b-256 checksum
How to use checksums
349b97df5a2202c02886148d6f369f7a3e52dc23ebd44d28010f4e33e3a01cf6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for techai-webutils 0.11.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.11.0 This release

2 release files No provenance

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