Skip to main content

Rust-accelerated utility functions for the ormar ORM

Project description

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)

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

Row Processing

  • extract_prefixed_columns(column_mappings, selected_columns, row, column_prefix, item) - Extract prefixed columns from a database row
  • prepare_model_to_save(new_kwargs, aliases_map, fields_to_keep) - Consolidate column alias translation and field filtering

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

ormar_utils-0.1.0-cp313-cp313-win_amd64.whl (246.4 kB view details)

Uploaded CPython 3.13Windows x86-64

ormar_utils-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (400.3 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

ormar_utils-0.1.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (384.5 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

ormar_utils-0.1.0-cp313-cp313-macosx_11_0_arm64.whl (349.5 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

ormar_utils-0.1.0-cp313-cp313-macosx_10_12_x86_64.whl (364.8 kB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

ormar_utils-0.1.0-cp312-cp312-win_amd64.whl (246.8 kB view details)

Uploaded CPython 3.12Windows x86-64

ormar_utils-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (401.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

ormar_utils-0.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (385.0 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

ormar_utils-0.1.0-cp312-cp312-macosx_11_0_arm64.whl (349.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

ormar_utils-0.1.0-cp312-cp312-macosx_10_12_x86_64.whl (365.4 kB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

ormar_utils-0.1.0-cp311-cp311-win_amd64.whl (254.1 kB view details)

Uploaded CPython 3.11Windows x86-64

ormar_utils-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (406.2 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

ormar_utils-0.1.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (389.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

ormar_utils-0.1.0-cp311-cp311-macosx_11_0_arm64.whl (353.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

ormar_utils-0.1.0-cp311-cp311-macosx_10_12_x86_64.whl (368.5 kB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

ormar_utils-0.1.0-cp310-cp310-win_amd64.whl (253.5 kB view details)

Uploaded CPython 3.10Windows x86-64

ormar_utils-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (405.7 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

ormar_utils-0.1.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (389.6 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

ormar_utils-0.1.0-cp310-cp310-macosx_11_0_arm64.whl (352.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

ormar_utils-0.1.0-cp310-cp310-macosx_10_12_x86_64.whl (368.5 kB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

File details

Details for the file ormar_utils-0.1.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: ormar_utils-0.1.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 246.4 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ormar_utils-0.1.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 4dd1ab340d75f98023dd97c9a8e4f83bf036515518e2f7d02991604a2c469b01
MD5 dbcde2fee5f620fe69b4a22e3948bba4
BLAKE2b-256 7ae43ea62ab83cae091dd49a5588248e5e87b60293ddcd6628ad32bcfeb738b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for ormar_utils-0.1.0-cp313-cp313-win_amd64.whl:

Publisher: ci.yml on collerek/ormar-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ormar_utils-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ormar_utils-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4b1c79c2652e7be17e0a579fad823f5cc16880d105ac96ae6131179114c57836
MD5 7f2495c99d2e375d586c97ab822c4b6d
BLAKE2b-256 87266b1d4e018d82c1ac09da89c6e5571a55b480c44f098fbbde89e71cbef081

See more details on using hashes here.

Provenance

The following attestation bundles were made for ormar_utils-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: ci.yml on collerek/ormar-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ormar_utils-0.1.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for ormar_utils-0.1.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 51266678bf9613c12ecf73d1d6c9e52d46a82e5a9e3b7f098dee0176d7d397c8
MD5 e21bcf42c261939f43cd54ae28b7b360
BLAKE2b-256 98cba4a03d99b6a7b481fb47dab29f0e0f1dca356e3381d114c86c7e14600ad2

See more details on using hashes here.

Provenance

The following attestation bundles were made for ormar_utils-0.1.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: ci.yml on collerek/ormar-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ormar_utils-0.1.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ormar_utils-0.1.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e5852c8f9892397e07897099cfcf0f1a3430395924371b1802a55c785eab7109
MD5 0a384a682a6c0d4db554426cf2cbde55
BLAKE2b-256 39a7b11b15eba8d896a2d217468715a98027cc89129f426fd66bff43aa8928eb

See more details on using hashes here.

Provenance

The following attestation bundles were made for ormar_utils-0.1.0-cp313-cp313-macosx_11_0_arm64.whl:

Publisher: ci.yml on collerek/ormar-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ormar_utils-0.1.0-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for ormar_utils-0.1.0-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 98c551cbccd840c2ce8df93aa0f402cd7ed55b4eb9e4236404734e89ddc6dba9
MD5 80eba2c37af0ecc53d8356057aeca70d
BLAKE2b-256 acf79d87aa25c69c0f0da1376d6285eeb29a4401b3d692a0929c5392dfde3419

See more details on using hashes here.

Provenance

The following attestation bundles were made for ormar_utils-0.1.0-cp313-cp313-macosx_10_12_x86_64.whl:

Publisher: ci.yml on collerek/ormar-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ormar_utils-0.1.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: ormar_utils-0.1.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 246.8 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ormar_utils-0.1.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5e30cd49075e952794b0d9491204af94a7370121a1a0f9460c7cf61de7cb8a38
MD5 e1b23388e92fed1634ef37aba5b593cf
BLAKE2b-256 815733454f2efb7e0e13abdda198495748c929b55cc27efbbc3ca60f5bb541d5

See more details on using hashes here.

Provenance

The following attestation bundles were made for ormar_utils-0.1.0-cp312-cp312-win_amd64.whl:

Publisher: ci.yml on collerek/ormar-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ormar_utils-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ormar_utils-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f3a5f651af0d1888d0c924c685afff94d3558a1670f9897df2c30f3d8dc88e32
MD5 583e13c238d8d96464d9bd93508477ec
BLAKE2b-256 db5b8e0d50101101ef73052bb63525a5ff58b6358051b4facdd918112fe663d6

See more details on using hashes here.

Provenance

The following attestation bundles were made for ormar_utils-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: ci.yml on collerek/ormar-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ormar_utils-0.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for ormar_utils-0.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 df350fc39912d79cac1e7c7a66e7ff110994fe573f551ea1f4a6b032f4855f50
MD5 dd3ec029e35afa129ceb0ac86659bae9
BLAKE2b-256 00560e19c007e23a70eab1c76f4ced1fdba41e04c22283ccba69c9a2e7660094

See more details on using hashes here.

Provenance

The following attestation bundles were made for ormar_utils-0.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: ci.yml on collerek/ormar-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ormar_utils-0.1.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ormar_utils-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7bad96df890c8ca70a89381b1d494afe1ff17a9e71cedeb76fb5d815e0eb0308
MD5 baad5b687484e55ed1b99d3f582c882c
BLAKE2b-256 15352923202432595130d2af43c7594b6af303a0715f2bb0586f6b886aaac83d

See more details on using hashes here.

Provenance

The following attestation bundles were made for ormar_utils-0.1.0-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: ci.yml on collerek/ormar-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ormar_utils-0.1.0-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for ormar_utils-0.1.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 3c870d71193dabc367d3a74abf5d732f07618f2c5f2386cd8df7ff6488aeffd8
MD5 2562cd1b45c9db594d14806893944ab4
BLAKE2b-256 3832b1b27cb1c740c1d648b8be45c1d658c7203a22a864a2a4d8d42aed043119

See more details on using hashes here.

Provenance

The following attestation bundles were made for ormar_utils-0.1.0-cp312-cp312-macosx_10_12_x86_64.whl:

Publisher: ci.yml on collerek/ormar-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ormar_utils-0.1.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: ormar_utils-0.1.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 254.1 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ormar_utils-0.1.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8877bc0aa59f1718538cce4c51eb927f7c939cfb1b38cc3b2c939a332ed0692f
MD5 e41599cdd1d1aa75b7a1334a53d8ac80
BLAKE2b-256 a238f092d607b26b761692cb6b8ca693a637f0e70b9b7b0b873a4ea6ae4d0970

See more details on using hashes here.

Provenance

The following attestation bundles were made for ormar_utils-0.1.0-cp311-cp311-win_amd64.whl:

Publisher: ci.yml on collerek/ormar-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ormar_utils-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ormar_utils-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 10e105d762c3145e8232bb44e3797e261ae8b6fac919d3d7e5c62c7b998e6a49
MD5 a5e7ef75d297a339c50b8db030ecc8b4
BLAKE2b-256 38c9a58ef23d0b7093b116d0268ab6d5b03c4609794a2512e258a07d782c6f79

See more details on using hashes here.

Provenance

The following attestation bundles were made for ormar_utils-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: ci.yml on collerek/ormar-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ormar_utils-0.1.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for ormar_utils-0.1.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 40b3348b6e60c9e4e51ae416908c857b7ad683420b2e93fcf2063dc99ebda18e
MD5 953389bcd822905129b7b657bfee656e
BLAKE2b-256 3906dc524660482edf768b0cd62143fa3f75acc5d3b3f5875e4a8f82b42d3bb1

See more details on using hashes here.

Provenance

The following attestation bundles were made for ormar_utils-0.1.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: ci.yml on collerek/ormar-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ormar_utils-0.1.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ormar_utils-0.1.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 73c48c7ff107b2d52686efbff5c1756a731688c7adea174b85230c0cac3bd37b
MD5 cd6756508bd9b3259a926010b569bb73
BLAKE2b-256 aee720c5e80594d15892608b982cc79d2d515b3fafa8919f668b164f046706f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for ormar_utils-0.1.0-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: ci.yml on collerek/ormar-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ormar_utils-0.1.0-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for ormar_utils-0.1.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 fb177355f29381936d414779c4e647ebc9f900ea8d57e84581eb03a05f45c9ed
MD5 af403022d3fcf81b0b56a927a7382f34
BLAKE2b-256 a5e593ab6e9073dce514ade47157994097317b362d207ab690cfb307f57d85cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for ormar_utils-0.1.0-cp311-cp311-macosx_10_12_x86_64.whl:

Publisher: ci.yml on collerek/ormar-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ormar_utils-0.1.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: ormar_utils-0.1.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 253.5 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ormar_utils-0.1.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4e4c94c3390887aa7f3a33d8c664e53db6acf9d6e9ab479d7450556880710da0
MD5 e52f6656323847fc998695853f2f2c8f
BLAKE2b-256 b1c91bab2cc41c961dfad7eaa203b6f30f9f888226eddabfb8c63a8e1b2c08f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for ormar_utils-0.1.0-cp310-cp310-win_amd64.whl:

Publisher: ci.yml on collerek/ormar-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ormar_utils-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ormar_utils-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5010a52eddc067f5f0c5e060ee24d1a910e1f48f46b34c722c28af7a95b51fb6
MD5 477efa8ef8ef063fa1563373aa999d06
BLAKE2b-256 7fc40eccf1aa234d9c02a0f08c9f9e320532ed26de9138c625cc5653d89b530d

See more details on using hashes here.

Provenance

The following attestation bundles were made for ormar_utils-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: ci.yml on collerek/ormar-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ormar_utils-0.1.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for ormar_utils-0.1.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5738a89fdb0a547986129ef0091508417a1dbb87b272b2eebb47301b27846f9d
MD5 bc8bad118a9c055f968a3b5f2c8a72ac
BLAKE2b-256 e7e17c757178b44ea414c719c325969ba94eca4bf0b97194f3f7a77a348cd40a

See more details on using hashes here.

Provenance

The following attestation bundles were made for ormar_utils-0.1.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: ci.yml on collerek/ormar-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ormar_utils-0.1.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ormar_utils-0.1.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 72edeb7ba533f27a13d4037d4aab0e9ef94b38a705eda587f50e3defd7127966
MD5 e310a2335ef3ab8a753be38331711c82
BLAKE2b-256 27aa3bfc26077afe9f0c75e6cb543e2df69ab28913616658d48147297718ddc2

See more details on using hashes here.

Provenance

The following attestation bundles were made for ormar_utils-0.1.0-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: ci.yml on collerek/ormar-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ormar_utils-0.1.0-cp310-cp310-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for ormar_utils-0.1.0-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 dd0997bbbf689e55f92d33dccfece13026f6c4a85876c61f1bf66c950e1c45cc
MD5 dcaf9be3c0765188a660f062ba037ae6
BLAKE2b-256 daf43e85ae30889cc43ff8f1f71fe850ac1427db9c992163b4835666f65a82d9

See more details on using hashes here.

Provenance

The following attestation bundles were made for ormar_utils-0.1.0-cp310-cp310-macosx_10_12_x86_64.whl:

Publisher: ci.yml on collerek/ormar-utils

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page