Skip to main content

Rust-accelerated serialization and validation for Python — framework-agnostic

Project description

clarax-core

Rust-speed validation for Python -- no Rust required.

Your batch job processes 50,000 records. Each one needs validation: string scanning, pattern matching, decimal precision. Python does it in 3 seconds. Your users notice.

ClaraX does it in 340ms. Same code. Same data structures. Rust underneath.

pip install clarax-core
from clarax_core import validate_names_batch, validate_ids_batch, batch_stats

# Character scanning: 8x over Python
results = validate_names_batch(["Erik Andersson", "Bad123 Name"])

# Pattern matching: 15x over Python
valid = validate_ids_batch(["19900515-1234", "invalid"])

# Statistics: 20x over Python's statistics module
stats = batch_stats([1.0, 2.0, 3.0, 4.0, 5.0])

Schema-based validation:

from clarax_core import Schema, Field, serialize_many
from decimal import Decimal

schema = Schema({
    "name":  Field(str, max_length=100),
    "price": Field(Decimal, max_digits=10, decimal_places=2),
})

result = serialize_many([{"name": "Erik", "price": Decimal("9.99")}], schema)

Works with Flask, FastAPI, scripts, ETL pipelines. No Rust installation needed. Pre-built wheels for all platforms. Python 3.11+ and 3.14t (free-threading) supported.

For Django projects, use clarax-django instead.

MIT -- Abdulwahed Mansour

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

clarax_core-1.0.1.tar.gz (1.1 MB view details)

Uploaded Source

Built Distributions

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

clarax_core-1.0.1-cp313-cp313-win_amd64.whl (360.9 kB view details)

Uploaded CPython 3.13Windows x86-64

