Skip to main content

tangUtils

996.icu

Description

根据个人使用习惯, 将一些 文件、目录、命令行交互 相关操作做了一个语法糖

Installation

> pip install tangUtils

Examples

from tangUtils.main import Dir
from tangUtils.mail import Mail

em = Mail(fromAddr=("王小明", "10086@qq.com"), password="your auth code")

files = Dir("/path/to/dir").files
toAddr = [
  "10000@qq.com",
  ("王钢蛋", "10010@qq.com"),
]
subject = "来自王小明的提醒"
fallbackText="您的客户端无法显示此类型的消息(html), 请换用其它客户端以查看该超文本内容"
html="""
  <!DOCTYPE html>
  <html lang="zh-cn">
  <body>
    <div>您已接收到来自<strong>王小明</strong>的提示</div>
    <!-- 邮箱客户端一般会屏蔽不同域的图片链接, 可以将图片放到附件中 -->
    <!-- src 使用 cid:idx, idx 是图片所在的文件序号 -->
    <img src="cid:1" alt="picture">
  </body>
  </html>
"""

em.sendTo(toAddr=toAddr, subject=subject, fallbackText=fallbackText, html=html, attachment=files)

em.quit()

Release files for tangUtils 0.2.1

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

Source distribution (sdist)

Source distribution for tangUtils 0.2.1
File Size Uploaded
tangUtils-0.2.1.tar.gz 10.7 kB Details

Release files / tangUtils-0.2.1.tar.gz

Download URL tangUtils-0.2.1.tar.gz
Size 10.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f6c4efcd6b6464b4e3bef4944de56b03fbf69b626d0778a0c78cd695a957cdb7
BLAKE2b-256 checksum
How to use checksums
93aa37472b5bf7eb9fe41f5e53afebc6e6514944cd2e30bc89a9d3d6f92a6f09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.6.8

Release history Release notifications | RSS feed

This release

0.2.1 This release

1 release file

0.2.0

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.20

1 release file

0.0.19

1 release file

0.0.18

1 release file

0.0.17

1 release file

0.0.16

1 release file

0.0.15

1 release file

0.0.14

1 release file

0.0.13

1 release file

0.0.12

1 release file

0.0.11

1 release file

0.0.10

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

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