Data validation using Python type hints
Overall
score
90%
ByteSize type for human-readable byte sizes
ByteSize field usage
0%
100%
Size comparison
80%
100%
Human-readable formatting
0%
20%
Unit handling
100%
60%
Model configuration with ConfigDict
ConfigDict usage
100%
100%
Strict validation
100%
100%
Assignment validation
100%
100%
Extra fields handling
100%
100%
String whitespace stripping
100%
100%
Field constraints
100%
100%
Field definitions with Field() function
Field() import
100%
100%
BaseModel usage
100%
100%
Price numeric constraints
100%
100%
Name length constraints
100%
100%
SKU pattern validation
0%
75%
Stock default value
100%
100%
Stock non-negative constraint
100%
100%
Tags default factory
100%
100%
Enum value serialization
BaseModel inheritance
100%
100%
use_enum_values configuration
0%
0%
Enum field typing
100%
100%
model_dump method
0%
0%
model_validate usage
53%
100%
Built-in type support (primitives, collections, standard library)
BaseModel Usage
100%
100%
UUID Type
100%
100%
EmailStr Type
100%
100%
date Type
100%
100%
datetime Type
100%
100%
PositiveInt Constraint
80%
100%
Decimal Type
100%
100%
Set Collection
100%
100%
Dict Collection
100%
100%
Optional Type
100%
100%
Serialization Methods
100%
100%
UUID types (UUID1-UUID8)
UUID1 usage
0%
100%
UUID3 usage
0%
100%
UUID4 usage
0%
100%
BaseModel implementation
100%
100%
Version validation
100%
100%
Path types (FilePath, DirectoryPath)
FilePath usage
100%
100%
DirectoryPath usage
100%
100%
Optional path handling
100%
100%
Model definition
100%
100%
Data parsing from Python objects, JSON, and attributes
BaseModel Definition
100%
100%
Nested Model Structure
100%
100%
model_validate() Usage
0%
100%
model_validate_json() Usage
0%
100%
from_attributes Configuration
0%
100%
Serialization Method
100%
100%
ValidationError Handling
100%
100%
Serialization by alias
ConfigDict with alias_generator
100%
100%
Custom serialization_alias usage
100%
100%
serialize_by_alias configuration
100%
100%
to_api_format method implementation
100%
100%
Nested model aliasing
100%
100%
BaseModel inheritance
100%
100%
Field type annotations
100%
100%
Basic model serializers with @model_serializer
BaseModel usage
100%
100%
@model_serializer decorator
0%
100%
model_dump invocation
0%
0%
Timestamp formatting
100%
100%
Action uppercasing
100%
100%
Computed total count
100%
100%
Action breakdown
100%
100%
Install with Tessl CLI
npx tessl i tessl/pypi-pydantic