clarax_core-1.0.1-cp313-cp313-manylinux_2_28_x86_64.whl (473.3 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

clarax_core-1.0.1-cp313-cp313-manylinux_2_28_aarch64.whl (443.2 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

clarax_core-1.0.1-cp313-cp313-macosx_11_0_x86_64.whl (438.4 kB view details)

Uploaded CPython 3.13macOS 11.0+ x86-64

clarax_core-1.0.1-cp313-cp313-macosx_11_0_arm64.whl (417.9 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

clarax_core-1.0.1-cp312-cp312-win_amd64.whl (361.2 kB view details)

Uploaded CPython 3.12Windows x86-64

clarax_core-1.0.1-cp312-cp312-manylinux_2_28_x86_64.whl (473.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

clarax_core-1.0.1-cp312-cp312-manylinux_2_28_aarch64.whl (443.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

clarax_core-1.0.1-cp312-cp312-macosx_11_0_x86_64.whl (438.2 kB view details)

Uploaded CPython 3.12macOS 11.0+ x86-64

clarax_core-1.0.1-cp312-cp312-macosx_11_0_arm64.whl (418.0 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

clarax_core-1.0.1-cp312-cp312-macosx_10_12_x86_64.whl (505.2 kB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

clarax_core-1.0.1-cp311-cp311-win_amd64.whl (365.1 kB view details)

Uploaded CPython 3.11Windows x86-64

clarax_core-1.0.1-cp311-cp311-manylinux_2_28_x86_64.whl (477.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

clarax_core-1.0.1-cp311-cp311-manylinux_2_28_aarch64.whl (447.8 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

clarax_core-1.0.1-cp311-cp311-macosx_11_0_x86_64.whl (437.4 kB view details)

Uploaded CPython 3.11macOS 11.0+ x86-64

clarax_core-1.0.1-cp311-cp311-macosx_11_0_arm64.whl (423.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

Details for the file clarax_core-1.0.1.tar.gz.

File metadata

  • Download URL: clarax_core-1.0.1.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for clarax_core-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f07e2482e4a1e592a8ca035e16e0cfb9dc35bd4416e015eed36bb411e1d7fd17
MD5 507ab3b0606d8f8e51909b03c6e0ceae
BLAKE2b-256 55a2f2e15a9f89320d5929e405d817c0555d38544431de3d73e6fd9a2a5c44df

See more details on using hashes here.

File details

Details for the file clarax_core-1.0.1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for clarax_core-1.0.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 caeadddc2d4661b3eb7a731f55c11e095f33eb5c9d1ab8c0f03453c1a6515837
MD5 9cb871ba998fe934384fe7d079f0c1a6
BLAKE2b-256 8f49a49637db44237e4a6e7bbd12d594dced269c05e75db38cbcacbb4a6b7358

See more details on using hashes here.

File details

Details for the file clarax_core-1.0.1-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for clarax_core-1.0.1-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c27692a251b1b98f488308ca80bb78b4e92d275a137c1a61e928c8eec58d0772
MD5 96877c9c66cdff51228e489e957f85a5
BLAKE2b-256 1a98419d69cb30e0e5f0997d0d0ad3e4dce6d53225751acd59ca298bbec2c80a

See more details on using hashes here.

File details

Details for the file clarax_core-1.0.1-cp313-cp313-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for clarax_core-1.0.1-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2eb48899f67a537d41fd71e65fa780580556d491a2cfda045a2090fa6b46319e
MD5 7fd1ef92452dadead47a17a758242d34
BLAKE2b-256 bfa9684bf13106f29432826bc229ce644124eb8d2db01e7d1e9a46b5e03942c4

See more details on using hashes here.

File details

Details for the file clarax_core-1.0.1-cp313-cp313-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for clarax_core-1.0.1-cp313-cp313-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 6ec4fc82529d9530ed73ba7570eeccdf2577f2170ba6108e7ec28720a303e8c3
MD5 76fd4da352c4e57b89e5ac409c075183
BLAKE2b-256 26f7a809782bc8c40f95ad7f80cbe429ad928a9842f2e072badc38b2b5828aa2

See more details on using hashes here.

File details

Details for the file clarax_core-1.0.1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for clarax_core-1.0.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1aae311891b5fc4742b7719ff7c103c33c6e0624a424a49ae4ff994bd3457729
MD5 4cfb0f168dcd5a79505643ffa5bee3b7
BLAKE2b-256 0788eef7fda4081c4628c04fd95ebbc5f258d2d00ac35f4b808e5ace36663d88

See more details on using hashes here.

File details

Details for the file clarax_core-1.0.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for clarax_core-1.0.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0d1ca64176a7e0a53d6a690f54f684fb8598e4d664e16bde4146d69851b835d3
MD5 6999a01ef0aee5846e92f3803c632130
BLAKE2b-256 15052771f577b2aa705a4c8397724714132f38a2a1fe4560a8306fb40828c61f

See more details on using hashes here.

File details

Details for the file clarax_core-1.0.1-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for clarax_core-1.0.1-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d05812c12aad2a399670794e9ac5cf55fd4327c0433654f47a15ae35b5f299be
MD5 6539e07f5ba4c71a4fcc9e72f8a80b79
BLAKE2b-256 935544872a5b289815507a8f6c02b0073eb20bf88e86757c42dd1f7d0e6f7dce

See more details on using hashes here.

File details

Details for the file clarax_core-1.0.1-cp312-cp312-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for clarax_core-1.0.1-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 cce47b7abf22a4f381566a0fcedfcbf147923222165e5b760a27c20c13726665
MD5 3f159a8482400e0d9c28d659fe5aa562
BLAKE2b-256 c1f7bc8a67e86e2b02ce7ebca520ba0d0c85c476588ea32318b460c11ad8d2d1

See more details on using hashes here.

File details

Details for the file clarax_core-1.0.1-cp312-cp312-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for clarax_core-1.0.1-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 981034795b17699b1355ac8b333d01cfc56703402c9c01ff1312ac3a07df2306
MD5 e8fab739d664d0dc3892bef0aaf9ecd3
BLAKE2b-256 a3e1784fd9ab937653257b7e4acdfd748dab5ba4a0e774b2a953d28ed010def3

See more details on using hashes here.

File details

Details for the file clarax_core-1.0.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for clarax_core-1.0.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5a41ebe2dfeec64f3f6dc350176ee7546dd14e5500bf3f1b452c2d54ffc7fc6a
MD5 d82b24c1bfc9af2e5016ab3fb32259e4
BLAKE2b-256 14c69c4cfbcbc03743112661281e3f006adc4fa49ae6d46a5105447602bcd277

See more details on using hashes here.

File details

Details for the file clarax_core-1.0.1-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for clarax_core-1.0.1-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 60f9c28f74fbfee64cf69e47861da3598c47f339b5dc5180d891d0e6065b99f4
MD5 2e3011abc6c3404600c0952b2fd8ca51
BLAKE2b-256 a90760b0dca581bd7b6860454a971f46ea59b0a46e412ab3a8042cd61e84c60f

See more details on using hashes here.

File details

Details for the file clarax_core-1.0.1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for clarax_core-1.0.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2d8f15a75fcdbd19bf5e1d13c091c68bbe7198181c63389fb514017c24daa2eb
MD5 a889068ea77128c2fc53d1cd31cd762f
BLAKE2b-256 1e37f1c00c839bf93d057389bc75294c0edcc7588beabf840b3abb340ae2d882

See more details on using hashes here.

File details

Details for the file clarax_core-1.0.1-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for clarax_core-1.0.1-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1c7abd55f960d8d089ab6e6827d2f505d36122fc32a35bc5c92d427d91e00608
MD5 fb1dc95228c7bbac7ebca36e0f783e29
BLAKE2b-256 991c05ccf7cfecc3c51b73865c0c0e83f250e001e56fee8171a633e4f1a4b215

See more details on using hashes here.

File details

Details for the file clarax_core-1.0.1-cp311-cp311-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for clarax_core-1.0.1-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 1a53fc91d79dfd15548f7ba2fa9dbbb99e2798714523bac4d4914bca41bf4e51
MD5 672c109b9f77b8c9a345e2ef4056fc59
BLAKE2b-256 eb8a748fa8833210660caf220c89076641d5f935e9147ab7ebd2b9229a08a37f

See more details on using hashes here.

File details

Details for the file clarax_core-1.0.1-cp311-cp311-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for clarax_core-1.0.1-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 68d2f4b2f0052152cd2d6a195482f56ac877083101e9d8afa4cf0809aff1a651
MD5 1ef6773b6e9804bfe2b46cd6548ef71c
BLAKE2b-256 98e4917884faf62ac41fcb2514edf444e40cab1e04e4aa0865085912d43f8fca

See more details on using hashes here.

File details

Details for the file clarax_core-1.0.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for clarax_core-1.0.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e7bcc09a7c1d057526944736ec9256199f2ce487c9508fc3397ac3b596ff3f35
MD5 1b21c993d74f8cefec9bd26a87e5e901
BLAKE2b-256 08c13e084a0aa1ea607fb4b92bd207cd7096889f2a63532dcd0efdad86ce95ca

See more details on using hashes here.

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