Easy use and customizable implementation for the Value Object pattern.
Getting Started • Value Object Pattern
|
Sindri value object replaces ad hoc primitives and fragile validators with a consistent Value Object and Aggregate
toolkit you can adopt quickly.
Spin up validated value objects and aggregates with a simple and a small, focused API.
Why use it? Building your domain with Sindri lets you:
|
💧
Created with Instant Python
This project was generated using Instant Python, a fast, easy and reliable project generator for Python projects.
This project was generated using Instant Python, a fast, easy and reliable project generator for Python projects.
pip install value-object-sindri # zero dependenciesCreate a value object and use it in your domain:
from value_object import Integer, String
age = Integer(30)
name = String("John Doe")
print(f"Name: {name.value}, Age: {age.value}")ℹ️
Learn More
To learn more about advanced usage of value objects, including validation, custom value objects, complex objects like aggregates, visit the Value Object Pattern section of the documentation.
To learn more about advanced usage of value objects, including validation, custom value objects, complex objects like aggregates, visit the Value Object Pattern section of the documentation.