Skip to main content

A etool package for security monitoring

Project description

安装

使用 pip 安装 etool:

pip install etool

功能与使用示例

网络

测试网络速度

from etool import SpeedManager
SpeedManager.network() # 网络测试
SpeedManager.disk() # 硬盘测试
SpeedManager.memory() # 内存测试
SpeedManager.gpu_memory() # GPU测试

分享屏幕

from etool import screen_share
screen_share() # 分享屏幕

分享文件

from etool import share_file
share_file() # 分享文件

办公

PDF处理

from etool import PdfManager
pdf_file_path = 'ex1.pdf'# pdf文件路径
watermark_file_path = 'watermark.pdf'# 水印文件路径
PdfManager().create_watermarks(pdf_file_path,watermark_file_path) # 给PDF添加水印

docx处理

from etool import DocxManager
word_path = 'ex1.docx'# docx文件路径
result_path = 'result'# 保存路径
DocxManager().get_pictures(word_path,result_path) # 提取docx中的图片至result文件夹

邮件发送

from etool import EmailManager
EmailManager().send_email(
    sender='1234567890@qq.com',
    password='1234567890',
    recipients=['1234567890@qq.com'],
    subject='测试邮件',
    message='测试邮件内容',
    file_path='test.txt',
    img_path='test.jpg'
) # 发送邮件

图片处理

from etool import ImageManager
pics = ['pic1.jpg','pic2.jpg']# 图片路径列表
ImageManager().merge_LR(pics) # 左右拼接
ImageManager().merge_UD(pics) # 上下拼接

表格处理

from etool import ExcelManager
excel_path = 'ex1.xlsx'# excel文件路径
save_path = 'result.xlsx'# 保存路径
ExcelManager().excel_format(excel_path,save_path) # 复制ex1.xlsx的样式到result.xlsx

二维码生成

from etool import QrcodeManager
qr_path = 'qr.png'# 保存路径
QrcodeManager().gen_en_qrcode(words='https://www.baidu.com',qr_path) # 生成不含中文的二维码
QrcodeManager().gen_qrcode(path='百度',qr_path) # 生成含中文的二维码

ipynb转换

from etool import JupyterManager
ipynb_dir = 'ipynb_dir'# ipynb文件夹路径
md_dir = 'md'# md文件夹路径

JupyterManager().merge_ipynb(ipynb_dir) # 合并ipynb文件
JupyterManager().ipynb2md(ipynb_dir+'.ipynb',md_dir) # 将ipynb文件转换为md文件

其他

任务调度

from etool import TaskManager
TaskManager().task_schedule() # 任务调度

密码生成

from etool import PasswordManager
print(PasswordManager().generate_pwd_list(PasswordManager.results['all_letters'] + PasswordManager.results['digits'], 2))
# 生成2位密码的所有可能(可用于密码爆破)
print(PasswordManager().random_pwd(8))
# 随机生成8位密码(随机加密)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

etool-1.3.0.tar.gz (28.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

etool-1.3.0-py3-none-any.whl (31.1 kB view details)

Uploaded Python 3

File details

Details for the file etool-1.3.0.tar.gz.

File metadata

  • Download URL: etool-1.3.0.tar.gz
  • Upload date:
  • Size: 28.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.21

File hashes

Hashes for etool-1.3.0.tar.gz
Algorithm Hash digest
SHA256 6c9aee08f0467f8854291b32cf83e5fcdf89182eaac93b98b95182cd6cfeed15
MD5 2016f2738693e65e90ca4bf6e361dc79
BLAKE2b-256 841fbf2e50349ad272892a8edbce163cb69cb8b6737fee54277734b65c644332

See more details on using hashes here.

File details

Details for the file etool-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: etool-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 31.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.21

File hashes

Hashes for etool-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 94a9d9ec2bd5c540ffa3641bb77a6082e1bef38b097a19242258022bcd114d3d
MD5 8c44bba0f24e96937f247c0d85132aeb
BLAKE2b-256 175e29d51a01acc4a4df90d6576b6abdfb800e39870a2603975a77d7e8e9834d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page