A wrapper library that provides one API to read, manipulate and write data in different excel formats
Fonts, colors and charts are not supported.
- One API to handle multiple data sources:
- physical file
- memory file
- SQLAlchemy table
- Django Model
- Python data stuctures: dictionary, records and array
- One application programming interface(API) to read and write data in various excel file formats.
|Plugins||Supported file formats|
|pyexcel||csv, csvz, tsv, tsvz|
|pyexcel-xls||xls, xlsx(r), xlsm(r)|
|pyexcel-ods||ods (python 2.6, 2.7 only)|
|pyexcel-text||(write only)json, rst, mediawiki,latex, grid, pipe, orgtbl, plain simple|
You can install it via pip:
$ pip install pyexcel
or clone it and install it:
$ git clone http://github.com/chfw/pyexcel.git $ cd pyexcel $ python setup.py install
Installation of individual plugins , please refer to individual plugin page.
Suppose you want to process the following excel data :
Here are the example code:
>>> import pyexcel as pe >>> import pyexcel.ext.xls # import it to handle xls file >>> records = pe.get_records(file_name="your_file.xls") >>> for record in records: ... print("%s is aged at %d" % (record['Name'], record['Age'])) Adam is aged at 28 Beatrice is aged at 29 Ceri is aged at 30 Dean is aged at 26
New BSD License
- pyexcel-io >= 0.0.5
- texttable >= 0.8.2
All great work have done by odf, ezodf(2), xlrd, xlwt, tabulate and other individual developers. This library unites only the data access code.
Extension management code was copied from flask.
Release history Release notifications
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size pyexcel-0.1.6.zip (55.1 kB)||File type Source||Python version None||Upload date||Hashes View hashes|