Ad

pydantic-core: Core validation logic in Rust

pydantic-core provides the core validation logic for Pydantic, originally written in Rust. It enables robust data validation and parsing for Python applications. This project is now archived.
Screenshot of pydantic/pydantic-core homepage

pydantic-core implements the core validation engine previously written in Rust for Pydantic. It facilitates data validation based on Python type hints and JSON Schema. The core objective was to improve performance and enable more flexible validation rules within the Pydantic library. This implementation provides a foundation for data parsing, type conversion, and validation.

This project provides the performance foundation for Pydantic's data validation. It presents a highly optimized and flexible validation system. The architecture is designed for extensibility and allows for custom validation logic. Its closure-based approach to validation enables concise and powerful data constraints.

  • Data Validation: Supports validation based on Python type hints and JSON Schema specifications.
  • Type Conversion: Provides robust type conversion capabilities between different data types.
  • Performance: Offers significant performance improvements compared to previous validation implementations.
  • Extensibility: Allows developers to extend validation logic through custom validators.
  • Schema Parsing: Parses JSON Schema to define validation rules.
  • Error Handling: Provides detailed and informative validation error messages.
  • Integration: Designed for seamless integration with the Pydantic Python library.

This project is archived and no longer receives active development. It served as the foundation for the current implementation of Pydantic's core validation. While the code remains available for reference, its maintenance is no longer a priority. The current implementation is maintained in the main Pydantic repository.

Developers benefiting from this project are those working with Pydantic who need to understand the underlying validation mechanisms. It addresses the need for rapid and reliable data validation in Python applications. This core provides a more efficient and extensible solution than manual validation approaches.

Summarize:
Share:
Stars
1,768
Forks
333
Issues
64
Created
4 years ago
Commit
6 months ago
License
MIT
Archived
Yes
Updated 4 days ago

Similar Repositories