Skip to content

Instantly share code, notes, and snippets.

View haukurk's full-sized avatar

Haukur Kristinsson haukurk

View GitHub Profile
@haukurk
haukurk / _core.py
Created September 10, 2017 12:07 — forked from justanr/_core.py
Clean Architecture In Python
from abc import ABC, ABCMeta, abstractmethod
from collections import namedtuple
from itertools import count
PayloadFactory = namedtuple('PayloadFactory', [
'good', 'created', 'queued', 'unchanged', 'requires_auth',
'permission_denied', 'not_found', 'invalid', 'error'
])
"""