{"id":14065323,"url":"https://github.com/knucklesuganda/py_assimilator","last_synced_at":"2026-03-17T20:35:37.522Z","repository":{"id":65049324,"uuid":"575083066","full_name":"knucklesuganda/py_assimilator","owner":"knucklesuganda","description":"Python Domain-Driven Design, Event-Based Systems, CRUD patterns","archived":false,"fork":false,"pushed_at":"2024-12-30T14:04:24.000Z","size":3146,"stargazers_count":216,"open_issues_count":2,"forks_count":9,"subscribers_count":6,"default_branch":"master","last_synced_at":"2026-03-10T05:03:49.316Z","etag":null,"topics":["architecture","ddd","domain-driven-design","good-practices","goodcode","module","patterns","python","python3","pythonmodule","web"],"latest_commit_sha":null,"homepage":"https://knucklesuganda.github.io/py_assimilator/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/knucklesuganda.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-12-06T18:08:05.000Z","updated_at":"2026-01-29T22:45:15.000Z","dependencies_parsed_at":"2024-01-03T06:56:43.569Z","dependency_job_id":"d9b23182-515a-49ae-9b3d-f9a328f5941f","html_url":"https://github.com/knucklesuganda/py_assimilator","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/knucklesuganda/py_assimilator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knucklesuganda%2Fpy_assimilator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knucklesuganda%2Fpy_assimilator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knucklesuganda%2Fpy_assimilator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knucklesuganda%2Fpy_assimilator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knucklesuganda","download_url":"https://codeload.github.com/knucklesuganda/py_assimilator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knucklesuganda%2Fpy_assimilator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30631346,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T17:32:55.572Z","status":"ssl_error","status_checked_at":"2026-03-17T17:32:38.732Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["architecture","ddd","domain-driven-design","good-practices","goodcode","module","patterns","python","python3","pythonmodule","web"],"created_at":"2024-08-13T07:04:25.905Z","updated_at":"2026-03-17T20:35:37.506Z","avatar_url":"https://github.com/knucklesuganda.png","language":"Python","readme":"# Assimilator - the best Python patterns for the best projects\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://knucklesuganda.github.io/py_assimilator/\"\u003e\u003cimg src=\"https://knucklesuganda.github.io/py_assimilator/images/logo.png\" alt=\"PyAssimilator\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://pypi.org/project/py-assimilator/\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/knucklesuganda/py_assimilator?color=%237e56c2\u0026style=for-the-badge\" alt=\"License\"\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://pypi.org/project/py-assimilator/\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/stars/knucklesuganda/py_assimilator?color=%237e56c2\u0026style=for-the-badge\" alt=\"Stars\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://pypi.org/project/py-assimilator/\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/last-commit/knucklesuganda/py_assimilator?color=%237e56c2\u0026style=for-the-badge\" alt=\"Last commit\"\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n\n\n## Install now\n* `pip install py-assimilator`\n\n## What is that all about?\n\n1. We want to write the best code.\n2. We need the best patterns and techniques for this.\n3. We use PyAssimilator and save lots of time.\n4. We use PyAssimilator and write the best code.\n4. We use PyAssimilator and use the best patterns.\n6. We use PyAssimilator and have no dependencies in our code.\n7. We use PyAssimilator and can switch one database to another in a matter of seconds.\n7. We learn PyAssimilator once and use it forever!\n7. **And most importantly, we make Python projects better!**\n\n\n## Code comparison\n\nBefore PyAssimilator:\n```Python\n# BAD CODE :(\n\ndef create_user(username: str, email: str):\n    # NO PATTERNS!\n    # ONLY ONE DATABASE CHOICE!\n    new_user = User(username=username, email=email, balance=0) # DEPENDENCY!\n    session = db_session()  # DEPENDENCY!\n    session.add(new_user)\n    session.commit()  # NO ACID TRANSACTIONS!\n    return new_user\n\n```\n\nAfter:\n```Python\n# GOOD CODE :)\n\ndef create_user(username: str, email: str, uow: UnitOfWork):\n    # BEST DDD PATTERNS\n    # PATTERN SUBSTITUTION/MULTIPLE DATABASES AT ONCE\n\n    with uow:   # ACID TRANSACTIONS IN ANY DATABASE\n        new_user = uow.repository.save(\n            username=username,  # NO MODEL DEPENDENCIES\n            email=email,\n            balance=0,\n        )\n        uow.commit()    # AUTO ROLLBACK\n\n    return new_user\n\n```\n\n## So, do I really need it?\n\nIf you want to spend less time writing your code, but write better code - then you must use PyAssimilator.\nIt can be hard to start if you have no experience with good code, so you can watch creator's [video tutorials](https://knucklesuganda.github.io/py_assimilator/video_tutorials/).\n\n\n## Our vision\n\nMake Python the best programming language for enterprise development and use all of its dynamic capabilities to write\nthings that other languages can't even comprehend!\n\n- Pattern substitution(switch databases easily) ✔️\n- Event-based apps(in development) 🛠️\n- 45% of all Python projects use PyAssimilator 🛠️\n- Independent code(in development) 🛠️\n- Adaptive patterns(in development) 🛠️\n- Automatic code improvements(in development) 🛠️\n- Decentralized code management(in development) 🛠️\n\nIf you want to help with any of those things - be free to contribute to the project. Remember, you never do anything for\nfree - and that will not be the case either.\n\n## Sources\n* [Github](https://github.com/knucklesuganda/py_assimilator)\n* [PyPI](https://pypi.org/project/py-assimilator/)\n* [Documentation](https://knucklesuganda.github.io/py_assimilator/)\n* [Github](https://github.com/knucklesuganda/py_assimilator)\n* [Author's YouTube RU](https://www.youtube.com/channel/UCSNpJHMOU7FqjD4Ttux0uuw)\n* [Author's YouTube ENG](https://www.youtube.com/channel/UCeC9LNDwRP9OfjyOFHaSikA)\n* [Discord channel](https://discord.gg/gTVaGu7DHN)\n* [Donations](https://www.donationalerts.com/r/pyassimilator)\n\n ## Contributors\n\n\u003ca href=\"https://github.com/knucklesuganda/py_assimilator/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=knucklesuganda/py_assimilator\" /\u003e\n\u003c/a\u003e\n\n## Stars history\n\n[![Star History Chart](https://api.star-history.com/svg?repos=knucklesuganda/py_assimilator\u0026type=Date)](https://star-history.com/#knucklesuganda/py_assimilator\u0026Date)\n\n\n# Donate and create your own framework!\n\n[Donate using this link](https://www.donationalerts.com/r/pyassimilator) and help PyAssimilator prosper! You can also request a feature that you want to see in our framework and we will have it in our priority list!\n\n\n## ⭐Stargazers⭐\n\nWe love all people who star our library. You can look at all stargazers in the documentation:\n\nhttps://knucklesuganda.github.io/py_assimilator/#stars-history\n\n\u003e If you star the library you will appear there as well!\n\n\n## Types of patterns\nThese are different use cases for the patterns implemented:\n\n- Database - patterns for database/data layer interactions.\n- Events(in development) - projects with events or event-driven architecture.\n- Unidentified - patterns that are useful for different purposes.\n\n## Available providers\nProviders are different patterns for external modules like SQLAlchemy or FastAPI.\n\n- Alchemy(Database, Events) - patterns for [SQLAlchemy](https://docs.sqlalchemy.org/en/20/) for both database and events.\n- Kafka(Events) - patterns in [Kafka](https://kafka.apache.org/) related to events.\n- Internal(Database, Events) - internal is the type of provider that saves everything in memory(dict, list and all the tools within your app).\n- Redis(Database, Events) - redis_ allows us to work with [Redis](https://redis.io/) memory database.\n- MongoDB(Database) - mongo allows us to work with [MongoDB](https://www.mongodb.com/) database.\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknucklesuganda%2Fpy_assimilator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknucklesuganda%2Fpy_assimilator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknucklesuganda%2Fpy_assimilator/lists"}