Skip to main content

DDD base framework for python

Project description

DDD Api Gateway Framework

Build Status Pypi Status Coveralls Status

Installation

From source code:

python setup.py install

From pypi:

pip install ddd-api-gateway

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

  • Add endpoint hostname property

0.0.5

  • Expose exceptions message

0.0.4

  • Expose exceptions

0.0.3

  • Add entity repository

0.0.2

  • Adjust for travis test and cover all percentage

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-api-gateway-0.0.6.tar.gz (6.7 kB view details)

Uploaded Source

File details

Details for the file ddd-api-gateway-0.0.6.tar.gz.

File metadata

  • Download URL: ddd-api-gateway-0.0.6.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.7

File hashes

Hashes for ddd-api-gateway-0.0.6.tar.gz
Algorithm Hash digest
SHA256 2fb217bfddc684348a44b6356725c5305beaeaf16387edc12e2729bb95508cf2
MD5 d801e42c590b1bc7810dc740ba1c4659
BLAKE2b-256 989152fcd177c645a698dd3d95abdd744407312767c6241e59665bc48f8e3d80

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