./databases/py-tortoise-orm, Easy async ORM for Python, built with relations in mind

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.24.0, Package name: py312-tortoise-orm-0.24.0, Maintainer: pkgsrc-users

Tortoise ORM is an easy-to-use asyncio ORM (Object Relational Mapper) inspired
by Django.

Tortoise ORM was build with relations in mind and admiration for the excellent
and popular Django ORM. It's engraved in it's design that you are working not
with just tables, you work with relational data.


Required to run:
[time/py-pytz] [time/py-iso8601] [devel/py-uvloop] [databases/py-aiosqlite] [time/py-ciso8601] [databases/py-pypika] [textproc/py-rapidjson] [lang/python310]

Master sites:

Filesize: 140.584 KB

Version history: (Expand)


CVS history: (Expand)


   2025-01-23 17:39:37 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-tortoise-orm: updated to 0.24.0

0.24.0

Fixed
- Rename pypika to pypika_tortoise for fixing package name conflict
- Concurrent connection pool initialization
- `_get_dialects`: support properties

Changed
- Drop support for Python3.8
- Optimize field conversion to database format to speed up `create` and `bulk_create`
- Improved query performance by optimizing SQL generation

0.23.0

Added
- Implement savepoints for transactions
- Added type validation for foreign key fields to ensure type safety. Now raises \ 
`ValidationError` when assigning foreign key values with incorrect model types

Fixed
- Fixed a deadlock in three level nested transactions
- Fix backward_relations in PydanticMeta
   2025-01-22 14:43:39 by Thomas Klausner | Files touched by this commit (2)
Log message:
py-tortoise-orm: fix PLIST for latest poetry-core

Bump PKGREVISION
   2024-12-11 09:29:11 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-tortoise-orm: updated to 0.22.2

0.22.2

Fixed
- Fix bug related to `Connector.div` in combined expressions.
- Fix recovery in case of database downtime

Changed
- Parametrizes UPDATE, DELETE, bulk update and create operations
- Parametrizes related field queries

Added
- CharEnumField and IntEnumField is supported by pydantic_model_creator
   2024-11-25 14:04:12 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-tortoise-orm: updated to 0.22.1

0.22.1

Fixed

- Fix unable to use ManyToManyField if OneToOneField passed as Primary Key
- Fix sorting by Term (e.g. RawSQL)
   2024-11-20 13:53:23 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-tortoise-orm: updated to 0.22.0

0.22.0

Fixed

- Fix enums not quoted, allowing using of str enums for filters
- Primary key field should not be nullable in pydantic schema
- Fix ambiguous column name when grouping with joining
- Fix same model returned by pydantic_model_creator calls with different arguments

Added

- JSONField adds optional generic support, and supports OpenAPI document \ 
generation by specifying `field_type` as a pydantic BaseModel
- Add table_name_generator attribute to Tortoise.init for dynamic table name \ 
generation
- Support for annotation and joins F() expressions
- Allow use of annotate fields within Case-When expression
- Added new queryset methods: last(), latest(), earliest()

Changed

- Change old pydantic docs link to new one
- Refactored pydantic_model_creator, interface not changed
- Values are no longer validated to be right type upon loading from database
- Refactored private field names in queryset classes
   2024-10-14 16:06:45 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-tortoise-orm: updated to 0.21.7

0.21.7

Fixed
- Fix unittest error with pydantic2.9
- Fix bug when using annotate and count at the same time but the annotation does \ 
not match anything, leading to an IndexError
- Added missing field_type for TimeDeltaField
- improve jsonfield type hint
- Fix bug in tortoise.models.Model When a QuerySet uses the only function and \ 
then uses the print function to print the returned result, an AttributeError is \ 
generated
- Update the pylint plugin to latest astroid version

Added
- Add POSIX Regex support for PostgreSQL and MySQL
- support app=None for tortoise.contrib.fastapi.RegisterTortoise
   2024-08-18 22:36:30 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-tortoise-orm: updated to 0.21.6

0.21.6

Fixed

- Fix bug in `pydantic_model_creator` when a foreign key is not included in \ 
`include` param.
- Fix bug in `contrib.sanic.register_tortoise` causing a deadlock when using \ 
asyncpg and > 1 workers
- Open psycopg pool with `.open()` to remove deprecated warning
- Fix bug in `bulk_update` when pk field is not `id`
- Fix mysql uuid compression bug
- Fix comment for fk fields without constraint for mysql
- Removed no_delay option for postgres, as it wasn't doing anything
   2024-07-20 08:22:51 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-tortoise-orm: updated to 0.21.5

0.21.5

Added

- Propagate `_create_db` parameter to RegisterTortoise.