Skip to main content

Cython-optimized binary key codec for Virtuals.

Project description

virtuals-binary-codec

Cython-optimized binary key codec for Virtuals.

Encodes tuple keys into binary format while preserving lexicographic ordering. Supports mixed integer and string components.

Install

pip install virtuals-binary-codec

Or as part of Virtuals:

pip install virtuals-py[binary]

Usage

from virtuals_binary_codec import BinaryKeyCodec

codec = BinaryKeyCodec()
encoded = codec.encode(("users", 42, "profile"))
decoded = codec.decode(encoded)
assert decoded == ("users", 42, "profile")

Virtuals automatically uses this codec when installed. Without it, Virtuals falls back to a pure Python implementation.

Project details


Download files

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

Source Distribution

virtuals_binary_codec-0.1.0.tar.gz (11.9 kB view details)

Uploaded Source

Built Distributions

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

virtuals_binary_codec-0.1.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (260.4 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

virtuals_binary_codec-0.1.0-cp314-cp314-macosx_11_0_arm64.whl (49.8 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

virtuals_binary_codec-0.1.0-cp314-cp314-macosx_10_15_x86_64.whl (49.5 kB view details)

Uploaded CPython 3.14macOS 10.15+ x86-64

virtuals_binary_codec-0.1.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (262.4 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

virtuals_binary_codec-0.1.0-cp313-cp313-macosx_11_0_arm64.whl (49.3 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

virtuals_binary_codec-0.1.0-cp313-cp313-macosx_10_13_x86_64.whl (49.3 kB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

virtuals_binary_codec-0.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (280.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

virtuals_binary_codec-0.1.0-cp312-cp312-macosx_11_0_arm64.whl (49.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

virtuals_binary_codec-0.1.0-cp312-cp312-macosx_10_13_x86_64.whl (49.8 kB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

virtuals_binary_codec-0.1.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (266.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

virtuals_binary_codec-0.1.0-cp311-cp311-macosx_11_0_arm64.whl (50.2 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

virtuals_binary_codec-0.1.0-cp311-cp311-macosx_10_9_x86_64.whl (50.1 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

virtuals_binary_codec-0.1.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (245.3 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

virtuals_binary_codec-0.1.0-cp310-cp310-macosx_11_0_arm64.whl (50.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

virtuals_binary_codec-0.1.0-cp310-cp310-macosx_10_9_x86_64.whl (50.2 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

File details

Details for the file virtuals_binary_codec-0.1.0.tar.gz.

File metadata

  • Download URL: virtuals_binary_codec-0.1.0.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for virtuals_binary_codec-0.1.0.tar.gz
Algorithm Hash digest
SHA256 32d3607a0c028139291a893700a0baaf4322d4961d58bf806df59f52c4d796d0
MD5 f674e2e87c6ea3227a97ba459768e802
BLAKE2b-256 4c24ed649de489e662f3ae678d1c36989f6716e4c0d6f7564cf80b99a6388046

See more details on using hashes here.

Provenance

The following attestation bundles were made for virtuals_binary_codec-0.1.0.tar.gz:

Publisher: publish-codec.yml on nustackdev/virtuals

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

File details

Details for the file virtuals_binary_codec-0.1.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for virtuals_binary_codec-0.1.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f625c9fe20564bf62c97d84c6d76c0e66766b2cbc2351392df8568c18074a67f
MD5 367529ec996eb256a506c026e353a936
BLAKE2b-256 00761ea7b55554c277eecdfc6003f8d899131715c94350e59afad3c7e8982a9d

See more details on using hashes here.

Provenance

The following attestation bundles were made for virtuals_binary_codec-0.1.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl:

Publisher: publish-codec.yml on nustackdev/virtuals

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

File details

Details for the file virtuals_binary_codec-0.1.0-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for virtuals_binary_codec-0.1.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d501b12dc8bd8c6d00611073864368312a34086d64a2de2717bc79d46e16ca64
MD5 86208dc296373161856c47306d705e2e
BLAKE2b-256 df4cd8d1a2d28fcc109a1f3301499282073fdadb001e2a2d4677fdfffe052645

See more details on using hashes here.

Provenance

The following attestation bundles were made for virtuals_binary_codec-0.1.0-cp314-cp314-macosx_11_0_arm64.whl:

Publisher: publish-codec.yml on nustackdev/virtuals

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

File details

Details for the file virtuals_binary_codec-0.1.0-cp314-cp314-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for virtuals_binary_codec-0.1.0-cp314-cp314-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 24aaa4ad483180d148853b86ee2f023a6456f6e292d8d9006fb35a279dd11f82
MD5 97bb7a5512d04b89d1491cad6f40a780
BLAKE2b-256 858755e3ac001483b956b497d59ef3dbb1693fbaa313fff118cafa2b50a5288b

See more details on using hashes here.

Provenance

The following attestation bundles were made for virtuals_binary_codec-0.1.0-cp314-cp314-macosx_10_15_x86_64.whl:

Publisher: publish-codec.yml on nustackdev/virtuals

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

File details

Details for the file virtuals_binary_codec-0.1.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for virtuals_binary_codec-0.1.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b747bb32a72468a6a4e6f0a99e7606eb496a9436c7c035249af5c6bcdeb58b6c
MD5 30440e89fb67a3c31aaec6c7cbf01c22
BLAKE2b-256 eff7ee584f01d7f8f824150a5c1c777e4f73e07e876a0b4fd863ba2f9da461df

See more details on using hashes here.

Provenance

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

Publisher: publish-codec.yml on nustackdev/virtuals

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

File details

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

File metadata

File hashes

Hashes for virtuals_binary_codec-0.1.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5600721bd8576826fe242f90edb1edd4213ff38a0cd021f11f9f2bbd2a9657c2
MD5 ee0493f1b41ff3eff9b8cfe80ac65129
BLAKE2b-256 4a270133720fa3541ec9f93ea1fa25ea6b7e0f3d1901cf5cd3545d54d9b2f2fb

See more details on using hashes here.

Provenance

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

Publisher: publish-codec.yml on nustackdev/virtuals

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

File details

Details for the file virtuals_binary_codec-0.1.0-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for virtuals_binary_codec-0.1.0-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 889b924fe22a39ac43ba3cc8ed142093ba4149cb15a2c8778106ca096ab68e7e
MD5 b21b6be24a5d140d20e92749db048e5b
BLAKE2b-256 f2c8d5f198de3d74327403532af585256a5b197f8aff351f198cb1734fb76742

See more details on using hashes here.

Provenance

The following attestation bundles were made for virtuals_binary_codec-0.1.0-cp313-cp313-macosx_10_13_x86_64.whl:

Publisher: publish-codec.yml on nustackdev/virtuals

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

File details

Details for the file virtuals_binary_codec-0.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for virtuals_binary_codec-0.1.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 98f24ac667eb0ef2c002571a07736e4d9d58862dfb13b6cb975eb4060b5d9aa0
MD5 00ae3c979571b2f8d55a2ca1a57b8b5f
BLAKE2b-256 d68a65bb4ba1e0bafc7d790ad10a615eb5e64ebecfb610d82de68721b5a6fd82

See more details on using hashes here.

Provenance

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

Publisher: publish-codec.yml on nustackdev/virtuals

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

File details

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

File metadata

File hashes

Hashes for virtuals_binary_codec-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c23392955cc2dc352bb774947fbd2ff273e9539901cfa133165a31ab5ceeb31a
MD5 f80175092e46f09571afcf1b3a9ea2ae
BLAKE2b-256 89bc7f77e06c5edeb0178f0e13c0ef0507d1de87dfd9023e9e779c533129d8e3

See more details on using hashes here.

Provenance

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

Publisher: publish-codec.yml on nustackdev/virtuals

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

File details

Details for the file virtuals_binary_codec-0.1.0-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for virtuals_binary_codec-0.1.0-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 7caaa67dcd3ebb8b6f5040b8d394c537531a67b99bc5239c73beb2e7bb00196d
MD5 c36e65e7bd70f68c790ab632988b049a
BLAKE2b-256 896af4f549539882e957c7121fa03f5df9107aac517a02aa4493872f19eb6da5

See more details on using hashes here.

Provenance

The following attestation bundles were made for virtuals_binary_codec-0.1.0-cp312-cp312-macosx_10_13_x86_64.whl:

Publisher: publish-codec.yml on nustackdev/virtuals

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

File details

Details for the file virtuals_binary_codec-0.1.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for virtuals_binary_codec-0.1.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 283b6455b6ad6e4d4c186c95a91efd184bd095c9ec3eed1313799d5fc2a50924
MD5 b32fc7187d1cdb21e7080083896ee82a
BLAKE2b-256 bd5688e4a67a1bbd398a4c256388019e948c3f80478dc04bfe0b9df3bf6a2a28

See more details on using hashes here.

Provenance

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

Publisher: publish-codec.yml on nustackdev/virtuals

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

File details

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

File metadata

File hashes

Hashes for virtuals_binary_codec-0.1.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8c96c4c791b60d21a20cc85d45a16602c31428cf5bb98d16706d516e5da55071
MD5 64b5e6da956aeadebb04a0ca9c9c368d
BLAKE2b-256 76000f424871bf9262c57838c252bf9b170d680332db53595cd1bc4e8233dd31

See more details on using hashes here.

Provenance

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

Publisher: publish-codec.yml on nustackdev/virtuals

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

File details

Details for the file virtuals_binary_codec-0.1.0-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for virtuals_binary_codec-0.1.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e3d23a997190fa6c8dad5f53fc9660e8f335213c29caad042b6775f635a24fe1
MD5 a94c0d89ce8687e81d8ccb241f35a2e0
BLAKE2b-256 1285c4b95b79d71aaaafaf1e21e1a38d803bfd27e8f7488ad27fe47174c0073b

See more details on using hashes here.

Provenance

The following attestation bundles were made for virtuals_binary_codec-0.1.0-cp311-cp311-macosx_10_9_x86_64.whl:

Publisher: publish-codec.yml on nustackdev/virtuals

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

File details

Details for the file virtuals_binary_codec-0.1.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for virtuals_binary_codec-0.1.0-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 89880db166e2f485e14fbb2552cef7025727d412e22ff1a3e6d4554dc692c8eb
MD5 c4531a63b86454358505a9c7bb7ce0e2
BLAKE2b-256 7e901a2982420d11b74fa9b782bd3557adc4ef8f93ae5238cd463372a005e672

See more details on using hashes here.

Provenance

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

Publisher: publish-codec.yml on nustackdev/virtuals

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

File details

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

File metadata

File hashes

Hashes for virtuals_binary_codec-0.1.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a938a7972a4b7e436dd0c1112f4b2d9115bdc5f72b49484ddd7a4d11f4c08f5d
MD5 e61a09708a346b3ef1eb0cddf82af56a
BLAKE2b-256 2800fbd6e72ad2a5cebfc804aec80d5be6bae5c9b1a1f0ca76d99ae2e13335fb

See more details on using hashes here.

Provenance

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

Publisher: publish-codec.yml on nustackdev/virtuals

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

File details

Details for the file virtuals_binary_codec-0.1.0-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for virtuals_binary_codec-0.1.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 682b003b0da78de8be977f15fde297666ed4ed6a4f3a81839d76e01133bd1462
MD5 39562d6c7b150a58dff0adc6843750d3
BLAKE2b-256 b30c651836d09f05f720146c349fe432d5988559fd5d669e958858a942417d4f

See more details on using hashes here.

Provenance

The following attestation bundles were made for virtuals_binary_codec-0.1.0-cp310-cp310-macosx_10_9_x86_64.whl:

Publisher: publish-codec.yml on nustackdev/virtuals

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