Skip to main content

Fast and efficient Python typing and validation library

Project description

FrostTyping

It offers a very fast way to validate data using Python type hints.
In addition to validation, it provides fast DataModels for any task!

A Simple Example

from datetime import datetime
from typing import Optional, Annotated
from frost_typing import ValidModel, Field

class User(ValidModel):
    id: int
    name: Annotated[str, Field("John Doe")]
    signup_ts: Optional[datetime]
    friends: list[int]

external_data = {'id': '123', 'signup_ts': '2017-06-01 12:22', 'friends': [1, '2', b'3']}
user = User(**external_data)
print(user)
#> User(id=123 name='John Doe' signup_ts=datetime.datetime(2017, 6, 1, 12, 22) friends=[1, 2, 3])
print(user.id)
#> 123

Detailed documentation, as well as benchmarks, can be found here:

📄 RU Русская документация
📄 EN English Documentation

Quick start

You can install FrostTyping using pip:

pip install frost_typing

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

frost_typing-1.0.2.tar.gz (154.9 kB view details)

Uploaded Source

Built Distributions

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

frost_typing-1.0.2-cp313-cp313-win_amd64.whl (117.5 kB view details)

Uploaded CPython 3.13Windows x86-64

frost_typing-1.0.2-cp312-cp312-win_amd64.whl (117.4 kB view details)

Uploaded CPython 3.12Windows x86-64

frost_typing-1.0.2-cp311-cp311-win_amd64.whl (116.7 kB view details)

Uploaded CPython 3.11Windows x86-64

frost_typing-1.0.2-cp310-cp310-win_amd64.whl (117.7 kB view details)

Uploaded CPython 3.10Windows x86-64

frost_typing-1.0.2-cp39-cp39-win_amd64.whl (117.8 kB view details)

Uploaded CPython 3.9Windows x86-64

File details

Details for the file frost_typing-1.0.2.tar.gz.

File metadata

  • Download URL: frost_typing-1.0.2.tar.gz
  • Upload date:
  • Size: 154.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for frost_typing-1.0.2.tar.gz
Algorithm Hash digest
SHA256 f0cceadbb3f482b0b9d6c5c64e773924b6435d59d36ad671e51bc4d202f3a524
MD5 6ae1f6b455343fa78695e0898c228f61
BLAKE2b-256 916177952a778d218f17b5e8296612ef5bc3fbc966b04cc65a5e3c689fdd0642

See more details on using hashes here.

File details

Details for the file frost_typing-1.0.2-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for frost_typing-1.0.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 3270155242772d117f622f43ea1c47ab26e6312a9e53a031298b94fddc284743
MD5 adc035c5bcde842f3116bd42e3eb4481
BLAKE2b-256 020076b1f0b7edd3149cada387e56fb0aee5710693a66fe0e539f18250e8eb41

See more details on using hashes here.

File details

Details for the file frost_typing-1.0.2-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for frost_typing-1.0.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 38a3c9b1ebf6432a9a0ff3fa51d63527f426cd1b594a1448e98d5f33fdbc90bb
MD5 180ab1ba7aa72e0c0a44891681f5d2cd
BLAKE2b-256 f020cef1042a66ef52b62135ce195b7b72eb3945481e4862467fa191b5b745a9

See more details on using hashes here.

File details

Details for the file frost_typing-1.0.2-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for frost_typing-1.0.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 098d9ca56853437103b3c6a0cf6f947e6974480e53b7344c0b568c4fe90fc6d9
MD5 7185e162f2618df4a070c76403c590f7
BLAKE2b-256 67ff13d555c1655e76d577d5f8e179e77a7982ea43677a98f2a9e48e4c9e885a

See more details on using hashes here.

File details

Details for the file frost_typing-1.0.2-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for frost_typing-1.0.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1a73c5e3bba82454b642a6dc6164fcde64fb76e80e6ca156b3fc6a81a4b900c2
MD5 0aad2fd97efab797756de18bf0da532e
BLAKE2b-256 8c2751debd6d9a22fd32ea27e18f6fcfe742aaee7cc9735157ea086b524139b5

See more details on using hashes here.

File details

Details for the file frost_typing-1.0.2-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: frost_typing-1.0.2-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 117.8 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for frost_typing-1.0.2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 da96bbfe338097fa52e5fd1dee67c8b632598309dfbbeab9b6dc78d923b01f64
MD5 07a27e4fbccb2d55fdcd9fcfe1751aba
BLAKE2b-256 ec27bddd2b24e91c7c79bb5274addbc001a8f7cff22561b365e23b2aca21efb5

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