retoor 916fbd8b85
devranta build / Build (push) Failing after 1m15s
Updated build.
2024-12-14 22:27:09 +01:00
2024-12-14 22:27:09 +01:00
2024-12-14 21:45:36 +01:00
2024-12-14 22:25:13 +01:00
2024-12-14 12:18:25 +00:00
2024-12-14 21:45:36 +01:00
2024-12-14 18:32:29 +01:00
2024-12-14 22:23:24 +01:00
2024-12-14 21:45:36 +01:00

form

Rest form generator / validator with CSRF support

Usage

async with aiohttp.ClientSession():
    response = await aiohttp.post("[base_url]/create/",data=dict(
        firstname=dict(
            type="string",
            max_length=20,
            min_length=2,
            required=True,
            default=""
        ),
        age=dict(
            type="number",
            min_value=16,
            max_value=99,
            required=False,
            default=22
        ),
        captcha=dict(
            type="captcha",
            width=100,
            height=40
        )
    ))
    form = await response.json()
    # form is now exactly your payload with an extra field called csrf.
S
Description
Rest form generator / validator with CSRF support
Readme
198 KiB
Languages
Python 75.8%
Makefile 24.2%