Skip to main content

ormar-utils

Rust-accelerated utility functions for the ormar async ORM.

This package provides optional Rust implementations of performance-critical operations used internally by ormar. When installed, ormar automatically uses these faster implementations.

Installation

pip install ormar-utils

Or install ormar with the rust extra:

pip install ormar[rust]

Requirements

  • Python >= 3.10
  • A Rust toolchain (for building from source)

Wheels are built against the CPython stable ABI (abi3, Python 3.10+), so a single wheel per platform works on current and future Python releases without a per-version rebuild.

API Reference

All functions are exposed from the ormar_rust_utils module:

Parsers

  • encode_bytes(value, represent_as_string=False) - Encode bytes to string (UTF-8 or base64)
  • decode_bytes(value, represent_as_string=False) - Decode string to bytes (UTF-8 or base64)
  • encode_json(value) - Encode a value to JSON string

Hashing

  • hash_item(item) - Convert a dict/list into a hashable tuple for use as dict key

List/Dict Utilities

  • translate_list_to_dict(list_to_trans, default=None) - Split __-separated strings into nested dict
  • group_related_list(list_) - Group related strings into nested dictionary

Collections

  • UniqueList(initial=None) - A list that prevents duplicates using hash-based O(1) lookups

Alias Utilities

  • build_reverse_alias_map(field_alias_map) - Build a cached alias -> field_name lookup (with identity entries) from a field_name -> alias mapping

Merge Infrastructure

  • group_by_pk(pks) - Group items by PK hash, preserving insertion order
  • plan_merge_items_lists(current_pks, other_pks) - Create a merge plan for two lists by PK

License

MIT

Metadata

Release files for ormar-utils 0.2.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 ormar-utils 0.2.0
File Size Uploaded Provenance Actions
ormar_utils-0.2.0.tar.gz 12.8 kB With provenance Details for ormar_utils-0.2.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for ormar-utils 0.2.0
File Actions
ormar_utils-0.2.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for ormar_utils-0.2.0-cp310-abi3-win_amd64.whl
ormar_utils-0.2.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details for ormar_utils-0.2.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
ormar_utils-0.2.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details for ormar_utils-0.2.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
ormar_utils-0.2.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for ormar_utils-0.2.0-cp310-abi3-macosx_11_0_arm64.whl
ormar_utils-0.2.0-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for ormar_utils-0.2.0-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 1.7 MB

Release files / ormar_utils-0.2.0.tar.gz

Download URL ormar_utils-0.2.0.tar.gz
Size 12.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e2bf1ff71fbb820cac192b33583d58fac29e838a79804995336ef2bee02cc9ae
BLAKE2b-256 checksum
How to use checksums
d7056740934d404ae97a1f7f71cef0c9087d05ff5d7eecd96abf72ac4c06aad5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 8, 2026.

Transparency log

Release files / ormar_utils-0.2.0-cp310-abi3-win_amd64.whl

Download URL ormar_utils-0.2.0-cp310-abi3-win_amd64.whl
Size 243.9 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
122c7dd9f2eb52342be4862beda0737f98e7813c01751793f0fa53715f5b3959
BLAKE2b-256 checksum
How to use checksums
98d442117e9b363bc37587da3ec9719d98892c4491e5ffe39aeee752a4b2b699
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 8, 2026.

Transparency log

Release files / ormar_utils-0.2.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL ormar_utils-0.2.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 390.8 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
55c7ec5e002b0cc5394830c2b8c109a5b492d518fc95367dcf6b1da57c8510e4
BLAKE2b-256 checksum
How to use checksums
b7b0808ca044841247e84812c00e527549165843b83cd1a333ddf123ec281436
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 8, 2026.

Transparency log

Release files / ormar_utils-0.2.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL ormar_utils-0.2.0-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 379.9 kB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
f93299eda3e3a72fdbf5ff4ce8c82ff801247bba616debc52dbb48915480d3ce
BLAKE2b-256 checksum
How to use checksums
4fac1883199df7be823572d3ac27e55208a721df1b123e1b94b558028d44c2ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 8, 2026.

Transparency log

Release files / ormar_utils-0.2.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL ormar_utils-0.2.0-cp310-abi3-macosx_11_0_arm64.whl
Size 344.2 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
40f3d45737017309cea3c62569394cc56e4c1558f9926f1dded580eeb6f730bb
BLAKE2b-256 checksum
How to use checksums
5951bf0573addc403aeb971623594dedb2826b5fa7e83b3b32fb2682500afebc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 8, 2026.

Transparency log

Release files / ormar_utils-0.2.0-cp310-abi3-macosx_10_12_x86_64.whl

Download URL ormar_utils-0.2.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 355.6 kB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
e164f5d3636a660cec8df91cc1a0e2159bbb429f55d990272c096b1eef9d6c59
BLAKE2b-256 checksum
How to use checksums
fd751b060d1e78a20ebb86a9de5b584e9c7fd19ab59c2bd4108f4c89b8947466
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 8, 2026.

Transparency log

Security for ormar-utils 0.2.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.

Full provenance

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

Select from 6 files

Attestation for ormar_utils-0.2.0.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 Jun 8, 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