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

Release files for ormar-utils 0.2.1

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.1
File Size Uploaded
ormar_utils-0.2.1.tar.gz 13.4 kB Details

Built distributions (wheels)

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

Total release size: 2.9 MB

Release files / ormar_utils-0.2.1.tar.gz

Download URL ormar_utils-0.2.1.tar.gz
Size 13.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7f7e29d3725b3b5b6166c7ddeb69c25cda374593adca0bb3d1951747f7f33489
BLAKE2b-256 checksum
How to use checksums
817472ed12ff2da8daeb0a2dfb3b7a4cb622b28adad5b52081c8605d7511952f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 17, 2026.

Transparency log

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

Download URL ormar_utils-0.2.1-cp310-abi3-win_amd64.whl
Size 244.6 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
fb4ad6e2bd103786a1c8266d4b383880371852ec79e4637c1773cb7edbc0ea3b
BLAKE2b-256 checksum
How to use checksums
2982f69fd0080cd5e332159d933c3e6e63c4e105eb44d05843b4f04447f73e03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 17, 2026.

Transparency log

Release files / ormar_utils-0.2.1-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL ormar_utils-0.2.1-cp310-abi3-musllinux_1_2_x86_64.whl
Size 594.0 kB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
203d0364d59a034756c10d4e6393ddda16a2909290c5c12f38bebf7082da2d46
BLAKE2b-256 checksum
How to use checksums
af8645acb2f124f2f2f8ef126f79f36388d607102dc6be200a83cda8d1564a55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 17, 2026.

Transparency log

Release files / ormar_utils-0.2.1-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL ormar_utils-0.2.1-cp310-abi3-musllinux_1_2_aarch64.whl
Size 553.4 kB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
44b3715d440c611db24a6a3f0f182e5a5cff453e5c753a9ad47358616b3e6900
BLAKE2b-256 checksum
How to use checksums
58e70a11dc43c5522d8e7080ec048917b9509d8fbb325fc8b59573bcbf65670d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 17, 2026.

Transparency log

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

Download URL ormar_utils-0.2.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 387.4 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
307e1aa3e0e0340b86d7c11fe53dc0ec4f94fd05cbb775e1d552ae8c273793ec
BLAKE2b-256 checksum
How to use checksums
c292e6d671561083eb11f657b2ad4e943513a7ded31388bc7c1b31f9d5235fb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 17, 2026.

Transparency log

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

Download URL ormar_utils-0.2.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 376.1 kB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
1a22786fd450ff101bbec943aae12b3f5f86e729986d8e36370e9200d69286a7
BLAKE2b-256 checksum
How to use checksums
ff20ecafeea8d22e2f9b41af076fe5b44af241b0bb649a030582f6c92d436ddf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 17, 2026.

Transparency log

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

Download URL ormar_utils-0.2.1-cp310-abi3-macosx_11_0_arm64.whl
Size 339.8 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
4ef4b7426565c283b657004eb3ca1745c38fb8df4c8b015fa44ed72996419727
BLAKE2b-256 checksum
How to use checksums
e1cae72d78097d3688466567393f8e4b985c3f63d3e738d9b56f3b2b759bb7e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 17, 2026.

Transparency log

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

Download URL ormar_utils-0.2.1-cp310-abi3-macosx_10_12_x86_64.whl
Size 352.5 kB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
6c8b9ab43393f9988b358146969ed3143a8bef1dfa6c4f934e78c7bf12401fe9
BLAKE2b-256 checksum
How to use checksums
9afcf6897ef56b6d584651da77269f016e897dc1c96001aaf3da8c79084f9bb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 17, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.1 This release

8 release files

0.2.0

6 release files

0.1.0

20 release files

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