Skip to main content

Build Status Version

A helper library for Clean Architectures in Python

Full documentation available at http://gaudilib.readthedocs.io/en/latest/

About Gaudi

Gaudi (pronounced /ˈɡaʊdi/) is a library that provides some helper structures to build projects based on a clean architecture in Python. The very nature of a clean architecture is the opposite of a framework, so Gaudi provides the minimum amount of classes and methods to avoid boring repetition in your code.

Gaudi is opinionated, as some of the structures provided enforce minimum conventions, like requests being dictionary-like objects and responses having a category and a content. It is also extensible, however, as you are free to change the behaviour of the components at any time.

As you are following the clean architecture model you are free to build the internal protocols and objects like you prefer. Using Gaudi saves you some typing and enforces a minimum of conventions in your project. You are free to use just some of the components of Gaudi without breaking the clean architecture model.

Origin

In 2016 I wrote Clean architectures in Python: a step-by-step example, a detailed analysis of a clean architecture written in Python from scratch following a pure TDD methodology. Since then I created many successful projects following this model, but I quickly realised that there was a core of code that I copied from project to project (the shared module in the original article). So I decided to try to clean it up and to publish it as a library.

The name is an homage to Antoni Gaudí a genius that gave the world some of the most beautiful architectural works ever conceived by men.

Development

Gaudi is an helper library for clean architectures, so it provides the very minimum amount of code to avoid repetitions among projects. This means that the library shouldn’t grow too much in the future. There will be bug fixes and maybe some new helpers if there are good use cases (no pun intended) for them. I’m however ready to be surprised, so it might be that there are many other aspects of the clean architecture that can be automated while keeping the nature of the whole methodology: clean separation between layers.

Feel free to submit issues or pull requests or to get in touch if you have ideas about Gaudi. Maybe you can see what I can’t! And thanks for using Gaudi and the Clean Architecture model!

Installation

Gaudi is available for Python 3 through pip. Just create a virtual environment and run

pip install gaudi

Contributing

See the CONTRIBUTING file for detailed information. Please remember that this project is actively developed in the develop branch, so be sure to work there if you try to implement new feature of fix bugs.

History

1.0.1 (2019-06-26)

  • Minor review of README and Python packaging

1.0.0 (2018-08-01)

  • First release on PyPI.

Release files for gaudi 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gaudi 1.0.1
File Size Uploaded
gaudi-1.0.1.tar.gz 8.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gaudi 1.0.1
File Interpreter ABI Platform
gaudi-1.0.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 15.1 kB

Release files / gaudi-1.0.1.tar.gz

Download URL gaudi-1.0.1.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d8ce92858a63e385f86b286cb471c8d5d7cba2eb6d931fa9a3f543f05006a81d
BLAKE2b-256 checksum
How to use checksums
a6d913f5ce5e9f5e2d836f87865cb390503b7ab47ae20cc2ed50eb58104effb5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

Release files / gaudi-1.0.1-py2.py3-none-any.whl

Download URL gaudi-1.0.1-py2.py3-none-any.whl
Size 7.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
5acb6459c8a95a3db97a056cd6a20b4d7af561a8d30508aff27b43327bb6d461
BLAKE2b-256 checksum
How to use checksums
55c4782c827818a2fa1d25a0db3df87e56743ddb24c3f1d7a73a53d00d6580a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page