Prevent duplicate form submission within a cooldown period
Project description
form_guard
Prevent users from submitting the same form data within a cooldown period.
Usage
from form_guard import FormGuard
guard = FormGuard(300)
user_id = 123
data = {"email": "test@example.com"}
if guard.is_allowed(user_id, data):
print("Allowed")
else:
print("Duplicate — blocked")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sara_form_gaurd-0.1.0.tar.gz
(2.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sara_form_gaurd-0.1.0.tar.gz.
File metadata
- Download URL: sara_form_gaurd-0.1.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63cf9b898dc839dbfac8a18072f407e2acb507c33c74c07b4042b9184f2700ab
|
|
| MD5 |
bd3cab4ad71207824585ea53187e4a9f
|
|
| BLAKE2b-256 |
bee23d282e57ea5b3b2a162913871485b83cf6120f70164d7282855567e5b7e7
|
File details
Details for the file sara_form_gaurd-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sara_form_gaurd-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c7eae63c08facf624a6374ea54aa240329622c37b794464273d753f0ed5407e
|
|
| MD5 |
488c6d4b89effe987db78ee75c1c8484
|
|
| BLAKE2b-256 |
46947b0fcb7b61e06f46c522a7715be7ef8e226babd2fdc23d90031f573c861a
|