Tree @debian/0.2.1-0kali3 (Download .tar.gz)
pyexcel - Let you focus on data, instead of file formats
Known constraints
Fonts, colors and charts are not supported.
Feature Highlights
- 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.
Available Plugins
Plugins | Supported file formats |
---|---|
pyexcel-io | csv, csvz, tsv, tsvz |
pyexcel-xls | xls, xlsx(r), xlsm(r) |
pyexcel-xlsx | xlsx |
pyexcel-ods | ods (python 2.6, 2.7 only) |
pyexcel-ods3 | ods |
pyexcel-text | (write only)json, rst, mediawiki,latex, grid, pipe, orgtbl, plain simple |
Installation
You can install it via pip:
$ pip install pyexcel
or clone it and install it:
$ git clone http://github.com/pyexcel/pyexcel.git
$ cd pyexcel
$ python setup.py install
Installation of individual plugins , please refer to individual plugin page.
Usage
Suppose you want to process the following excel data :
Name | Age |
---|---|
Adam | 28 |
Beatrice | 29 |
Ceri | 30 |
Dean | 26 |
Here are the example code:
>>> import pyexcel as pe >>> import pyexcel.ext.xls # import it to handle xls file >>> records = pe.get_records(url="http://your.domain.com/path/to/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
Documentation
Documentation is hosted at read the docs and pyhosted
License
New BSD License
Acknowledgement
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 reused from flask.
Commit History @debian/0.2.1-0kali3
- Update debian/changelog Sophie Brun 4 years ago
- Add debian/gbp.conf Sophie Brun 4 years ago
- Bump Standards Version to 4.3.0 Sophie Brun 4 years ago
- Use debhelper-compat 12 Sophie Brun 4 years ago
- Add missing dependencies Sophie Brun 4 years ago
- Update fix-for-io.patch Sophie Brun 4 years ago
- Update Vcs-* fields for the move to gitlab.com Raphaël Hertzog 5 years ago
- Update Maintainer field Raphaël Hertzog 5 years ago
- Update for io and disable tests Sophie Brun 6 years ago
- Add missing doc README.rst Sophie Brun 6 years ago
- Initial release Sophie Brun 6 years ago
- New upstream version 0.2.1 Sophie Brun 6 years ago