Socket
Socket
Sign inDemoInstall

pycturing

Package Overview
Dependencies
2
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    pycturing

yet a captcha library


Maintainers
1

Readme

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}')

Keywords

FAQs


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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc