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.1-cp313-cp313-win_amd64.whl (252.8 kB view details)

Uploaded CPython 3.13Windows x86-64

ormar_utils-0.1.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (400.8 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

ormar_utils-0.1.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (387.0 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ ARM64

ormar_utils-0.1.1-cp313-cp313-macosx_11_0_arm64.whl (354.1 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

ormar_utils-0.1.1-cp313-cp313-macosx_10_12_x86_64.whl (370.4 kB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

ormar_utils-0.1.1-cp312-cp312-win_amd64.whl (253.3 kB view details)

Uploaded CPython 3.12Windows x86-64

ormar_utils-0.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (401.2 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

ormar_utils-0.1.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (387.9 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ ARM64

ormar_utils-0.1.1-cp312-cp312-macosx_11_0_arm64.whl (354.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

ormar_utils-0.1.1-cp312-cp312-macosx_10_12_x86_64.whl (370.9 kB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

ormar_utils-0.1.1-cp311-cp311-win_amd64.whl (257.2 kB view details)

Uploaded CPython 3.11Windows x86-64

ormar_utils-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (407.8 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

ormar_utils-0.1.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (391.7 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ ARM64

ormar_utils-0.1.1-cp311-cp311-macosx_11_0_arm64.whl (360.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

ormar_utils-0.1.1-cp311-cp311-macosx_10_12_x86_64.whl (377.0 kB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

ormar_utils-0.1.1-cp310-cp310-win_amd64.whl (257.1 kB view details)

Uploaded CPython 3.10Windows x86-64

ormar_utils-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (407.4 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

ormar_utils-0.1.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (391.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

ormar_utils-0.1.1-cp310-cp310-macosx_11_0_arm64.whl (360.0 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

ormar_utils-0.1.1-cp310-cp310-macosx_10_12_x86_64.whl (374.2 kB view details)

Uploaded CPython 3.10macOS 10.12+ x86-64

File details

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

File metadata

File hashes

Hashes for ormar_utils-0.1.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 405ed56e66cff421f293509d3e0a86af7da88663420a2d3ea5719e755421bb2a
MD5 e90cafd2cd2d09a990bddd3528c52b64
BLAKE2b-256 e41a549e6020b7356d321c4c67f701d5b7b471cb5475cdd98dbbf7b95a656eed

See more details on using hashes here.

Provenance

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

Publisher: ci.yml on ormar-orm/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.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ormar_utils-0.1.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b5bd489da692e9b94f27a577acf30465b30e94932f01f2745830cb94b1b413ce
MD5 ea1634c91b1783aef5665c5adb6eb1d3
BLAKE2b-256 61e9333749e116114867e8a46729e48a84a2d0073278d24d69c71250a428d9f9

See more details on using hashes here.

Provenance

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

Publisher: ci.yml on ormar-orm/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.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for ormar_utils-0.1.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fae770725f88168f8dcecfafaca27375397a62a97776c2818b5a99c6d4baeb8d
MD5 35d99cff65e585436280b2a87844503c
BLAKE2b-256 e92237685ccb4e6b5d4ae284d020534e1932cbd6395e372b9a54b53630a10009

See more details on using hashes here.

Provenance

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

Publisher: ci.yml on ormar-orm/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.1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ormar_utils-0.1.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4892b801969cbb402748a12920b8c285707fdb2540fe423b6c96bcbd6004aa98
MD5 b76aa85b34093ea683ab42d345169672
BLAKE2b-256 6434c7aa0c9f0f906aa1db95bf004672319da2c1b66893ffdd2a0124aa463783

See more details on using hashes here.

Provenance

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

Publisher: ci.yml on ormar-orm/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.1-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for ormar_utils-0.1.1-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 f8635e83857b85e2521db8cf55c1c659169912713632b9bc8f7cb617df3235df
MD5 083b50e864d3a4edec80e043d4005b47
BLAKE2b-256 2bde6c5ce7e7e5b792188aef1b20c75835ecb83c54fbd46808f150bc723b2b88

See more details on using hashes here.

Provenance

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

Publisher: ci.yml on ormar-orm/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.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for ormar_utils-0.1.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a803c9f3b314eb54220bace76f7c49d091f305bba2fa591c19eead33ef5b1741
MD5 f33ff8e36be5a0821da22543028ee7cb
BLAKE2b-256 058bbc4e069880f1541a277b69d8aca1db1a4df8fd649d704a3d14e667c65989

See more details on using hashes here.

Provenance

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

Publisher: ci.yml on ormar-orm/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.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ormar_utils-0.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 da04622f42cc33dd88a94f21dda0f04ff7ff0773e3e3a176ef8d9bad5e60a1c1
MD5 f5272b1a7fa095b0643ee12282b8e30a
BLAKE2b-256 43525707fa732a24b2c0242da81f69761e2e6cfedcff82b20d0266ef0e745f33

See more details on using hashes here.

Provenance

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

Publisher: ci.yml on ormar-orm/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.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for ormar_utils-0.1.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 b69e0a1903c1eb8c63f284eec96aa550e44a417d79e673254b83d73b290c4c60
MD5 c6aaa51fbeb3b26a3aae1d4f4dde507a
BLAKE2b-256 eb367866916bd3a01c8285e9a0a79c7966dd4d7ecce829d44ce9b827e95d3965

See more details on using hashes here.

Provenance

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

Publisher: ci.yml on ormar-orm/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.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ormar_utils-0.1.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2736d32eeeb403f7883a4ffcc67b716e492ef38940d9ca42b9be7f1c958a458a
MD5 9a91f59fedf71832e3231476372c7487
BLAKE2b-256 77f1e7163ff6e98ab1019f8bedcfdc7552fe84df064bc83463e4b97b06f60256

See more details on using hashes here.

Provenance

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

Publisher: ci.yml on ormar-orm/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.1-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for ormar_utils-0.1.1-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 85e83277179776bd8d4915ce4a5e30e68054be22f3d4e4428e2f0a5515b113e1
MD5 ae416042e0df7f4d722c6f1343205922
BLAKE2b-256 3e94176908ba964fc211c9759d6aa2478b245ec980829453f125096011127a71

See more details on using hashes here.

Provenance

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

Publisher: ci.yml on ormar-orm/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.1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for ormar_utils-0.1.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d1cec4877a86d7f654d795f3f49bb4f8d81843032dc05f5a741ce471672f5c5d
MD5 9cbc2625dc759515781fa611fae22380
BLAKE2b-256 a986af4a27b4c864edd921eb283e3c80aa61928ad0621e96b73d6bbb54d18061

See more details on using hashes here.

Provenance

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

Publisher: ci.yml on ormar-orm/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.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ormar_utils-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 530c46dcfcfb26067abd6e148b2c2337cfcefa1945cbffcae8a8b73ee816a101
MD5 6d1f526a84ee57389b49bc1b49840f37
BLAKE2b-256 64e11bab17843fc6a592fca0b34755fc3d5c58cc2a124c4b4d9ebbffe3de290a

See more details on using hashes here.

Provenance

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

Publisher: ci.yml on ormar-orm/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.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for ormar_utils-0.1.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9b510c48557a1809e53a851b7acee4bac8fb7adac12ce738d3911b6ed85dc7bb
MD5 86400d1aed3dad90edabe67578e295b5
BLAKE2b-256 45ab9d794aaeb8eceb9184658119b1925b42cadf5b01f74cb5bc3d160711bc43

See more details on using hashes here.

Provenance

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

Publisher: ci.yml on ormar-orm/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.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ormar_utils-0.1.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 047f5e113e3adb68e4dc7d3915d999ed44a3e6914a5a0a8162cfc0f1bcc24a24
MD5 a7b249108700b7ae4d5e59099173743a
BLAKE2b-256 76797cdc5e7ee3f8518e1f800e86d100fc5b363e61f7e44e030cca4a1478089d

See more details on using hashes here.

Provenance

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

Publisher: ci.yml on ormar-orm/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.1-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for ormar_utils-0.1.1-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a5468770de8d01b36702fe96aa553efb30da46313304b97d113871519d4fec5b
MD5 3b777cf0769f5dc62b36dd7e9e9cf6a2
BLAKE2b-256 f5e2c58e5b3b2d228a2d21147a6646b7a3011e10fb996a9b056729ba33f6483a

See more details on using hashes here.

Provenance

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

Publisher: ci.yml on ormar-orm/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.1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for ormar_utils-0.1.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3e316b727853f0d722663e8af74aca8f9572f8340a76694ebd8a377fc6d6bfbe
MD5 48f6ea329f0ddba75a750dd2e2cefce3
BLAKE2b-256 cb4d0c871f149dc6e13ea38d70b90c9871b44dbae6c53a51621cde93e496e559

See more details on using hashes here.

Provenance

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

Publisher: ci.yml on ormar-orm/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.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ormar_utils-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 77bcfffbef6f81a61192290834b2b80fbfeaa64242a8fbcdefe00051b9f5e70d
MD5 1bb968f74c01a8e78abd158ca047d553
BLAKE2b-256 6c276b0a0b064b639f6179d2b5604e9ed22be468a4b732c948152805238da411

See more details on using hashes here.

Provenance

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

Publisher: ci.yml on ormar-orm/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.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for ormar_utils-0.1.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 522f6fe1f68f4cd90a77a0851e2bcffbd7d473cb5eb492f53a79ecd249b4a95a
MD5 6b66a52094b08a70ec33da51e32788c4
BLAKE2b-256 577515d008f88a45c635beef156bbcea64e007064ef268efd525a7b061f61ce2

See more details on using hashes here.

Provenance

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

Publisher: ci.yml on ormar-orm/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.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ormar_utils-0.1.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1f80e577d840ae0f2e6455b84e6e6e6351a776a514af8b6ff1f809f24a71f432
MD5 70820125d70e925c950c65f030948723
BLAKE2b-256 3f209e96a028b41d6655a8d307fc36e8ed2edb6aa7245cd7d4ddc100ec7cd75e

See more details on using hashes here.

Provenance

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

Publisher: ci.yml on ormar-orm/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.1-cp310-cp310-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for ormar_utils-0.1.1-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e1abb5494942a937c317aac909979c422aac745c58121042216ba4163f22ef47
MD5 e8f9dfbae15fdac99e073d1824d5b681
BLAKE2b-256 02e2c6a9c1dad0d600a6aab06d7590405d0bcb1032e4f40a4afdb7e29a4fe35f

See more details on using hashes here.

Provenance

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

Publisher: ci.yml on ormar-orm/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