Skip to main content

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

Project description

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

pyexcel is a wrapper library to read, manipulate and write data in different excel formats: csv, ods, xls, xlsx and xlsm. Its mission is to let you focus on data itself and it deals with different file formats. ODS format support is provided by pyexcel-ods or pyexcel-ods3. Fonts, colors and charts are not supported.

It was created due to the lack of uniform programming interface to access data in different formats. A developer needs to use different methods of different libraries to read the same data in different excel formats, hence the resulting code is cluttered and unmaintainable.

All great work have done by odf, ezodf(2), xlrd and other individual developers. This library unites only the data access code.

Documentation

It is hosted in pyexcel@pyhosted and pyexcel@read the docs

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

Open Document Spreadsheet(ods) Support

In order to add ods support, please choose one of two packages: pyexcel-ods or pyexcel-ods3

$ pip install pyexcel-ods

or:

$ pip install pyexcel-ods3

In order to use them together with pyexcel, you need an extra import line in your code to activate it:

from pyexcel.ext import ods

or:

from pyexcel.ext import ods3

No futher code is needed. pyexcel will automatically support ods after this import.

Here is the comparsion of two packages:

package

python 2.6

python 2.7

python 3.3

python 3.4

lxml dependent

pyexcel-ods

yes

yes

no

pyexcel-ods3

yes

yes

yes

yes

Test

Here is the test command:

pip install -r tests/requirements.txt
make test

On Windows, please use:

test.bat

Test coverage is shown in codecov.io . For more local test coverage, you can add –cover-html –cover-html-dir=your_file_directory to test.sh or test.bat

Known Issues

  • If a zero was typed in a DATE formatted field in xls, you will get “01/01/1900”.

  • If a zero was typed in a TIME formatted field in xls, you will get “00:00:00”.

Acknowledgement

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.0.6.tar.gz (23.6 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for pyexcel-0.0.6.tar.gz
Algorithm Hash digest
SHA256 a1c3c6f2d87766c2eaeb37fb93f527c68ed18959baf862537564616b46fe8a5c
MD5 1763c15ac7c380669592a8190860e513
BLAKE2b-256 801f4bae954588ef7d049528090d2e43b82f476591e12283e81e4577b14b846b

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