Code Monkey home page Code Monkey logo

tablip's Introduction

tablip

安装

pip install tablip

使用

import tablip

# 初始化表格 表名及表头
data = tablip.Dataset()
data.headers=['姓名','年龄','地址']
data.title = '个人信息'

# 写入数据
content = [['小明','18','Stanford University'],
           ['小王','20','Stanford University 450 Jane Stanford Way Stanford, CA 94305–2004']]

for row in content:
    data.append(row)

# 导出excel
with open('test.xls','wb') as f:
    f.write(data.export('xls'))
    https://raw.githubusercontent.com/bn0901/tablip/master/introduce.png

结果展示:

avatar

well done, good job!

介绍

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格式,自动优化列宽!!!!

关于

author:bn.zheng contact with email: [email protected]

tablip's People

Contributors

bingmillion avatar

Watchers

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