Py-lamina

Latest version: v3.0.0

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

Scan your dependencies

Page 3 of 3

1.1.0

Features

* feat: Add custom headers support and content type updates for lamina

Custom header support has been added to the "lamina" decorator. Now, on returning a dictionary consisting of headers in the tuple, it gets merged with the existing headers. This will provide users with the ability to add custom values to the response headers.

In addition, updates were made to the content type handling. Content type can now be optionally defined for the decorated functions. Changes were made to the return statement of the response.

New tests were added to validate these changes and updates to the README were made to document the new feature and changes. ([`9cec3b6`](https://github.com/megalus/lamina/commit/9cec3b6dd9fe2792d7f99a16fff2941bbfe42e2b))

Unknown

* Merge remote-tracking branch 'origin/main' ([`1abaea9`](https://github.com/megalus/lamina/commit/1abaea9b7803a6b4375ae580e85d6553293bd5e4))

1.0.4

Features

* feat: Add support for content type declaration in lamina decorator

This commit introduces a new optional parameter `content_type` in the `lamina` decorator, which allows selecting the desired content type (JSON, HTML, or TEXT). Previously, the content type was hard-coded as "application/json; charset=utf-8".

The new `Lamina` enum was introduced in the `helpers.py` file to manage content-type options.

Additionally, new unit tests were added to the `test_content_type.py` for testing the newly introduced feature. ([`15f4dfb`](https://github.com/megalus/lamina/commit/15f4dfbca6a9e6385cd61e2c52e94aa90198a22e))

Fixes

* fix: remove poetry.lock from lib ([`779db8e`](https://github.com/megalus/lamina/commit/779db8e6607caf01df5ed8c55a5876551f22a6b5))

Unknown

* Merge remote-tracking branch 'origin/main' ([`cea8573`](https://github.com/megalus/lamina/commit/cea8573126749a0038a9d6e7308455da3d03d4c7))

1.0.3

Continuous Integration

* ci: update pre-commit ([`1ac6f02`](https://github.com/megalus/lamina/commit/1ac6f02d371468472f8de9621f03a4ff78b3f049))

Fixes

* fix: return Validation Errors during response serialization as an Internal Server Error ([`ee9eef6`](https://github.com/megalus/lamina/commit/ee9eef63fc53a4c8365abcaa0bed74a317899930))

1.0.2

Unknown

* Merge remote-tracking branch 'origin/main' ([`28603e4`](https://github.com/megalus/lamina/commit/28603e40614961e5cb72cae45fa4d8052377ac88))

1.0.1

Continuous Integration

* ci: change package name to avoid duplication error ([`95eb3c0`](https://github.com/megalus/lamina/commit/95eb3c0797c3a80e6f7ff6649a083587f4a27878))

Fixes

* fix: add missing asyncio helper for running sync methods in asynchronous code. ([`f9ae6f2`](https://github.com/megalus/lamina/commit/f9ae6f2c7c30b77205b96c61d63665214ea0667d))

* fix: Change Pypi package name to `py-lamina` ([`75ccf12`](https://github.com/megalus/lamina/commit/75ccf126b55027b634582741d3140385ebd9505c))

1.0.0

Breaking

* feat!: Add first public version

BREAKING CHANGE: Please check README.md for installing and usage this library. ([`cc2aca7`](https://github.com/megalus/lamina/commit/cc2aca7c788be9fddbe80aaeb5bf6df363880252))

Continuous Integration

* ci: normalize initial version ([`dff3b69`](https://github.com/megalus/lamina/commit/dff3b69d84b62a1f38c07b62e0d6df98c6e9a9d9))

Unknown

* Initial commit ([`4d1e58a`](https://github.com/megalus/lamina/commit/4d1e58afae69b6e9bb1e0b21a27e7cb38a42fc00))

Page 3 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.