P3orm

Latest version: v0.10.3

Safety actively analyzes 723177 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 4

0.3.2

Features

* Add support for prefetching relationships
* Default relationship fetch type to `Sequence[Sequence[_Relationship]]` over tuples - easier to pass in as lists over tuples

Bug fixes
* Loading empty relationships removes the `UNLOADED` instance and converts to `None` for foreign key and `[]` for reverse relationship

0.3.1

Features

* Add ability to connect with a connection pool with `_Porm.connect_pool()`
* Calling `_Porm.disconnect()` when already disconnect results in a no op
* Creating a connection or pool when one already exists will raise a `p3orm.exceptions.AlreadyConnected` exception

0.3.0

Features

* Downgraded to older annotations to support older versions of Python
* Testing and support for Python `3.8` and `3.9`

0.2.3

Breaking changes

* Renamed `Table.delete` to `Table.delete_where`

Features

* Added PyPika query shortcuts for common queries
* `Table.select`
* `Table.update`
* `Table.delete`
* `Table.from_`
* `_Porm.execute` and `_Porm.execute_many` can accept a SQL string or a `PyPika.queries.QueryBuilder`

0.2.2

Breaking changes

* `fetch_related` returns net new objects, rather than modifying them in place

0.2.1

Support for

* `asyncpg` types
* `Pydantic` models as records
* `PyPika` queries

Features
* Creating
*
* `insert_one`
* `insert_many`
* Retrieving
* `fetch_all`
* `fetch_first`
* `fetch_one`
* Updating
* `update_one`
* Deleting
* `delete_one`
* Relationships
* `ForeignKeyRelationship`
* `ReverseRelationship`

Page 4 of 4

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.