Skip to main content

DDD Base Framework

Build Status Pypi Status Coveralls Status

Installation

From source code:

python setup.py install

From pypi:

pip install ddd-base

Usage

from ddd_base.value_object import ValueObject


class TheValueObject(ValueObject):

    def __init__(self, name):
        super(TheValueObject, self).__init__()
        self.name = name

    def __eq__(self, other):
        if not isinstance(other, ValueObject):
            return NotImplemented

        return self.name == other.name


def test_value_object_compare():
    a_value_object = TheValueObject("name")
    b_value_object = TheValueObject("name")

    assert a_value_object.same_as(b_value_object)

License

This software is licensed under the MIT license

See License file

Changelog

0.0.5

  • Add use example

0.0.4

  • Friendly readme

0.0.3

  • Smart setup

0.0.2

  • Minimise description

0.0.1

  • Initial public release

Release files for ddd-base 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ddd-base 0.0.5
File Size Uploaded
ddd-base-0.0.5.tar.gz 2.5 kB Details

Release files / ddd-base-0.0.5.tar.gz

Download URL ddd-base-0.0.5.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
61468deea7280e7e9f16980c9d44c9cc4d976d71130b3a06c6eee1320eab440a
BLAKE2b-256 checksum
How to use checksums
6552b8c10a8620b66ab2f3bc4e8b1650586d7373de5b63c3c52cff231f8a5177
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.15

Release history Release notifications | RSS feed

This release

0.0.5 This release

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

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