Package: py-assimilator
Assimilator - the best Python patterns for the best projectsInstall nowpip install py-assimilatorWhat is that all about?We want to write the best code.We need the best patterns and techniques for this.We use PyAssimilator and save lots of time.We use PyAssimilator and write the best code.We use PyAssimilator and use the best patterns.We use PyAssimilator and have no dependencies in our code.We use PyAssimilator and can switch one database to another in a matter of seconds.We learn PyAssimilator once and use it forever!And most importantly, we make Python projects better!Code comparisonBefore PyAssimilator:# BAD CODE :(defcreate_user(username:str,email:str):# NO PATTERNS!# ONLY ONE DATABASE CHOICE!new_user=User(username=username,email=email,balance=0)# DEPENDENCY!session=db_session()# DEPENDENCY!session.add(new_user)session.commit()# NO ACID TRANSACTIONS!returnnew_userAfter:# GOOD CODE :)defcreate_user(username:str,email:str,uow:UnitOfWork):# BEST DDD PATTERNS# PATTERN SUBSTITUTION/MULTIPLE DATABASES AT ONCEwithuow:# ACID TRANSACTIONS IN ANY DATABASEnew_user=uow.repository.save(username=username,# NO MODEL DEPENDENCIESemail=email,balance=0,)uow.commit()# AUTO ROLLBACKreturnnew_userSo, do I really need it?If you want to spend less time writing your code, but write better code - then you must use PyAssimilator.
It can be hard to start if you have no experience with good code, so you can watch creator'svideo tutorials.Our visionMake Python the best programming language for enterprise development and use all of its dynamic capabilities to write
things that other languages can't even comprehend!Pattern substitution(switch databases easily) ✔️Event-based apps(in development) 🛠️45% of all Python projects use PyAssimilator 🛠️Independent code(in development) 🛠️Adaptive patterns(in development) 🛠️Automatic code improvements(in development) 🛠️Decentralized code management(in development) 🛠️If you want to help with any of those things - be free to contribute to the project. Remember, you never do anything for
free - and that will not be the case either.SourcesGithubPyPIDocumentationGithubAuthor's YouTube RUAuthor's YouTube ENGDiscord channelContributorsStars history⭐Stargazers⭐We love all people who star our library. You can look at all stargazers in the documentation:https://knucklesuganda.github.io/py_assimilator/#stars-historyIf you star the library you will appear there as well!Types of patternsThese are different use cases for the patterns implemented:Database - patterns for database/data layer interactions.Events(in development) - projects with events or event-driven architecture.Unidentified - patterns that are useful for different purposes.Available providersProviders are different patterns for external modules like SQLAlchemy or FastAPI.Alchemy(Database, Events) - patterns forSQLAlchemyfor both database and events.Kafka(Events) - patterns inKafkarelated to events.Internal(Database, Events) - internal is the type of provider that saves everything in memory(dict, list and all the tools within your app).Redis(Database, Events) - redis_ allows us to work withRedismemory database.MongoDB(Database) - mongo allows us to work withMongoDBdatabase.