Def-result

Latest version: v1.0.1

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

Scan your dependencies

0.0.1

Features

* add `def_result`
decorator ([98f9101](https://github.com/Payadel/def_result/commit/98f91010c58f093596d4c9017a1680c34ba6a665))
* add BadRequestError ([59711c8](https://github.com/Payadel/def_result/commit/59711c821cba16527c7654d34a5a7d8c90d745e2))
* add ConflictError ([c37b217](https://github.com/Payadel/def_result/commit/c37b217ed2934fe38fae44d8fda5b885e7c52c48))
* add docstring to Result and
ResultDetail ([381998e](https://github.com/Payadel/def_result/commit/381998e7281e0ead1f7707215e7d28569d792d29))
* add ErrorDetail ([7fb0722](https://github.com/Payadel/def_result/commit/7fb072264a37473ef02d5be459ad94bf320d0e48))
* add ExceptionError ([6ca9f3c](https://github.com/Payadel/def_result/commit/6ca9f3cd57c83107a87ede7d5c97a204aa89a2e6))
* add ForbiddenError ([26575c9](https://github.com/Payadel/def_result/commit/26575c9ef0b9dbf693a718b9c893c0418a7bd38c))
* add InternalError ([c6504fd](https://github.com/Payadel/def_result/commit/c6504fdb236cd6a8264648e5e2ff4f60c0cfd1f2))
* add NotFoundError ([2321dc3](https://github.com/Payadel/def_result/commit/2321dc3b7114aa10872d72536d0d0469f106c2f3))
* add Payadel python package
template ([c8f21a7](https://github.com/Payadel/def_result/commit/c8f21a7394309263b6c74f858e946158b26f8d0b))
* add Payadel readme
template ([cb3e4e0](https://github.com/Payadel/def_result/commit/cb3e4e0ba5559b2ca1756f4c1acb1cb6bfb36d20))
* Add Result and ResultDetail
classes ([bab86c8](https://github.com/Payadel/def_result/commit/bab86c8ab932e874266680c093cebcb3aa7dfffe))
* add some success
details ([35ac92b](https://github.com/Payadel/def_result/commit/35ac92b91c7329be0f51409f7c03055ca7e56dd3))
* add
SuccessDetail.py ([261e631](https://github.com/Payadel/def_result/commit/261e6313448dc3aa824e8bbe3d82fbaf9af3b21a))
* add
UnauthorizedError ([a60234b](https://github.com/Payadel/def_result/commit/a60234b16708c73d8e5041cd2e24dd825711fe00))
* add ValidationError ([fbf0ed7](https://github.com/Payadel/def_result/commit/fbf0ed799f0effd6fa614f8df8402665c22d029d))
* **decorator:** support functions that return
Result ([274bbd3](https://github.com/Payadel/def_result/commit/274bbd33f478390a962160ea1dbee8b31f1c6a3c))

Fixes

* fix more_data type in
ErrorDetail.py ([c29b505](https://github.com/Payadel/def_result/commit/c29b505c1dc7b5fa52985cb798fdde3d27afe75b))
* update docstrings ([122e667](https://github.com/Payadel/def_result/commit/122e6673f5da26a01c6bc80aee8f0543448c02ca))

Development: CI/CD, Build, etc

* **build:** update build.yaml
events ([57bdafc](https://github.com/Payadel/def_result/commit/57bdafc6876c5a2396262e5a03ef6d465c7836a3))
* **codeql:**
fix `python-version` ([0b5f46a](https://github.com/Payadel/def_result/commit/0b5f46ac51793773c25d0ae1d834148294256113))
* ignore some pylint
errors ([234f870](https://github.com/Payadel/def_result/commit/234f870c6fe585aa0d466cecda9f306e57306676))
* **makefile:** add
Makefile ([5b9580f](https://github.com/Payadel/def_result/commit/5b9580fbee927eda7e22508313e02b8233b55f63))
* update
.pre-commit-config.yaml ([933234a](https://github.com/Payadel/def_result/commit/933234ad0940d1fe37b708a7bcfa84cbc3644ab5))

Refactors

* add `assert_more_data` function to
helpers.py ([5be313d](https://github.com/Payadel/def_result/commit/5be313d42a9ccda9aa9002e8261def3d9f6d45d0))

Tests

* add __init__.py to test
directories ([5516040](https://github.com/Payadel/def_result/commit/5516040dd9f0e7f45f9adb04bcf56ac824cff356))
* add test_Result.py ([b82247b](https://github.com/Payadel/def_result/commit/b82247b7dc1a703f28876a790c792bd6ec21aa39))
* fix
test_decorator.py ([f1c4508](https://github.com/Payadel/def_result/commit/f1c4508fdf4bb971c3f371a56140203f081904ce))
* refactor ([9808868](https://github.com/Payadel/def_result/commit/98088680a55a64d2189dada04d44de75809a05cc))
* update
test_ExceptionError.py ([1ba3ddd](https://github.com/Payadel/def_result/commit/1ba3dddb9d8bd39fdc64b1cb8940fa785ae8582a))

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.