What is DesignKit?
DesignKit is a modern Python architecture toolkit that draws inspiration from the 23 Gang of Four design patterns with original architectural abstractions, expressive APIs, and efficient utilities to build cleaner, more maintainable software.
Every API is carefully designed with developer experience in mind, featuring first-class support for async/await, metaprogramming, extensibility hooks, multiple programming paradigms, operator overloading where appropriate, and other modern Python capabilities.
[!IMPORTANT] DesignKit does not aim to provide literal implementations of the Gang of Four patterns. Instead, it offers expressive APIs inspired by those ideas, redesigned to solve real-world Python architecture problems while embracing modern language features.
Write software that's easier to understand, extend, and maintain!
What DesignKit Is Not?
DesignKit is not:
- an application framework.
- an inversion-of-control container.
- an ORM.
- a web framework.
- a dependency injection framework.
- a replacement for your existing architecture.
Basically, there is no such thing as a design pattern for creating a payment agent. Instead, it is a toolkit of architectural APIs that you can adopt independently, wherever they make sense.
How to Use DesignKit?
To start using DesignKit, you first need to install it.
# via pip
pip install designkit
# via uv
uv install designkit
# via poetry
poetry add designkit
So, you can import the DesignKit library in your Python code with the following statement:
from designkit.<section>.<pattern> import <utilities>, <exceptions>, <abstractions>
# Example:
from designkit.behavioral.state import (
StateMachine, # implementation
Reactive, # utility
GuardRejectedError, InvalidTransitionError # exceptions
)
Where <section> is the section of the design pattern (e.g., behavioral, creational, structural), <pattern> is the name of the design pattern (e.g., matcher, factory, adapter), and <utilities>, <exceptions>, and <abstractions> are the specific utilities, exceptions, and abstractions you want to use from that pattern.
[!IMPORTANT] To see most examples of usage, you can check
samples/directory on GitHub with at least one example for each design pattern.
Features
DesignKit features all 23 Gang of Four (GoF) design patterns, plus 6 original design patterns.
Design Patterns
-
Behavioral
Chain of ResponsibilityCommandInterpreterIteratorMediatorMementoObserverStateStrategyPolicyTemplate MethodVisitor
-
Creational
Abstract FactoryBuilderFactory MethodPrototypeSingleton-- Only one instance.
-
Structural
AdapterBridgeCompositeDecoratorFacadeFlyweightProxy
Tech Stack
| Technology | Purpose | |
|---|---|---|
| 🎨 | Rich | Rich text and beautiful formatting in the terminal |
| 🔤 | DesignKit Utils | Utility functions and helpers for DesignKit |
Getting Started
# clone the repository
git clone https://github.com/Sheniey/designkit.git
cd designkit
# install dependencies
pip install -r requirements.txt # via pip
uv install -r requirements.txt # via uv
Commands
| Command | Action |
|---|---|
maturin develop |
Start development build of Crates |
maturin build |
Build production release of Crates to ./target/ |
maturin publish |
Publish entire project to PyPI -- future deprecation |
pytest |
Run all tests in the project -- requires pytest to be installed |
Contributing
See CONTRIBUTING.md for details on how to contribute to this project.
License
Licensed under the MIT License © 2026 Sheñey.
Release files for designkit 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| designkit-0.1.2.tar.gz | 1.2 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| designkit-0.1.2-cp314-cp314-win_amd64.whl | CPython 3.14 | CPython 3.14 | Windows x86-64 | Details |
Total release size: 1.5 MB
Release files / designkit-0.1.2.tar.gz
| Download URL | designkit-0.1.2.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d39748b328ed827af2dd537d610c50032a452b62820fe20404ac586c59a76f48
|
|
BLAKE2b-256 checksum How to use checksums |
afae86ea6e35795d847762d5b770ddda468dfa1e66f144a1e5572b5f51084ce9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.14.1
|
Release files / designkit-0.1.2-cp314-cp314-win_amd64.whl
| Download URL | designkit-0.1.2-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 299.8 kB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
9abb6a0a1e18ea63990e4e4bf5e85f1af87a1c1ff7bf99c7835fd09817b7ffe1
|
|
BLAKE2b-256 checksum How to use checksums |
c4d17ef1b0acf6a835f0b48010a6324bff1111f73057a350fcff67665c808eb3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/1.14.1
|