Skip to main content

Overview

Core utilities and foundational code. It's relatively large but completely self-contained, and has no required dependencies of any kind.

Notable packages

  • lang - The standard library of this standard library. Usually imported as a whole (from omcore import lang), it contains an array of general purpose utilities used practically everywhere. It is kept relatively lightweight: its heaviest import is stdlib dataclasses and its transitives. Some of its contents include:

    • cached - The standard cached_function / cached_property tools, which are more capable than functools.lru_cache.
    • imports - Import tools like:
      • proxy_import - For late-loaded imports.
      • proxy_init - For late-loaded module globals.
      • auto_proxy_init - For automatic late-loaded package exports.
    • classes - Class tools and bases, such as Abstract (which checks at subclass definition not instantiation), Sealed / PackageSealed, and Final.
    • maybes - A simple, nestable formalization of the presence or absence of an object, as in many other languages.
  • bootstrap - A centralized, configurable, all-in-one collection of various process-initialization minutiae like resource limiting, profiling, remote debugging, log configuration, environment variables, et cetera. Usable as a context manager or via its cli.

  • collections - A handful of collection utilities and simple implementations, including:

    • cache - A configurable LRU / LFU cache with options like ttl and max size / weight.
    • hasheq - A dict taking an external __hash__ / __eq__ implementation.
    • identity - Identity-keyed collections.
    • sorted - Interfaces for value-sorted collections and key-sorted mappings, and a simple but correct skiplist-backed implementation.
    • persistent - Interfaces for persistent maps, and a simple but correct treap-backed implementation.
  • dataclasses - A fully-compatible reimplementation of stdlib dataclasses with numerous enhancements and additional features. The full stdlib test suite is run against it ensuring compatibility - they are dataclasses. Current enhancements include:

    • Simple field coercion and validation.
    • Any number of @dc.init or @dc.validate methods, not just a central __post_init__.
    • Optional generic type parameter substitution in generated __init__ methods, enabling accurate reflection.
    • An optional metaclass which removes the need for re-decorating subclasses (with support for inheritance of dataclass parameters like frozen), and some basic base classes.
    • Support for ahead-of-time / build-time code generation, significantly reducing import times.

    The stdlib-equivalent api is exported in such a way as to appear to be direct aliases for the stdlib api itself, simplifying tool support.

  • dispatch - A beefed-up version of functools.singledispatch, most notably supporting MRO-honoring method impl dispatch.

  • formats - Tools for various data formats, including:

    • json - Tools for json, including abstraction over various backends and a self-contained streaming / incremental parser.
    • json5 - A self-contained and tested Json5 parser.
    • toml - Toml tools, including a lite version of the stdlib parser (for use in older pythons).
    • goyaml - A manual, near-direct, 'lite'-compatible translation of go-yaml.
  • http - HTTP code, including:

    • clients - An abstraction over HTTP clients, with urllib and httpx implementations.
  • inject - A guice-style dependency injector.

  • io - IO tools, including:

  • jmespath - A vendoring of jmespath community edition, modernized and adapted to this codebase.

  • marshal - A jackson-style serde system.

  • manifests - A system for sharing lightweight metadata within / across codebases.

  • reflect - Reflection utilities, including primarily a formalization of stdlib type annotations for use at runtime, decoupled from stdlib impl detail. Keeping this working is notoriously difficult across python versions (one of the primary reasons for only supporting 3.14+).

  • sql - A collection of SQL utilities, including:

    • api - An abstracted api for SQL interaction, with support for dbapi compatible drivers (and a SQLAlchemy adapter).
    • queries - A SQL query builder with a fluent interface.
    • alchemy - SQLAlchemy utilities. The codebase has moved away from SQLAlchemy in favor of its own internal SQL api, but it will likely still remain as an optional dep for the api adapter.
  • testing - Test - primarily pytest - helpers, including:

    • 'harness' - An all-in-one fixture marrying it to the codebase's dependency injector.
    • plugins/async - An in-house async-backend abstraction plugin, capable of handling all of asyncio / trio / trio-asyncio / any-future-event-loop-impl without having multiple fighting plugins (I know, I know).
    • plugins - Various other plugins.
  • typedvalues - A little toolkit around 'boxed' values, whose 'box' types convey more information than the bare values themselves. A rebellion against kwargs / env vars / giant config objects: instead of foo(bar=1, baz=2), you do foo(Bar(1), Baz(2)).

  • lite - The standard library of 'lite' code. This is the only package beneath lang, and parts of it are re-exported by it for deduplication. On top of miscellaneous utilities it contains a handful of independent, self-contained, significantly simplified 'lite' equivalents of some major core packages:

    • lite/inject.py - The lite injector, which is more conservative with features and reflection than the core injector. The codebase's MiniGuice.
    • lite/marshal.py - The lite marshalling system, which is a classic canned setup of simple type-specific 2-method classes and limited generic handling.

