Fastapi-cruddy-framework

Latest version: v1.6.0

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

Scan your dependencies

Page 1 of 10

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.

1.4.10

- Correct swagger examples for pure string IDs
- Add CruddyStringIDModel class (with good default ID validation opinion)

1.4.9

- Allows `echo` parameter to be adjusted on DB adapters
- Always closes DB sessions, even if commit succeeds. This fixes a possible issue where very long running DB connection's sessions could become stale if the session timeout was very high.

1.4.8

- Fixes controller hook emulation bug on many-to-one relational endpoint.

Page 1 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.