Skip to main content

A wrapper library that provides one API to read, manipulate and write data in different excel formats

Project description

https://api.travis-ci.org/pyexcel/pyexcel.svg?branch=master https://codecov.io/github/pyexcel/pyexcel/coverage.png https://readthedocs.org/projects/pyexcel/badge/?version=latest

Known constraints

Fonts, colors and charts are not supported.

Feature Highlights

  1. One API to handle multiple data sources:

    • physical file

    • memory file

    • SQLAlchemy table

    • Django Model

    • Python data stuctures: dictionary, records and array

  2. 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.

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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for pyexcel-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ba31d223f911b267a4466ab06e49cee4e7c9ab3d5c325bee1760a0254189384c
MD5 f1cada288e981b4e2f9dc9033179e6d2
BLAKE2b-256 dee50f766d205fbcbf3c56bab7466e490f8d66f0855f3fe0327a820102dcc8ad

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