A pyexcel plugin to render data as handsontable in html pages
Project description
Support the project
If your company has embedded pyexcel and its components into a revenue generating product, please support me on patreon or bounty source to maintain the project and develop it further.
If you are an individual, you are welcome to support me too and for however long you feel like. As my backer, you will receive early access to pyexcel related contents.
And your issues will get prioritized if you would like to become my patreon as pyexcel pro user.
With your financial support, I will be able to invest a little bit more time in coding, documentation and writing interesting posts.
Known constraints
Fonts, colors and charts are not supported.
Introduction
pyexcel-handsontable is a rendering plugin to pyexcel and renders pyexcel.Sheet and pyexcel.Book into a handsontable in your web page. As long as you have a browser, you could view the data. However, please note that this library does not aim to replace any current excel softwares, such as Micorsoft Office. But it aims to extends the capability of a Python user/developer in viewing plain data.
Main features:
transform your excel sheets into excel alike html file.
embed your excel sheets into your web page.
show your data like excel in jupyter notebook (added in 0.0.2).
Here is one liner to use it with pyexcel:
import pyexcel as p
p.save_as(file_name='your.xls', dest_file_name='your.handsontable.html')
Alternatively, you can use this library with pyexcel cli module:
$ pip install pyexcel-cli $ pyexcel transcode your.xls your.handsontable.html
Please remember to give this file suffix always: handsontable.html. It is because handsontable.html triggers this plugin in pyexcel.
Screenshots
View as html
View in jupyter notebook
Installation
You can install pyexcel-handsontable via pip:
$ pip install pyexcel-handsontable
or clone it and install it:
$ git clone https://github.com/pyexcel-renderers/pyexcel-handsontable.git
$ cd pyexcel-handsontable
$ python setup.py install
Development guide
Development steps for code changes
git clone https://github.com/pyexcel/pyexcel-handsontable.git
cd pyexcel-handsontable
Upgrade your setup tools and pip. They are needed for development and testing only:
pip install –upgrade setuptools pip
Then install relevant development requirements:
pip install -r rnd_requirements.txt # if such a file exists
pip install -r requirements.txt
pip install -r tests/requirements.txt
Once you have finished your changes, please provide test case(s), relevant documentation and update CHANGELOG.rst.
How to test your contribution
Although nose and doctest are both used in code testing, it is adviable that unit tests are put in tests. doctest is incorporated only to make sure the code examples in documentation remain valid across different development releases.
On Linux/Unix systems, please launch your tests like this:
$ make
On Windows systems, please issue this command:
> test.bat
How to update test environment and update documentation
Additional steps are required:
pip install moban
git clone https://github.com/moremoban/setupmobans.git # generic setup
git clone https://github.com/pyexcel/pyexcel-commons.git commons
make your changes in .moban.d directory, then issue command moban
What is pyexcel-commons
Many information that are shared across pyexcel projects, such as: this developer guide, license info, etc. are stored in pyexcel-commons project.
What is .moban.d
.moban.d stores the specific meta data for the library.
Acceptance criteria
Has Test cases written
Has all code lines tested
Passes all Travis CI builds
Has fair amount of documentation if your change is complex
Please update CHANGELOG.rst
Please add yourself to CONTRIBUTORS.rst
Agree on NEW BSD License for your contribution
Update styles
styles/style.scss control the look and feel of the frame. In order to view the changes in that file, you will need to compile, moban and install it. Here is the sequence of commands:
$ make css $ moban $ python setup.py install $ make -C demo
Then please open handsontable.html from demo directory.
License
New BSD License
No contributors yet
Your github link will be listed here after your PR is merged
Change log
0.0.3 - 20-02-2022
Updated
#7: upgrade handsontable to 6.2.2
0.0.2 - 19-08-2018
Updated
Added
support jupyter-notebook
0.0.1 - 19-06-2017
Added
initial release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyexcel_handsontable-0.0.3.tar.gz.
File metadata
- Download URL: pyexcel_handsontable-0.0.3.tar.gz
- Upload date:
- Size: 228.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8343f6016ea49b17fa87dc5b2e4aa500da22ffd0987659bc5ae220cd114e4e78
|
|
| MD5 |
188d165be5d0a3efb83ac076df82652f
|
|
| BLAKE2b-256 |
18cafccc352921976b185e8c58600ae9d83c8422c7d5f29043514103655be80f
|
Provenance
The following attestation bundles were made for pyexcel_handsontable-0.0.3.tar.gz:
Publisher:
pythonpublish.yml on pyexcel-renderers/pyexcel-handsontable
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyexcel_handsontable-0.0.3.tar.gz -
Subject digest:
8343f6016ea49b17fa87dc5b2e4aa500da22ffd0987659bc5ae220cd114e4e78 - Sigstore transparency entry: 661268685
- Sigstore integration time:
-
Permalink:
pyexcel-renderers/pyexcel-handsontable@ed5e69c758245e1486ceac395257fd0b6a1f45ef -
Branch / Tag:
refs/tags/v0.0.3 - Owner: https://github.com/pyexcel-renderers
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pythonpublish.yml@ed5e69c758245e1486ceac395257fd0b6a1f45ef -
Trigger Event:
release
-
Statement type:
File details
Details for the file pyexcel_handsontable-0.0.3-py3-none-any.whl.
File metadata
- Download URL: pyexcel_handsontable-0.0.3-py3-none-any.whl
- Upload date:
- Size: 229.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a2493f91c0d106c4f8420482f51d810332eb73c77c4eaa43594a94a395e6627
|
|
| MD5 |
8a98339e3339b8935f5f1b4589d42a0b
|
|
| BLAKE2b-256 |
dc429b8664c4a96f52033561d3ea72c37d4bcc8efd77f756d14ea3eaf4a44e85
|
Provenance
The following attestation bundles were made for pyexcel_handsontable-0.0.3-py3-none-any.whl:
Publisher:
pythonpublish.yml on pyexcel-renderers/pyexcel-handsontable
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyexcel_handsontable-0.0.3-py3-none-any.whl -
Subject digest:
3a2493f91c0d106c4f8420482f51d810332eb73c77c4eaa43594a94a395e6627 - Sigstore transparency entry: 661268695
- Sigstore integration time:
-
Permalink:
pyexcel-renderers/pyexcel-handsontable@ed5e69c758245e1486ceac395257fd0b6a1f45ef -
Branch / Tag:
refs/tags/v0.0.3 - Owner: https://github.com/pyexcel-renderers
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pythonpublish.yml@ed5e69c758245e1486ceac395257fd0b6a1f45ef -
Trigger Event:
release
-
Statement type: