prune_captcha 1.12.0__py3-none-any.whl → 1.12.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: prune_captcha
3
- Version: 1.12.0
3
+ Version: 1.12.2
4
4
  Summary: A tool to protect formulaire from spam.
5
5
  Author-email: Arnout <bastien@prune.sh>
6
6
  Project-URL: Made_by, https://prune.sh/
@@ -68,14 +68,14 @@ PUZZLE_IMAGE_STATIC_PATH = "website/static/website/images/puzzles/"
68
68
 
69
69
  - GET request (form display)
70
70
 
71
- - Use create_captcha to generate the captcha data:
71
+ - Use create_and_get_captcha to generate the captcha data:
72
72
 
73
73
  ```python
74
- from captcha_prune.utils import create_captcha
74
+ from captcha_prune.utils import create_and_get_captcha
75
75
  ```
76
76
 
77
77
  ```python
78
- puzzle = create_captcha(request)
78
+ puzzle = create_and_get_captcha(request)
79
79
  ```
80
80
 
81
81
  - Passes the data into the context under the puzzle variable:
@@ -96,24 +96,26 @@ PUZZLE_IMAGE_STATIC_PATH = "website/static/website/images/puzzles/"
96
96
 
97
97
  - POST request (form submission)
98
98
 
99
- - Use verify_captcha to validate the captcha:
99
+ - Use verify_captcha to validate the captcha:
100
100
 
101
- ```python
102
- from captcha_prune.utils import verify_captcha
103
- ```
101
+ ```python
102
+ from captcha_prune.utils import verify_captcha
103
+ ```
104
104
 
105
- ```python
106
- response = verify_captcha(request)
107
- ```
105
+ ```python
106
+ response = verify_captcha(request)
107
+ ```
108
108
 
109
- - True if the captcha is correct, else False.
109
+ - True if the captcha is correct, else False.
110
110
 
111
- - Redirects in case of incorrect captcha.
111
+ - Redirects in case of incorrect captcha.
112
112
 
113
113
  # Available Versions
114
114
 
115
115
  | Version | Date | Notes |
116
116
  | ------- | ---------- | ---------------------------------- |
117
+ | 1.12.2 | 2025-05-21 | doc fixed |
118
+ | 1.12.1 | 2025-05-21 | doc fixed |
117
119
  | 1.12.0 | 2025-05-21 | removed views, added utils, ... |
118
120
  | 1.11.0 | 2025-05-21 | removed utils |
119
121
  | 1.10.0 | 2025-05-20 | fix documentation, removed ... |
@@ -14,7 +14,7 @@ commons/base_model.py,sha256=q1Q7lgtvN_t6ujhEiSsNNXb_ay0qY6FbfK0Zm2Hdgp0,213
14
14
  tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
15
  tests/captcha_prune/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  tests/captcha_prune/test_views.py,sha256=h-Mrdiprh71s7kIJPYAt6xv4G_S7vp51WCpAzy4CZ6U,2364
17
- prune_captcha-1.12.0.dist-info/METADATA,sha256=sU70ylcO8ntgm7y1CZqPQiEmwI7Yf-rXULvoZxn10Dw,3443
18
- prune_captcha-1.12.0.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
19
- prune_captcha-1.12.0.dist-info/top_level.txt,sha256=EB4h0WF_YGF7kAWB0XtqmuloOhkL5pC71CzgEVYam7w,28
20
- prune_captcha-1.12.0.dist-info/RECORD,,
17
+ prune_captcha-1.12.2.dist-info/METADATA,sha256=au5j11PrwDHhnBX3aEsK5n1kd8Lli0SO3tX9NGbFU-4,3554
18
+ prune_captcha-1.12.2.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
19
+ prune_captcha-1.12.2.dist-info/top_level.txt,sha256=EB4h0WF_YGF7kAWB0XtqmuloOhkL5pC71CzgEVYam7w,28
20
+ prune_captcha-1.12.2.dist-info/RECORD,,