xlsx2html


Namexlsx2html JSON
Version 0.6.2 PyPI version JSON
download
home_pagehttps://github.com/Apkawa/xlsx2html
SummaryA simple export from xlsx format to html tables with keep cell formatting
upload_time2025-01-09 11:40:59
maintainerNone
docs_urlNone
authorApkawa
requires_python<4,>=3.6
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": null,
    "docs_url": null,
    "requires_python": "<4,>=3.6",
    "maintainer_email": null,
    "keywords": "converter xlsx html",
    "author": "Apkawa",
    "author_email": "apkawa@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/c6/1b/770c7c3d73b7dd0309f8aa640be19782f6762f03caa871edcb8c3fbd0ae6/xlsx2html-0.6.2.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.2",
    "project_urls": {
        "Homepage": "https://github.com/Apkawa/xlsx2html"
    },
    "split_keywords": [
        "converter",
        "xlsx",
        "html"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0c26a43d76e5ffddb1c2d958915fec5d99552a80559e6403ee3f0dd3db28fdea",
                "md5": "44a04f5dcb7034f763c58ec911c3986b",
                "sha256": "d10d6c18be2e563a9fe8aee5dcadb2140be38e1090db717ede1b8ff09648452a"
            },
            "downloads": -1,
            "filename": "xlsx2html-0.6.2-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "44a04f5dcb7034f763c58ec911c3986b",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": "<4,>=3.6",
            "size": 17547,
            "upload_time": "2025-01-09T11:40:53",
            "upload_time_iso_8601": "2025-01-09T11:40:53.929557Z",
            "url": "https://files.pythonhosted.org/packages/0c/26/a43d76e5ffddb1c2d958915fec5d99552a80559e6403ee3f0dd3db28fdea/xlsx2html-0.6.2-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c61b770c7c3d73b7dd0309f8aa640be19782f6762f03caa871edcb8c3fbd0ae6",
                "md5": "3e4f44ad035dd3e456be749fe7c2649f",
                "sha256": "e3be926dca7c3217eabe6b9e4e50447b1c65cd2a16a711e395f5e9a1ac18ce9e"
            },
            "downloads": -1,
            "filename": "xlsx2html-0.6.2.tar.gz",
            "has_sig": false,
            "md5_digest": "3e4f44ad035dd3e456be749fe7c2649f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4,>=3.6",
            "size": 19638,
            "upload_time": "2025-01-09T11:40:59",
            "upload_time_iso_8601": "2025-01-09T11:40:59.176212Z",
            "url": "https://files.pythonhosted.org/packages/c6/1b/770c7c3d73b7dd0309f8aa640be19782f6762f03caa871edcb8c3fbd0ae6/xlsx2html-0.6.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-09 11:40:59",
    "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.53022s