Skip to main content

seedwork-python

Python seedwork library.

Code style: black

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

MIT @ Huang Kai

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)

Source distribution for seedwork-python 0.4.0
File Size Uploaded Provenance Actions
seedwork_python-0.4.0.tar.gz 8.4 kB Without provenance Details for seedwork_python-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for seedwork-python 0.4.0
File Interpreter ABI Platform Actions
seedwork_python-0.4.0-py3-none-any.whl Python 3 none any Details for seedwork_python-0.4.0-py3-none-any.whl

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

Security for seedwork-python 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page