mirror of
https://github.com/vinta/awesome-python.git
synced 2026-03-25 20:44:03 -05:00
[PR #1343] [CLOSED] Add Dynamic Analysis section #1186
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/vinta/awesome-python/pull/1343
Author: @roo-oliv
Created: 9/5/2019
Status: ❌ Closed
Base:
master← Head:patch-1📝 Commits (1)
d2f5d81Add Dynamic Analysis section📊 Changes
1 file changed (+7 additions, -0 deletions)
View changed files
📝
README.md(+7 -0)📄 Description
Add a Dynamic Analysis section and include
parameters-validationlib to it.What is this Python project?
parameters-validation lib eases function parameters validation regarding type, content and/or any other custom validations one may wish to perform.
It leverages type-hint annotations to provide a clean and unobstructive way to adopt the Look Before You Leap principle when you need to.
What's the difference between this Python project and similar ones?
There are no similar projects currently. Usually, the developer will write their own validation helper functions and manually call'em. While this is fine, the end result pollutes function bodies with validation actions that are not the core responsibility of a function. Nevertheless, there are simple validations (such as checking if a string is not blank or that a number is not negative) that will be kinda frequent and repeated all over different projects while performing exactly the same functionality.
parameters-validationlib enables removing the validation logic from the function body, explicitly stating validations upfront in the function signature and provides ready-to-use common validations.Here a simple comparison between runtime validations with and without using
parameters-validation:--
Anyone who agrees with this pull request could vote for it by adding a 👍 to it, and usually, the maintainer will merge it when votes reach 20.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.