Slim

Latest version: v0.6.2

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

Scan your dependencies

Page 5 of 6

0.4.4

* Added: decorator `auth_role` and decorator generator `get_cooldown_decorator`

* Added: Type hints for UserViewMixin

* Changed(break): Rewrite `BaseUserViewMixin`.

* Changed(break): Python 3.6 required

0.4.3

* Changed: Renamed `XXConverter` to `XXParser`

* Changed: Renamed `EMPTY_PERMISSION` to `NO_PERMISSION`

0.4.2

* Added: `LIST_PAGE_SIZE_CLIENT_LIMIT` for view

* Changed(break): list api does not return `NOT_FOUND` anymore

* Changed(break): Removed `app.route.get` `app.route.post` `app.route.head` and so on

* Fixed: Can not insert record with empty data

0.4.1

* Fixed: compatible with peewee [3.8.2](https://github.com/coleifer/peewee/releases/tag/3.8.2).

* Fixed: slim-cli not work

0.4.0

* Added: `view.temp_storage` for save values during the request

* Added: `app.permission` option, it can be set to `ALL_PERMISSION`, `NO_PERMISSION` or a `Permissions` object

* Added: **`view.current_user` throw a Exception when current View not inherited from `BaseUserViewMixin`**

* Added: Accept 'Application/json' content as post data [2](https://github.com/fy0/slim/pull/2)

* Added: Application hooks: `on_startup`, `on_shutdown`, `on_cleanup` [3](https://github.com/fy0/slim/pull/3)

* Added: New finish method `finish_raw(body: bytes, status: int=200, content_type=None)` [3](https://github.com/fy0/slim/pull/3)

* Changed: `get_current_user` can works with async function

* Changed(break): Renamed `view.current_role` to `view.current_request_role`

* Changed(break): Renamed `view.current_user_roles` to `view.roles`

* Changed(break): Renamed `BaseUserMixin` to `BaseUserViewMixin`

* Changed(break): Renamed `BaseSecureCookieUserMixin` to `BaseSecureCookieUserViewMixin`

* Changed(break): Renamed `BaseAccessTokenUserMixin` to `BaseAccessTokenUserViewMixin`

* Changed(break): Renamed `BaseAccessTokenInParamUserMixin` to `BaseAccessTokenInParamUserViewMixin`

* Changed(break): Renamed `app.permissions` to `app.table_permissions`

* Removed(break): `view.permission_init` function

* Changed: template update

* Fixed: compatible with current aiohttp version (3.5).

* Fixed: `psycopg2` not required for `PeeweeView`

0.3.14

* Added: the keys startswith '$' in params and postdata will be ignore for database query.

* Changed: `prepare` and `on_finish` method mustn't be an async function anymore.

* Changed: callbacks of insert(`view.before_insert` and `view.after_insert`) changed. It's a break change.

* Fixed: a critical permission bug for all versions, upgrade immediately!!!

Page 5 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.