Skip to main content

DDD base framework for python

Project description

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.1

  • Initial public release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ddd-nginx-0.0.1.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file ddd-nginx-0.0.1.tar.gz.

File metadata

  • Download URL: ddd-nginx-0.0.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using 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.14

File hashes

Hashes for ddd-nginx-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a751b7ea5026151628158cbda1d3b19bf3ebf9c483d5907e80a3265b2e06572f
MD5 e83b04c47a8b69ee7ff2cb1bf80210f2
BLAKE2b-256 04ce879d1d8a74571ebf078c2726d4b7ee3da33e06a927ce4d89f91d51c81e5b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page