Skip to content

Instantly share code, notes, and snippets.

View prdonahue's full-sized avatar

Patrick R. Donahue prdonahue

View GitHub Profile
@justanr
justanr / _core.py
Last active September 10, 2024 19:53
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'
])
"""