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}')
Release files for pycturing 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pycturing-0.0.3.tar.gz | 9.2 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pycturing-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.3 MB
Release files / pycturing-0.0.3.tar.gz
| Download URL | pycturing-0.0.3.tar.gz |
|---|---|
| Size | 9.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a5618eeeb0651e50c8955328c8cda10c9bc134623165d11cbe276a212642169a
|
|
BLAKE2b-256 checksum How to use checksums |
c1121c7060f61e7e6b6011374ebe840a514885501631f38e75c3b79a7fd03f02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / pycturing-0.0.3-py3-none-any.whl
| Download URL | pycturing-0.0.3-py3-none-any.whl |
|---|---|
| Size | 9.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
41f79b532c9a3bb9890c3584b52b5a0e8c6bc733a91e2489a02fc6aa90191b33
|
|
BLAKE2b-256 checksum How to use checksums |
d067eaf09200aeeb44171d238754cb7ab28b260c885711653c4fd53e801aac4d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|