Starlette-web

Latest version: v0.1.9

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

Scan your dependencies

Page 1 of 2

0.1.9

**BREAKING INCOMPATIBLE CHANGES**

- `settings.DB_USE_CONNECTION_POOL_FOR_MANAGEMENT_COMMANDS` removed in favor of command line option `--use_pool`
- added `settings.SKIP_CHECKS` and `--skip_checks` to control, whether checks should be skipped on application startup

**CHANGES**

- Fixed to py_win_task_scheduler on Windows: added warning, if `show` command has insufficient priviledges, also show reason of error
- Added decorator for `marshmallow.fields.Method` to introspect its schema for `apispec`
- Allow passing context to `_validate` and `_response` methods of `BaseHTTPEndpoint`
- Use `ExitStack` instead of `nullcontext` (which is not available until Python 3.11)
- Add missing dependency exceptiongroup (which is not automatically installed on Python 3.12)
- Tested and documented authentication for websockets
- (Partially) fixed possible backpressure problem on Channels with InMemoryChannel
- Fixed error in `AnonymousUser`

0.1.8

- Refactored InMemoryChannelLayer, allow setting `max_buffer_size`
- Fix bug in Channels, where publishing within other subscribe loop with InMemoryChannelLayer could lead to deadlock
- Use StarletteJSONEncoder for jwt.encode
- Allow using password validation with generic BaseUserMixin
- Additional options to supply error detail, fix certain condition when error detail was not returned
- Fixed Dockerfile with respect to new version of starlette/github CI

0.1.7

- Updated requirements' versions
- Added experimental support of MQTT channel layer (atop of gmqtt)
- Allow custom kwargs on Channel `subscribe` and `publish` methods
- Added option to switch between `date` and `auto incrementing` (django-like) prefix for migrations (by Merser4)
- Introspection for API schemas classnames collisions
- Introspection for API path params
- Added example of per-route middleware (like `decorator_from_middleware`)
- Refactoring (--settings, channels, apps validations, aiosmtplib, etc.)

0.1.6

- Renamed EnumTypeColumn to ChoiceColumn
- Force `ChoiceColumn` to only accept subclass of `starlette_web.common.utils.choices.Choices`
- Make Choices accept labels
- Allow passing non-empty response body for 204, 304 status codes (circumvents specific uvicorn check)

0.1.5

**BREAKING INCOMPATIBLE CHANGES**:
- Removed deprecated ModelMixin. Now only SQLAlchemy.ORM should be used for all queries.

Fixes:
- fixed shielding in base websocket endpoint and test chat endpoint
- fixed nginx sample config
- added missing `chardet` dependency
- reverted using `async with` in base http endpoint

Additions:
- added `StorageManager` interface
- added non-zero retry intervals for all locks

0.1.4

**BREAKING CHANGE** -- deprecated response_status in BaseHttpEndpoint, default error_schema and response now return payload directly. You have to manually change default renderer and error_schema, should you want to implement otherwise.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.