xlsx2html


Namexlsx2html JSON
Version 0.6.0 PyPI version JSON
download
home_pagehttps://github.com/Apkawa/xlsx2html
SummaryA simple export from xlsx format to html tables with keep cell formatting
upload_time2024-02-28 09:10:34
maintainer
docs_urlNone
authorApkawa
requires_python>=3.6, <4
licenseMIT
keywords converter xlsx html
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            [![PyPi](https://img.shields.io/pypi/v/xlsx2html.svg)](https://pypi.python.org/pypi/xlsx2html)
[![Build Status](https://travis-ci.org/Apkawa/xlsx2html.svg?branch=master)](https://travis-ci.org/Apkawa/xlsx2html)
[![Codecov](https://codecov.io/gh/Apkawa/xlsx2html/branch/master/graph/badge.svg)](https://codecov.io/gh/Apkawa/xlsx2html)
[![Requirements Status](https://requires.io/github/Apkawa/xlsx2html/requirements.svg?branch=master)](https://requires.io/github/Apkawa/xlsx2html/requirements/?branch=master)
[![PyUP](https://pyup.io/repos/github/Apkawa/xlsx2html/shield.svg)](https://pyup.io/repos/github/Apkawa/xlsx2html)
[![Python versions](https://img.shields.io/pypi/pyversions/xlsx2html.svg)]()
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)

# xlsx2html

A simple export from xlsx format to html tables with keep cell formatting


# Install

```bash
pip install xlsx2html
```


# Usage
Simple usage
```python
from xlsx2html import xlsx2html

out_stream = xlsx2html('path/to/example.xlsx')
out_stream.seek(0)
print(out_stream.read())

```

or pass filepath
```python
from xlsx2html import xlsx2html

xlsx2html('path/to/example.xlsx', 'path/to/output.html')
```
or use file like objects

```python
import io
from xlsx2html import xlsx2html

# must be binary mode
xlsx_file = open('path/to/example.xlsx', 'rb')
out_file = io.StringIO()
xlsx2html(xlsx_file, out_file, locale='en')
out_file.seek(0)
result_html = out_file.read()
```

or from shell

```bash
python -m xlsx2html path/to/example.xlsx path/to/output.html
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Apkawa/xlsx2html",
    "name": "xlsx2html",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6, <4",
    "maintainer_email": "",
    "keywords": "converter xlsx html",
    "author": "Apkawa",
    "author_email": "apkawa@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/9d/28/116fa011a7e0fb12f82abd6de70d5266067b74041d4965fca0390dc3be92/xlsx2html-0.6.0.tar.gz",
    "platform": null,
    "description": "[![PyPi](https://img.shields.io/pypi/v/xlsx2html.svg)](https://pypi.python.org/pypi/xlsx2html)\n[![Build Status](https://travis-ci.org/Apkawa/xlsx2html.svg?branch=master)](https://travis-ci.org/Apkawa/xlsx2html)\n[![Codecov](https://codecov.io/gh/Apkawa/xlsx2html/branch/master/graph/badge.svg)](https://codecov.io/gh/Apkawa/xlsx2html)\n[![Requirements Status](https://requires.io/github/Apkawa/xlsx2html/requirements.svg?branch=master)](https://requires.io/github/Apkawa/xlsx2html/requirements/?branch=master)\n[![PyUP](https://pyup.io/repos/github/Apkawa/xlsx2html/shield.svg)](https://pyup.io/repos/github/Apkawa/xlsx2html)\n[![Python versions](https://img.shields.io/pypi/pyversions/xlsx2html.svg)]()\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n\n# xlsx2html\n\nA simple export from xlsx format to html tables with keep cell formatting\n\n\n# Install\n\n```bash\npip install xlsx2html\n```\n\n\n# Usage\nSimple usage\n```python\nfrom xlsx2html import xlsx2html\n\nout_stream = xlsx2html('path/to/example.xlsx')\nout_stream.seek(0)\nprint(out_stream.read())\n\n```\n\nor pass filepath\n```python\nfrom xlsx2html import xlsx2html\n\nxlsx2html('path/to/example.xlsx', 'path/to/output.html')\n```\nor use file like objects\n\n```python\nimport io\nfrom xlsx2html import xlsx2html\n\n# must be binary mode\nxlsx_file = open('path/to/example.xlsx', 'rb')\nout_file = io.StringIO()\nxlsx2html(xlsx_file, out_file, locale='en')\nout_file.seek(0)\nresult_html = out_file.read()\n```\n\nor from shell\n\n```bash\npython -m xlsx2html path/to/example.xlsx path/to/output.html\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A simple export from xlsx format to html tables with keep cell formatting",
    "version": "0.6.0",
    "project_urls": {
        "Homepage": "https://github.com/Apkawa/xlsx2html"
    },
    "split_keywords": [
        "converter",
        "xlsx",
        "html"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f17c72a7a81a2ecf39a6a6ca8f781d4a1c4617d74c85edbbf98a2122b0a5bb50",
                "md5": "bab8b693961b233c93ae8dea1cfd276e",
                "sha256": "c0895f2c5c71b9a14cfe564a0819f08e2fe8152e766696c272d1dce47dd70726"
            },
            "downloads": -1,
            "filename": "xlsx2html-0.6.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bab8b693961b233c93ae8dea1cfd276e",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=3.6, <4",
            "size": 17206,
            "upload_time": "2024-02-28T09:10:32",
            "upload_time_iso_8601": "2024-02-28T09:10:32.535092Z",
            "url": "https://files.pythonhosted.org/packages/f1/7c/72a7a81a2ecf39a6a6ca8f781d4a1c4617d74c85edbbf98a2122b0a5bb50/xlsx2html-0.6.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9d28116fa011a7e0fb12f82abd6de70d5266067b74041d4965fca0390dc3be92",
                "md5": "101252eb59c5bc4c139b575eaa2b5357",
                "sha256": "80c576b65c5deeec98879887606937c2b6700c5d6bc01bc55c1a33ec08c09c39"
            },
            "downloads": -1,
            "filename": "xlsx2html-0.6.0.tar.gz",
            "has_sig": false,
            "md5_digest": "101252eb59c5bc4c139b575eaa2b5357",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6, <4",
            "size": 17431,
            "upload_time": "2024-02-28T09:10:34",
            "upload_time_iso_8601": "2024-02-28T09:10:34.286883Z",
            "url": "https://files.pythonhosted.org/packages/9d/28/116fa011a7e0fb12f82abd6de70d5266067b74041d4965fca0390dc3be92/xlsx2html-0.6.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-28 09:10:34",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Apkawa",
    "github_project": "xlsx2html",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "tox": true,
    "lcname": "xlsx2html"
}
        
Elapsed time: 0.46491s