Designing a Custom ORM Using Python Metaclasses

Class ↔ Table, an object instance ↔ a row, an object attribute ↔ a column value, object.attribute ↔ field Store an object → dict → JSON → MySQL MySQL → JSON → dict → reconstruct object Convert all attribute names and values of an object into keys and values of a dictionary Serialize the mapping dictionary into JSON format Encode the JSON dat ...

Posted on Thu, 20 Aug 2026 16:33:37 +0000 by Shellfishman

:rocket: Advanced Python Object-Oriented Programming: Dynamic Behavior and Metaclasses

Dynamic Language Fundamentals Python belongs to the family of dynamic programming languages—high-level languages that allow structural modifications during runtime. This category includes JavaScript, PHP, Ruby, and Python itself, while C and C++ represent static alternatives. Dynamic languages enable runtime code alterations: adding functions, ...

Posted on Sun, 09 Aug 2026 16:06:39 +0000 by webbrowser