Giter Site home page Giter Site logo

pyexceltoimage's Introduction

PyExcelToImage

capture the chart and cells in the excel to image

本模块实现对excel中图表单元格截图输出为jpeg的图片片文件;

本模块依赖包: win32com, pythoncom, PIL, flask

只能在windows和windows server服务器上运行,运行的时候请确保服务器安装office;

ExportExcelToImage.py: 为本模块主要工作类,用于打开excel文件,输出图表截图文件; upload 为打开excel的目录; jpg 为输出的截图目录;

http_server.py 将模块功能http接口化,通过http协议接受excel,返回截图文件URL; upload 为接受excel文件保存目录;

http_client.py 实现上传excel文件,下载截图文件保存的功能 excel 为上传excel的文件目录 download_jpg 下载的截图文件保存目录

测试模块方法:

1,单独测试excel截图功能 运行 python ExportExcelToImage.py 会读取upload中Sample.xls文件,在jpg目录生成截图文件;

2,测试excel截图的http接口 运行 python http_server.py 会打开http的监听服务; 运行 python http_client.py 会测试excel上传和下载截图文件功能

pyexceltoimage's People

Contributors

jackhappy avatar

Watchers

James Cloos 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.