Skip to main content

fiCaptcha

Module for image-captcha generation

Install

Build from source

git clone https://github.com/0x7o/fiCaptcha
cd fiCaptcha
pip install .

Python pip install

pip install ficaptcha

Usage

Image Captcha

Create a folder with images for captcha:

├── images
│   ├── toy
│       ├── toy1.png
│       ├── toy2.png
│       └── ...
│   └── fox
│       ├── fox1.png
│       ├── fox2.png
│       └── ...

Import the library and create a class

  • size=(256, 256) - Captcha size in pixels
  • image_dir="images" - Image folder for captcha
  • background_color="white" - Background Color
  • noise_bg=True - Whether or not to add noise to the background
  • noise_im=True - Whether or not to add noise to the images
  • rotate_im=True - Rotate images or not
  • count_images=5 - Number of images on the captcha
from ficaptcha.image import Captcha

c = Captcha(size=(256, 256), image_dir="images", rotate_im=False)

Let's generate our captcha

result = c.generate()
print(result)
{'class': 'toy', 'file': 'images/toy/toy5.png', 'position': (17, 139)}

Metadata

Release files for ficaptcha 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ficaptcha 1.0.4
File Size Uploaded Provenance Actions
ficaptcha-1.0.4.tar.gz 7.9 kB Without provenance Details for ficaptcha-1.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ficaptcha 1.0.4
File Interpreter ABI Platform Actions
ficaptcha-1.0.4-py3-none-any.whl Python 3 none any Details for ficaptcha-1.0.4-py3-none-any.whl

Total release size: 18.0 kB

Release files / ficaptcha-1.0.4.tar.gz

Download URL ficaptcha-1.0.4.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
6b0246b29f1cd7363f3e9ac0d0117c920fd1152939e3ff2f777882db829326d5
BLAKE2b-256 checksum
How to use checksums
bdbc9b0154e58f6c519f2d425aaf2604b0849cfcd1c71131db4f25e29aa56d72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.7

Release files / ficaptcha-1.0.4-py3-none-any.whl

Download URL ficaptcha-1.0.4-py3-none-any.whl
Size 10.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ce8c78a7f538ccd31e298dc4d31e7fe13a3091a898b6633a9004134e01724ad
BLAKE2b-256 checksum
How to use checksums
229085341d49059b771560a5faeb66135e6bb460b791503c744b70e7bd638d0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.7

Security for ficaptcha 1.0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page