{"repo":"hanpama/orm1-py","free":true,"listed":false,"github":"https://github.com/hanpama/orm1-py","clone":"git clone https://github.com/hanpama/orm1-py.git","description":"A lightweight ORM working with type hints and asyncio","language":"Python","stars":16,"topics":["asyncio","database","orm"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"orm1 orm1 is a minimal asynchronous Object-Relational Mapping (ORM) library for Python that makes it easy to map your Python classes to PostgreSQL database tables. Built on top of asyncpg, orm1 provides a minimal yet powerful API for CRUD operations, complex query building, and relationship management – all with full async support. --- Features - Asynchronous by Design Leverage Python’s async / await syntax with an asyncpg backend for high-performance, non-blocking database operations. - Auto-mapping with Type Hints Automatically generate entity mappings from your class type hints. orm1 infers column names (using snake case conversion) and even detects relationships (both singular and plural) based on your annotations—greatly reducing boilerplate. - Aggregate Support (Parent-Child Relationship) Define aggregates naturally by specifying child entities that are part of an aggregate. For instance, a Post aggregate can include multiple PostAttachment instances. - Fluent Query Builder Construct complex SQL queries using a Pythonic API. orm1 supports filtering, joins, ordering, and pagination, all while keeping your code readable. - Raw SQL Queries with Safe Parameter Binding Execute raw SQL queries while benefitting from an internal SQL Abstract Syntax Tree (AST) that safely binds parameters, protecting against SQL injection. - Flexible Transaction Management Start and commit transactions with ease, using the session’s transaction context manager tx . Nested transactions are imple","default_branch":null,"files":null,"tree":[],"storefront":"/r/hanpama","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hanpama/orm1-py/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."}