seedwork-python
Python seedwork library.
Table of Contents
Requirements
python 3.9+
Installation
Using poetry
Make sure you have installed poetry
poetry add seedwork-python
Using pip
pip install seedwork-python
Usage
from dataclasses import dataclass
from seedwork.domain.aggregate_root import AggregateRoot
@dataclass
class User(AggregateRoot):
name: str
age: int
def is_adult(self) -> bool:
return self.age >= 18
user = User(name='foo', age=18)
assert user.is_adult()
For more examples, please refer to tests.
Or you can refer to the sample project eshop
License
Metadata
Release files for seedwork-python 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| seedwork_python-0.4.0.tar.gz | 8.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| seedwork_python-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.0 kB
Release files / seedwork_python-0.4.0.tar.gz
| Download URL | seedwork_python-0.4.0.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca0f661135a22cea565fabaa3522d404ac64449784122d899c146bcf8d2ae55a
|
|
BLAKE2b-256 checksum How to use checksums |
b3a3e3f189d3991eb1a5169e2c98c4a54b66a146179eaa603726358659db9acd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.9.13 Darwin/22.5.0
|
Release files / seedwork_python-0.4.0-py3-none-any.whl
| Download URL | seedwork_python-0.4.0-py3-none-any.whl |
|---|---|
| Size | 13.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cb6d19b20650eb6efd5fa471744fe361d0025be8d1fce84bb417b47125c68800
|
|
BLAKE2b-256 checksum How to use checksums |
b159f5d8684928de44373985c7918e45f7d2b9c5a7175415918fb12fa2bf6c85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.9.13 Darwin/22.5.0
|