om26er / sigvalidate

Advanced Signature Validation using Python's Type Hinting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SigValidate: Signature Validation using Type Hinting

This library makes use of Python's type hinting by validating the signature of your functions. The aim is to reduce boilerplate code as much as possible.

Show me some code

A basic function that must be called with a string of exactly 10 characters would look like

from sigvalidate.validator import type_check
from sigvalidate.types import Str


@type_check
def test(name: Str[10]):
    print(name)

TBD

About

Advanced Signature Validation using Python's Type Hinting


Languages

Language:Python 100.0%