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-2.0.0.tar.gz (180.5 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-2.0.0-cp314-cp314-win_amd64.whl (151.9 kB view details)

Uploaded CPython 3.14Windows x86-64

frost_typing-2.0.0-cp313-cp313-win_amd64.whl (152.5 kB view details)

Uploaded CPython 3.13Windows x86-64

frost_typing-2.0.0-cp312-cp312-win_amd64.whl (152.2 kB view details)

Uploaded CPython 3.12Windows x86-64

frost_typing-2.0.0-cp311-cp311-win_amd64.whl (151.1 kB view details)

Uploaded CPython 3.11Windows x86-64

frost_typing-2.0.0-cp310-cp310-win_amd64.whl (152.3 kB view details)

Uploaded CPython 3.10Windows x86-64

frost_typing-2.0.0-cp39-cp39-win_amd64.whl (152.3 kB view details)

Uploaded CPython 3.9Windows x86-64

File details

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

File metadata

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

File hashes

Hashes for frost_typing-2.0.0.tar.gz
Algorithm Hash digest
SHA256 f47035524105edbcb1a2d434944cbeff343b3f2ccf2c03c28d796cbf386432b9
MD5 8cac893a4e2127e0f124051e8ce283dd
BLAKE2b-256 148f84717136df7f987c7157c112d4de9e1dc581969993d708e500b954d1c1e0

See more details on using hashes here.

File details

Details for the file frost_typing-2.0.0-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for frost_typing-2.0.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 84f0bcf52b7655e898c355322a6c113c43685935081f3e04e6ec5cb682971b3e
MD5 a8d55d8ff86c0f752e496660d9087acb
BLAKE2b-256 bb98ff71f354d3fef1aa0d33ab0c0fc543871c4036efdefc91d8dba16c8e9e2f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for frost_typing-2.0.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 7a77e46e93767d1464a80cea91a7f181349b00acc5df1f0562d47f0724e3fd3b
MD5 5e6f5d107d6f275f7285f24eb2f042cf
BLAKE2b-256 23d5bb4a0b25225ab0a34f0f9810696b52d4ec1261a71c0488ac4d68a9bf47f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for frost_typing-2.0.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 36084490d2c4807c60ee907dedbba84928a7f9bc7748f5507c675dd154c810e4
MD5 ea1a2785271e6900eef8e2667e1c394a
BLAKE2b-256 12e66968b42b5afa5cb39bcd2ae67366c5c8a0c7762505c156818fc55f4ea328

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for frost_typing-2.0.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4c565766465048fdf2c9236ba209fe8e49e880b8984e2d96ffe05b30369465e7
MD5 2a74e6d9ceecd7afe212b1e4c6d475c0
BLAKE2b-256 fefdc5284b11626005d8b6ffcea5bdc061e0c71514346a291d16780cc336c756

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for frost_typing-2.0.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 184b0a91b346cf2e254ed908c41bb856cc8afc211b86f39c04089ab92b337418
MD5 cc90a751f8c0401ae5180e1f306bcc3e
BLAKE2b-256 5e18311ef07b5e59c6da396339ba262f46cd2ec0d98390ace17d8eb524b4bdc5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: frost_typing-2.0.0-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 152.3 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-2.0.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7a0327f42f60d01ce9ac20dc519aa5f31f5463ca9316922c21ace455b1491d7c
MD5 f314e9101a02b6c7b08f5cb2a2353573
BLAKE2b-256 3a63c84e6de52750504a3cdd842e7ee8e65014ce8ee1cb24eed34af7f74df9cf

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