Skip to main content

Python toolkits for RPA projects.

Project description

Python toolkits for RPA projects.

  • logging
  • utility methods
  • cc extensions

Sample

import BotniumPlus as bot
import BotniumPlus.logger as logger
from BotniumPlus.common import *
from clicknium import clicknium as cc, locator

logger = logger.logger
bot.is_existing(locator.explorer.edit_name)  # 判断是否存在
bot.wait_appear(locator.explorer.edit_name)  # 等待元素出现
bot.try_click(locator.explorer.edit_name, wait_timeout=10)  # 如果元素出现,则点击。否则忽略

logger.debug('Debug test logging')
logger.info('Info test logging')

remove_file_if_exists("")  # 移除文件如果存在
toast('Hello')  # Toast通知

工具方法列表:

  • printf 打印文本,解决文本如果含有不可见字符无法打印的问题
  • get_files 获取指定路径下特定后缀的文件列表
  • remove_file_if_exists 如果指定文件存在则删除
  • parse_month_zh 将数字转为中文月份,比如把1转为"一月"
  • input_function WinRing发送功能键
  • clear_text 模拟发送退格键,支持WinRing和幽灵键鼠
  • input_text 模拟输入文本,支持WinRing和幽灵键鼠
  • monitor_file_download 监听文件下载
  • remove_files 删除指定路径下的文件,支持通配符
  • read_pdf_text 读取PDF文本
  • pdf_to_images 将PDF转为图片,支持多页
  • check_and_create_folder 检查文件夹是否存在,不存在则创建
  • move_file 移动文件,文件夹不存在则自动创建
  • update_cell_value 更新excel单元格的值,支持 .xls 和 .xlsx
  • write_data_to_excel 将数据写入excel区域 (HSSFWorkbook)
  • remove_excel_rows 移除excel指定的行(HSSFWorkbook)
  • upload_sftp_file 上传文件到SFTP
  • set_secure_protocols 更新IE TLS SSL安全值
  • disable_chrome_prompt 禁止Chrome弹出恢复提示框
  • get_local_ip 获取本机IP
  • toast 在windows 右下角弹出toast 提示框
  • match_image 匹配滑块缺口在大图中的位置信息,要求缺口背景颜色单一

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

botnium-plus-1.0.4.tar.gz (24.5 MB view details)

Uploaded Source

Built Distribution

botnium_plus-1.0.4-py3-none-any.whl (24.5 MB view details)

Uploaded Python 3

File details

Details for the file botnium-plus-1.0.4.tar.gz.

File metadata

  • Download URL: botnium-plus-1.0.4.tar.gz
  • Upload date:
  • Size: 24.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.5

File hashes

Hashes for botnium-plus-1.0.4.tar.gz
Algorithm Hash digest
SHA256 f94ecc664b17d4d110594d6a9a0169ac8ca1e36e9d57c8b6c800316283cc5b4d
MD5 71f55b1b7e6116699aef67cebe1f7eaa
BLAKE2b-256 248cd6a1277211a096410a33617ec78b4c5fa1eb7a87b4ed01a57c6a36189017

See more details on using hashes here.

File details

Details for the file botnium_plus-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: botnium_plus-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 24.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.5

File hashes

Hashes for botnium_plus-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e5ec6f2c181722096f857be56c6a0dc096f8a65a64f1df7467f6f00b5a02af78
MD5 0907d81547d9297a3790cb64312ce3fa
BLAKE2b-256 7f320a777a2d795a0d73105b7f7ffc26d0dbbdff9980b0cadbe4662dc2da912d

See more details on using hashes here.

Supported by

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