xlsx2html-0.6.4
توضیحات
A simple export from xlsx format to html tables with keep cell formatting
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | xlsx2html-0.6.4 |
| نام | xlsx2html |
| نسخه کتابخانه | 0.6.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Apkawa |
| ایمیل نویسنده | apkawa@gmail.com |
| آدرس صفحه اصلی | https://github.com/Apkawa/xlsx2html |
| آدرس اینترنتی | https://pypi.org/project/xlsx2html/ |
| مجوز | MIT |
[](https://pypi.python.org/pypi/xlsx2html)
[](https://github.com/Apkawa/xlsx2html/actions/workflows/ci.yml)
[](https://codecov.io/gh/Apkawa/xlsx2html)
[]()
[](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
```
نیازمندی
| مقدار | نام |
|---|---|
| - | six |
| - | openpyxl>=2.4.8 |
| - | babel>=2.3.4 |
| - | packaging>=20.4 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| <4,>=3.6 | Python |
نحوه نصب
نصب پکیج whl xlsx2html-0.6.4:
pip install xlsx2html-0.6.4.whl
نصب پکیج tar.gz xlsx2html-0.6.4:
pip install xlsx2html-0.6.4.tar.gz