![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Custom WTForms field that handles hCaptcha display and validation.
hCaptcha is a CAPTCHA service that 'protects user privacy, rewards websites, and helps companies get their data labelled'. This helps to prevent spam on websites by adding a challenge to forms that are hard for computers to solve, but easy for humans to solve.
I wanted to use hCaptcha in one of my projects and although there are already Python libraries for working with hCaptcha, I had already used the WTForms ecosystem in that project so I wanted a drop in solution and as there were none at the time, I decided to create my own.
This is a modified version of wtforms-recaptcha
by Artem Gluvchynsky to work with hCaptcha.
Use pip
to install on all systems:
pip install wtforms-hcaptcha
This example creates an empty form with just a CAPTCHA field.
from wtforms.form import Form
from wtforms_hcaptcha import HcaptchaField
class MyForm(Form):
captcha = HcaptchaField(site_key="YOUR_SITE_KEY_HERE", secret_key="YOUR_SECRET_KEY_HERE")
form = MyForm(request.form, captcha={
# note this needs to be edited to get the correct IP address when using a reverse proxy
"ip_address": request.remote_addr
})
if form.validate():
print("You are not a robot!")
else:
print(form.errors["captcha"])
This project uses Poetry to manage dependencies and packaging. Here are the installation instructions for Poetry.
git checkout -b feature/foobar
)git commit -am "Add some foobar"
)git push origin feature/foobar
)FAQs
Custom WTForms field that handles hCaptcha display and validation.
We found that wtforms-hcaptcha demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.