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.1.tar.gz (153.1 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.1-cp313-cp313-win_amd64.whl (115.0 kB view details)

Uploaded CPython 3.13Windows x86-64

frost_typing-1.0.1-cp312-cp312-win_amd64.whl (115.0 kB view details)

Uploaded CPython 3.12Windows x86-64

frost_typing-1.0.1-cp311-cp311-win_amd64.whl (114.4 kB view details)

Uploaded CPython 3.11Windows x86-64

frost_typing-1.0.1-cp310-cp310-win_amd64.whl (115.3 kB view details)

Uploaded CPython 3.10Windows x86-64

frost_typing-1.0.1-cp39-cp39-win_amd64.whl (115.4 kB view details)

Uploaded CPython 3.9Windows x86-64

File details

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

File metadata

  • Download URL: frost_typing-1.0.1.tar.gz
  • Upload date:
  • Size: 153.1 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.1.tar.gz
Algorithm Hash digest
SHA256 475c8f6d93966a483daff290447ba9aadec9f99474bc6496db720807043c842a
MD5 529fd073abd550b820046b34a6e51dc3
BLAKE2b-256 71f107a3a1e41b8bf58141af0c76ccba4e101c91a177f08f2b04fb1138e83bac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for frost_typing-1.0.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 1b90ba18f57a208eac36c99aa44fb2db2043421053a3c51c8204321e4b33f21f
MD5 1e438c518153172b821bb3ba0b33fdad
BLAKE2b-256 b7cd8ebe9f50ff95115c249078f3ffd5a30a924771ed7ad51a9a4b814777c715

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for frost_typing-1.0.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 785501d88bef9067746a6311f12bbf7d15d0b25802197c396fc47404f793cfdc
MD5 a29aef02ceda1f88291b13d638675244
BLAKE2b-256 f85d0e44280b9b9722ef7580810f754242ed146fba2634f1a2d1b4a3088ff512

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for frost_typing-1.0.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3c930935b17c7bfb1cf6605dc8b1c0b0eed62d7d5764fa551f1bbf3561f1f17b
MD5 ea58be0571297bf4ee5d5c4e3e04560c
BLAKE2b-256 cef07610d9b108b6a13a3dae1407c33cc7a8e6f99f36a7afd9fcaf7c643f601c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for frost_typing-1.0.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c2ac816af5adfbf8468f469490ff73d543b6ee08e011c5e786914a6da8435c14
MD5 7e7eb69d2ea8c9baebd6220826463d3d
BLAKE2b-256 53888b3d307094cd3dbbd6811dfbb21ec1c95c573f41c63de947f86612f79f6c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: frost_typing-1.0.1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 115.4 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.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 48a0390fa9e017642b9038c3b357960c5704361058af99500b487ab0ebb18d47
MD5 d504109cfe97deea05f2029e77bee54a
BLAKE2b-256 6bbbb08309e221d6769de52e8d8bba6e6e87e99a54dc73f9bf408f0ee86de290

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