Fastapi-cruddy-framework

Latest version: v1.10.1

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

Scan your dependencies

Page 2 of 12

1.7.2

- Removes `TaskGroup` usage throughout the library.
- Updates all `AbstractRepository` functions to only ever claim 1 DB session at a time. This prevents session deadlock under massive load.

1.7.1

- Adds a fix to pass the async `session` object to the new DB session hooks in addition to the `request` context.

1.7.0

- Adds `session_setup` and `session_teardown` hooks to all primary DB adapters that allow all CRUD actions to propagate user information all the way to the DB level to enable role-based (and row based!) access control. The session hooks will gain access to the request context of the calling user, allowing app developers to grab request `state` or `session` values and pass them all the way to a DB like MySQL or Postgres.
- Adds greater scrutiny to allowed filter columns in the `where` query forge. Only columns listed as a part of `view` model (response schema) are allowed to be used as filters.

1.6.0

- Adds `CruddyHTTPBearer` class to enable `HTTPBearer` auth on Websockets AND Requests
- Updates `get_state` and `set_state` to accept `HTTPConnection` (Now supports `Request`, `Websocket` and `HTTPConnection`)

1.5.1

- Updates `ResourceRegistry` instance return types (removes `None` as a possible return type)

1.5.0

- Adds config options `disable_relationship_getters`, `custom_sql_identity_function` and `custom_link_identity` to `Resource` and `Repository` classes.
- Leveraging `custom_sql_identity_function`, allows app builders to declare models with composite primary keys that will still work with the auto-generated CRUD routes.
- Adds tests for new functionality.
- Adds `.enable_foreignkey_constraints()` method to sqlite adapter, to allow effortless enabling of foreign key constraints for sqlite-based applications.
- Reorganizes internal `Resource` class code to allow proper PK selection when building shadow models (beyond 'id'), and to allow `custom_link_identity` function to alter Swagger documentation.

Page 2 of 12

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.