Compare commits

..
3 Commits
Author SHA1 Message Date
retoor ab19504738 First working version.
devranta build / Build (push) Failing after 6s
2024-12-14 21:45:36 +01:00
retoor 7ae5e613b7 Initial commit. 2024-12-14 18:32:29 +01:00
retoor ba66c10ee3 Initial commit 2024-12-14 12:18:25 +00:00
3 changed files with 12 additions and 38 deletions
+11 -4
View File
@@ -13,12 +13,19 @@ jobs:
- name: List files in the repository - name: List files in the repository
run: | run: |
ls ${{ gitea.workspace }} ls ${{ gitea.workspace }}
- name: Ensure environment
run: make ensure_env
- name: Install package
run: make install
- name: Build new package - name: Build new package
run: make build run: make build
- name: Install package
run: make install
- name: Run application
run: make run
- name: Test application - name: Test application
run: make test run: make test
- name: Push new packages
run: |
git add .
git config --global user.email "bot@molodetz.nl"
git config --global user.name "bot"
git commit -a -m "New build."
git push
-5
View File
@@ -1,9 +1,4 @@
# ---> Python # ---> Python
.vscode
.history
form.db*
# Byte-compiled / optimized / DLL files # Byte-compiled / optimized / DLL files
__pycache__/ __pycache__/
*.py[cod] *.py[cod]
+1 -29
View File
@@ -1,31 +1,3 @@
# form # form
Rest form generator / validator with CSRF support 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.
```