knucklesuganda / py_assimilator Goto Github PK
View Code? Open in Web Editor NEWPython Domain-Driven Design, Event-Based Systems, CRUD patterns
Home Page: https://knucklesuganda.github.io/py_assimilator/
License: MIT License
Python Domain-Driven Design, Event-Based Systems, CRUD patterns
Home Page: https://knucklesuganda.github.io/py_assimilator/
License: MIT License
assimilator/core/services/crud.py", line 37, in update
obj.dict.update(update_obj.dict)
Raises an AttributeError: 'NoneType' object has no attribute 'dict'
Because:
line 33: update_obj = self.uow.repository.update()
returns a 'NoneType' object that has no attribute 'dict'
CRUDService update() gives out 'update_obj not defined' errors when using models instead of dictionaries in obj_data.
There is a new class for DeclarativeBase models in SQLAlchemy 2. The problem is in AlchemyRepository
querying. If the model import is different from the one in the Repository creation, then SQLAlchemy adds another SQL table selection to the query. That results in big overheads and possible sql errors.
SELECT * FROM users, users WHERE users.id = 1
However, the query should be:
SELECT * FROM users WHERE users.id = 1
Pydantic released a new version, and PyAssimilator should also support PydanticV2. But, since other libraries and projects do not fully support it yet, our main release is not going to support Pydantic V2 for now. We will add support for Pydantic V2 mid August.
Migration guide: https://docs.pydantic.dev/2.0/migration/
Migration branch: https://github.com/knucklesuganda/py_assimilator/tree/feature/pydantic_v2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.