Giter VIP home page Giter VIP logo

maida's Introduction

maida

目前:

  1. 用于发送邮件
  2. 小说图片转文字

安装

可以直接 pip 安装

pip install maida

mail

EmailSender

基于 smtplib 的发送邮件脚本

1. 可以发送文本
2. 可以发送图片
3. 可以发送附件(图片、文件等),附件文件名可以包含中文
4. 可以群发邮件
5. 可以设置邮件优先级(如标红)

demo

from maida import EmailSender

email_sender = EmailSender(email_host='smtp.qq.com', email_port=465, from_addr='[email protected]', email_pass='xxx')
content = '这是 maida 发送过来的邮件。请注意查收!'
email_sender.attach_text(text=content)
email_sender.attach_file(r'C:\xxx\xx.jpg')
email_sender.attach_file(r'C:\xxx\xx.txt')
email_sender.send(to_addrs=['[email protected]'], subject='测-试')

ocr【可选】

安装方式

pip install maida[ocr]

win 平台安装时若报 python-levenshtein 安装失败请根据提示安装相应环境

或在 https://www.lfd.uci.edu/~gohlke/pythonlibs/#python-levenshtein 使用 whl 安装

img_2_cn

基于 cnocr 的小说图片转中文文字脚本

这里提供了一个来源于网上的小说图片样例

可以看出识别效果还是不错的

demo

from maida.ocr import img_2_cn

print(img_2_cn('xxx.gif'))

版本历程

详见 history.md

maida's People

Contributors

lzc6244 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.