Lite code

A subset of this codebase is written in a 'lite' style (non-'lite' code is referred to as standard code). While standard code is written for python 3.14+, 'lite' code is written for 3.8+, and is written in a style conducive to amalgamation in which multiple python source files are stitched together into one single self-contained python script.

Code written in this style has notable differences from standard code, including (but not limited to):

  • No name mangling is done in amalgamation, which means (among other things) that code must be written expecting to be all dumped into the same giant namespace. Where a standard class might be omcore.inject.keys.Key, a lite equivalent might be omcore.lite.inject.InjectorKey.
  • All internal imports import each individual item out of modules rather than importing the modules and referencing their contents. Where standard code would from .. import x; x.y, lite code would from ..x import y; y. As a result there are frequently 'api' non-instantiated namespace classes serving the purpose of modules - just handy bags of stuff with shortened names.
  • As lite code is tested in 3.8+ but core code requires 3.14+, packages containing lite code can't import anything standard in their (and their ancestors') __init__.py's. Furthermore, __init__.py files are omitted outright in amalgamation, so they effectively must be empty in any package containing any lite code. As a result there are frequently all.py files in mixed-lite packages which serve the purpose of __init__.py for standard usage - where importing standard packages from standard code would be done via from .. import lang, importing mixed-lite packages from standard code would be done via from ..configs import all as cfgs.

Dependencies

This library has no required dependencies of any kind, but there are some optional integrations - see __about__.py for a full list, but some specific examples are:

  • asttokens / executing - For getting runtime source representations of function call arguments, an optional capability of check.
  • pytest - What is used for all standard testing - as lite code has no dependencies of any kind its testing uses stdlib's unittest.
  • anyio - While lite code must use only asyncio, some async standard code sometimes is written to anyio.
  • sqlalchemy - The codebase has migrated away from SQLAlchemy in favor of the internal api but it retains it as an optional dep to support adapting the internal api to it.

Additionally, some catchall dep categories include:

  • compression - Various preferred compression backends like lz4, python-snappy, and brotli.
  • formats - Various preferred data format backends like orjson/ujson, pyyaml, cbor2, and cloudpickle.
  • sql drivers - Various preferred and tested sql drivers.

Metadata

Release files for omcore-cext 0.0.70

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

Source distribution (sdist)

Source distribution for omcore-cext 0.0.70
File Size Uploaded Provenance Actions
omcore_cext-0.0.70.tar.gz 613.9 kB Without provenance Details for omcore_cext-0.0.70.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for omcore-cext 0.0.70
File Actions
omcore_cext-0.0.70-cp314-cp314t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ x86-64, Linux glibc 2.24+ x86-64 Details for omcore_cext-0.0.70-cp314-cp314t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
omcore_cext-0.0.70-cp314-cp314t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.24+ ARM64, Linux glibc 2.28+ ARM64 Details for omcore_cext-0.0.70-cp314-cp314t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
omcore_cext-0.0.70-cp314-cp314t-macosx_26_0_arm64.whl CPython 3.14 CPython 3.14 free-threading macOS 26.0+ ARM64 Details for omcore_cext-0.0.70-cp314-cp314t-macosx_26_0_arm64.whl
omcore_cext-0.0.70-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64, Linux glibc 2.24+ x86-64 Details for omcore_cext-0.0.70-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
omcore_cext-0.0.70-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ ARM64, Linux glibc 2.24+ ARM64 Details for omcore_cext-0.0.70-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
omcore_cext-0.0.70-cp314-cp314-macosx_26_0_arm64.whl CPython 3.14 CPython 3.14 macOS 26.0+ ARM64 Details for omcore_cext-0.0.70-cp314-cp314-macosx_26_0_arm64.whl

Total release size: 6.5 MB

Release files / omcore_cext-0.0.70.tar.gz

Download URL omcore_cext-0.0.70.tar.gz
Size 613.9 kB
Tags Source
SHA-256 checksum
How to use checksums
7ca7d2ff0359ed00a6200189c7e3c92c85dbb2de17a8c4b2fc323ccc8a417d95
BLAKE2b-256 checksum
How to use checksums
61744e5651abea65911db0275e4c1c8f52c4e464859cfdf5a86fb20edb07f598
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Release files / omcore_cext-0.0.70-cp314-cp314t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL omcore_cext-0.0.70-cp314-cp314t-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 1.3 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
1c845915a2f0e2802e9eb9b9a27a0022bb4b2fec9b5af5d9c39f46b956d5863a
BLAKE2b-256 checksum
How to use checksums
af9e1f37afac8352a20d55429a8ad09e929ba9217a888645bb1c0f081f77a3ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Release files / omcore_cext-0.0.70-cp314-cp314t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl

Download URL omcore_cext-0.0.70-cp314-cp314t-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Size 1.3 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.24+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
23a5f684e0403d2e94b2db46f92c5c6db3065f64f98c3d75a971db9eb8daad69
BLAKE2b-256 checksum
How to use checksums
96d7c04e99d29ffe44e992c8a2a8f657b3bb604fa851471a149560a8a93b228a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Release files / omcore_cext-0.0.70-cp314-cp314t-macosx_26_0_arm64.whl

Download URL omcore_cext-0.0.70-cp314-cp314t-macosx_26_0_arm64.whl
Size 517.9 kB
Tags CPython 3.14 CPython 3.14 free-threading macOS 26.0+ ARM64
SHA-256 checksum
How to use checksums
dc0d4c487277f2cfada221b50fc62e140c560e95e03ce01c4fb993b3aee76a55
BLAKE2b-256 checksum
How to use checksums
947e16ac8036f0d270d3b0a93e513ebd579424f33103d510d794dedebee7265d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Release files / omcore_cext-0.0.70-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL omcore_cext-0.0.70-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 1.2 MB
Tags CPython 3.14 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
2d9f7614ad172d1ce9756c4b064cc17e75139a76f7e63049a54f2334729ebd25
BLAKE2b-256 checksum
How to use checksums
fbc2911e9806c91efaee6a41e3635c6978c1bb85a1f7b6cd882837778db0a9fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Release files / omcore_cext-0.0.70-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl

Download URL omcore_cext-0.0.70-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Size 1.2 MB
Tags CPython 3.14 Linux glibc 2.24+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
d31edd1c56673dd179db7b3eeac8c835fc47f7dcbca4be68ac62cf6f42a3f347
BLAKE2b-256 checksum
How to use checksums
603d4a37bc0c16d68f8ecfce4df5c15ed10442e1afa8a0b7e04ec70f37f0fb93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Release files / omcore_cext-0.0.70-cp314-cp314-macosx_26_0_arm64.whl

Download URL omcore_cext-0.0.70-cp314-cp314-macosx_26_0_arm64.whl
Size 509.4 kB
Tags CPython 3.14 macOS 26.0+ ARM64
SHA-256 checksum
How to use checksums
6ab655049e50993f36fc2459ceb6106510594244fafef2008fb3572fa8ef73d8
BLAKE2b-256 checksum
How to use checksums
8bb8198736bad50af7659840eded8ae81de73392bd88b926cb1da1b0deccca09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Security for omcore-cext 0.0.70

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.0.70 This release

7 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