{"repo":"iloveitaly/activemodel","free":true,"listed":false,"github":"https://github.com/iloveitaly/activemodel","clone":"git clone https://github.com/iloveitaly/activemodel.git","description":"SQLModel with developer ergonomics. Make SQLModel act like ActiveRecord.","language":"Python","stars":23,"topics":["activemodel","activerecord","orm","sqlalchemy","sqlmodel"],"license":"MIT","category":"databases-storage","readme_excerpt":"ActiveModel: ORM Wrapper for SQLModel No, this isn't really ActiveModel. It's just a wrapper around SQLModel that provides a ActiveRecord-like interface. SQLModel is not an ORM. It's a SQL query builder and a schema definition tool. This drives me nuts because the developer ergonomics are terrible because of this. This package provides a thin wrapper around SQLModel that provides a more ActiveRecord-like interface with things like: ActiveRecord-style Query & Persistence API : Fluent methods like save() , where() , find or create by() , and upsert() for intuitive database operations. Implicit Session Management : Automatically handles database sessions, eliminating boilerplate and making database interactions feel \"magic\". Stripe-style IDs (TypeID) : Native support for type-safe, prefixed, and sortable UUIDs with a built-in TypeIDPrimaryKey . whenever datetime types : Optional integration for whenever.Instant , whenever.PlainDateTime , and whenever.ZonedDateTime as first-class field annotations. Timestamp Column Mixins : Standard created at and updated at tracking out of the box. Lifecycle Hooks : Rails-style callbacks like before save , after create , and around delete . Automatic DB Comments : Syncs class and field-level docstrings directly to database table and column comments for better self-documentation. Soft Deletion : Easily mark records as deleted with a deleted at timestamp using the SoftDeletionMixin . Smart Table & Constraint Naming : Consistent snake case table na","default_branch":null,"files":null,"tree":[],"storefront":"/r/iloveitaly","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/iloveitaly/activemodel/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}