Skip to main content

Flask logger decorator

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

  • Set default configuration

0.0.5

  • Read config from source flask app

0.0.4

  • Get config with default value

0.0.3

  • Log all request by default

0.0.2

  • Test with different user case

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

flask-logger-decorator-0.0.6.tar.gz (5.9 kB view details)

Uploaded Source

File details

Details for the file flask-logger-decorator-0.0.6.tar.gz.

File metadata

  • Download URL: flask-logger-decorator-0.0.6.tar.gz
  • Upload date:
  • Size: 5.9 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.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.7

File hashes

Hashes for flask-logger-decorator-0.0.6.tar.gz
Algorithm Hash digest
SHA256 e6fad440b79c27e9415922dd1086b95ebb89a4a39670447329f79fd296f06a7f
MD5 7eac999bf304d5f10a364ed5cdbf4215
BLAKE2b-256 6a527d01a1dacaa068bce9d9273d27bebe3f9649b699e527c9ce729f47e0a623

See more details on using hashes here.

Supported by

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