简易、好用的excel操作工具,兼具增删改查,表合并,导出等功能
Project description
easy excel tool
在实际工作中,沉淀的一些简易、好用的excel数据处理工具,减少重复代码与文件冗余,希望一样能为使用者带来益处。如果您也想贡献好的代码片段,请将代码以及描述,通过邮箱( xinkonghan@gmail.com )发送给我。代码格式是遵循自我主观,如存在不足敬请指出!
安装
pip install easy-excel-tool
主要功能
excel
create_excel
创建一个空白的excel文件(可指定sheet名)add_sheet
对指定excel文件新增sheet页(可指定sheet名)get_sheet_name
获取excel文件所有sheet名remove_sheet
删除excel文件中指定sheet页write_excel
对excel文件写入或追加数据(可指定填充列,保留头部)
简单使用
from easy_excel_tool import Excel
excel = Excel('./test.xlsx')
# excel.create_excel(inplace=True)
# excel.add_sheet(sheet_name=[
# 'donation_information',
# ])
data = [
{'a': 1, 'b': 5, 'c': '88'},
{'a': 7, 'b': 9, 'c': 66},
]
excel.write_excel(
data,
mode='w+',
sheet_name='Sheet1',
fill_column={'fill_column': 'fill'},
header=True,
inplace=False,
)
链接
Github:https://github.com/hanxinkong/easy-excel-tool
在线文档:https://easy-excel-tool.xink.top/
注明
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
easy_excel_tool-1.0.5.tar.gz
(5.1 kB
view details)
Built Distribution
File details
Details for the file easy_excel_tool-1.0.5.tar.gz
.
File metadata
- Download URL: easy_excel_tool-1.0.5.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e26c2bfbb8aab08a4c93b09c9b3f1ee252c71e717908e4e793e61d073034eb6f |
|
MD5 | 577619029e5ad4a294f285e1b4f00874 |
|
BLAKE2b-256 | 3252c6b410db27eecd53d6440b063bd71943f75ba0b257e90e11138280e3f97c |
File details
Details for the file easy_excel_tool-1.0.5-py3-none-any.whl
.
File metadata
- Download URL: easy_excel_tool-1.0.5-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 760a9dfd77c93b5b10e8886abd6edaa869c2ee40e2e53b5579743cf84f4745ae |
|
MD5 | 38b54894406f4c49f62fa1512fd2d8d2 |
|
BLAKE2b-256 | 48636996c058c009c60318d4e8ed48d474c6fff92d7ddea6a82bad8c35fdabd2 |