Skip to main content

A wrapper library to read, manipulate and write data in different excel formats: csv, tsv, csvz, tsvz, ods, xls, xlsx and xlsm.

Project description

https://api.travis-ci.org/chfw/pyexcel.svg?branch=v0.1.3 https://coveralls.io/repos/chfw/pyexcel/badge.png?branch=v0.1.3 https://readthedocs.org/projects/pyexcel/badge/?version=v0.1.3 https://pypip.in/version/pyexcel/badge.png https://pypip.in/d/pyexcel/badge.png https://pypip.in/py_versions/pyexcel/badge.png https://pypip.in/implementation/pyexcel-xls/badge.png

Known constraints

Fonts, colors and charts are not supported.

Available Plugins

Plugins

Supported file formats

pyexcel

csv, csvz, tsv, tsvz

pyexcel-xls

xls, xlsx(r), xlsm(r)

pyexcel-xlsx

xlsx

pyexcel-ods

ods (python 2.6, 2.7)

pyexcel-ods3

ods (python 2.7, 3.3, 3.4)

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/chfw/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(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

Documentation

Documentation is hosted at read the docs and pyhosted

Dependencies

  • pyexcel-io >= 0.0.2

  • texttable >= 0.8.2

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 copied from flask.

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

pyexcel-0.1.3.tar.gz (38.5 kB view details)

Uploaded Source

File details

Details for the file pyexcel-0.1.3.tar.gz.

File metadata

  • Download URL: pyexcel-0.1.3.tar.gz
  • Upload date:
  • Size: 38.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyexcel-0.1.3.tar.gz
Algorithm Hash digest
SHA256 3767abf18fa0c811982a868de2d4f2bed3d16ef6749326010eec16d9c239404d
MD5 8dc4448aa809c5086926a4f8a225693b
BLAKE2b-256 259ab70c0b12d4dcce5283721bfd5c6d003e08869b052f23fbfccd1a5258270b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page