1 Star 0 Fork 0

lyra/python-Excel-Automation

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Python-Excel-Automation

Examples of automation of excel via python, and related useful things

Contents and compatibility

script platform(s) it works on what it does
autoclicker.py linux uses GTK to check a pixel on the screen. if it's a specified color, the script does a left mouse click
copyPaste.py windows uses win32com to append one xlsx to another, then saves to csv
findPhotoWithinPhoto.py both uses opencv to find the location of an image within another image. useful for gui automation
openpyxlTest.py both uses openpyxl to generate a spreadsheet
runMacro.py windows uses win32com and excel com to run a VBA function inside of time.xlsm
time.py both outputs the current date and time
time.xlsm windows contains a button which executes a VBA function which runs time.py 3 times sequentially without clobbering
worksheet1.xlsx both a spreadsheet with functions in the "total" row
worksheet2.xlsx both a spreadsheet with functions in the "total" row
xlrdTest.py both uses xlrd to enumerate the contents of worksheet1.xlsx
Python Library Name Linux support Windows support
GTK strong possible to install, but not easily
cv2 (opencv) strong wonky install, but works
pymouse strong doesn't seem to work, though it looks like it should
win32com none strong
numpy strong strong

Install Prerequisites (Ubuntu Linux)

sudo apt install python pip python-opencv python-xlrd python-gtk2-dev

Install Prerequisites (Windows 10)

Install Python for Windows

Add the location of python.exe to your PATH environment variable

Download get-pip.py and run it in command prompt:

python get-pip.py

Add the location of pip.exe to your PATH environment variable

Run this in a command prompt

pip install pypiwin32
pip install xlrd
pip install openpyxl

Download the latest OpenCV whl (wheel) file from here then install it like this:

pip install opencv_python-3.2.0-cp36-cp36m-win32.whl

Might need Visual C++ 2015 redistributable (vc_redist.x86.exe) for OpenCV

If you need GTK, follow this guide

空文件

简介

取消

发行版

暂无发行版

贡献者

全部

语言

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/lyra_bj/python-Excel-Automation.git
git@gitee.com:lyra_bj/python-Excel-Automation.git
lyra_bj
python-Excel-Automation
python-Excel-Automation
master

搜索帮助