Hacker News new | ask | show | jobs
by Lucasoato 525 days ago
If you want something similar in Python, you could structure your code following the port and adapter pattern. Very effective, especially if paired with hexagonal architecture and type checking libraries like pydantic.