export data to file such as excel etc..
Project description
tablip
tablip can deal & generate multi-type of file.
tablip可以处理和生成多种类型文件。
功能列表
- Excel (Sets + Books) +auto column width!!!(智能调整列宽!!!)
- JSON (Sets + Books)
- YAML (Sets + Books)
- Pandas DataFrames (Sets)
- HTML (Sets)
- Jira (Sets)
- TSV (Sets)
- ODS (Sets)
- CSV (Sets)
- DBF (Sets)
特点
- 超简单使用
- 超强大功能
- 导出excel文件,也就是xls格式,自动优化列宽!!!!
安装
pip install tablip
使用
import tablip
# 初始化表格 表名及表头
data = tablip.Dataset()
data.headers=['name','age']
data.title = 'test'
# 写入数据
content = [['lily','18'],
['lucy','20']]
for row in content:
data.append(row)
# 导出excel
with open('test.xls','wb') as f:
f.write(data.export('xls'))
关于
author:bn.zheng contact with email: zhengbingxian666@163.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tablip-1.0.8.tar.gz
(34.5 kB
view details)
File details
Details for the file tablip-1.0.8.tar.gz.
File metadata
- Download URL: tablip-1.0.8.tar.gz
- Upload date:
- Size: 34.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7350eb252641be974f6f9d49686c677c5d1dd5d76125b76adf1f6f11d188ce2a
|
|
| MD5 |
680d6a324839e4800309bfc6cc6adfa1
|
|
| BLAKE2b-256 |
ac323d198d0c7ededcc736f67ff575caa3e8da16e409aefc2a6d6fc29ea12d04
|