yet a captcha library
Project description
pycturing
安装
pip install pycturing
使用
from pycturing.util import roll_text
from pycturing.text import TextPycturing
tp = TextPycturing()
# 随机地生成图像和答案
p1 = './debug/a.png'
r1 = tp.save(p1)
print(f'result 1: {r1} => {p1}')
# 把答案写到文件名里面
r2 = roll_text(length=5)
p2 = f'./debug/{r2}.png'
tp.save(p2, text=r2)
print(f'result 2: {r2} => {p2}')
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
pycturing-0.0.3.tar.gz
(9.2 MB
view details)
Built Distribution
File details
Details for the file pycturing-0.0.3.tar.gz
.
File metadata
- Download URL: pycturing-0.0.3.tar.gz
- Upload date:
- Size: 9.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5618eeeb0651e50c8955328c8cda10c9bc134623165d11cbe276a212642169a |
|
MD5 | 33d21b78bb5a36dbbec8486c9e3a5a74 |
|
BLAKE2b-256 | c1121c7060f61e7e6b6011374ebe840a514885501631f38e75c3b79a7fd03f02 |
File details
Details for the file pycturing-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: pycturing-0.0.3-py3-none-any.whl
- Upload date:
- Size: 9.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41f79b532c9a3bb9890c3584b52b5a0e8c6bc733a91e2489a02fc6aa90191b33 |
|
MD5 | da08d00a9aa4dfd07ac22aaca93ebf5c |
|
BLAKE2b-256 | d067eaf09200aeeb44171d238754cb7ab28b260c885711653c4fd53e801aac4d |