In Frappe, you describe a business object once as a DocType, and the framework creates the database table, the form, the list view, permissions and a REST API from that description. This talk looks under the hood at how Frappe turns metadata into a working app, how customization's are stored as data instead of code changes, and the benefits and costs of this approach. You don't need to use Frappe: you will leave with ideas you can use in Django, Flask or any Python project.
What I will cover
One definition, many outputs (5 min): What a DocType is. A live demo where I create a DocType and get a table, a form, a list view and an API without writing any code.
Under the hood (10 min): How Frappe stores a DocType as JSON and syncs it to the database during migration. How it reads this metadata at runtime to build forms, apply permissions and serve /api/resource/<doctype>. Where Python code fits in, through controller methods such as validate and on_submit, and through hooks.
Customization as data (7 min): How Custom Fields and Property Setters let you change an app for each client without editing its source code, and why this makes framework upgrades easier. Examples come from my work customizing ERPNext for clients.
Trade-offs (5 min): What metadata-driven development makes hard: debugging, performance and code review when the behavior lives in data and not in code.
What to take home (3 min): Ideas you can use without Frappe, for example generating admin screens, APIs or validation from one schema in Django or Flask.
What you will be able to do afterwards
Explain how a metadata-driven framework builds an app from a definition.
Decide when this approach helps a project and when it gets in the way.
Use the same idea in your own Python projects.