工具盒子
Project description
from foxkit.file.excel_tools import Sink2Excel,Row,Cell,CellDataType
if __name__ == '__main__':
with Sink2Excel() as sink:
sink.write(
headers=Row(Cell(val='ID'),Cell(val='头像'),Cell(val='名称'),Cell(val='年龄')),
rows=[
Row(Cell(val='1001'),Cell(val='https://pic.cnblogs.com/face/83005/20250225134909.png',data_type=CellDataType.PIC),Cell(val='章三'),Cell(val=18)),
Row(Cell(val='1001'),Cell(val='https://pic.cnblogs.com/face/2124951/20211014230234.png',data_type=CellDataType.PIC),Cell(val='章三'),Cell(val=18)),
Row(Cell(val='1001'),Cell(val='https://pic.cnblogs.com/face/2124951/20211014230234.png',data_type=CellDataType.PIC),Cell(val='章三'),Cell(val=18)),
Row(Cell(val='1001'),Cell(val='https://pic.cnblogs.com/face/2124951/20211014230234.png',data_type=CellDataType.PIC),Cell(val='章三'),Cell(val=18))
],
sheet_name='用户信息',
sequence=True
)
sink.sink_file('./test.xlsx')
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
foxkit-0.0.5.tar.gz
(12.8 kB
view details)
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
foxkit-0.0.5-py3-none-any.whl
(12.3 kB
view details)
File details
Details for the file foxkit-0.0.5.tar.gz.
File metadata
- Download URL: foxkit-0.0.5.tar.gz
- Upload date:
- Size: 12.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2784c7f1ae9ae3b518adde237dbc1ec183bf0183638ac8a5c19d94c1f9d3d638
|
|
| MD5 |
18ff64c10a79fa5003307a8f79769d99
|
|
| BLAKE2b-256 |
ac8f9ef76cb42509af1f0a013bd1bca94b8b0f8a94a1e5e2d10cbd3784b7c6e2
|
File details
Details for the file foxkit-0.0.5-py3-none-any.whl.
File metadata
- Download URL: foxkit-0.0.5-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a913a1b4929a25b15434e1edcb86afb15df97fa39920eecddac3a326855587f
|
|
| MD5 |
779e47391d09c6e696946ec683f2f55b
|
|
| BLAKE2b-256 |
b0dc18adc84126d36d44ea477b2745c6df05296201d20ae3a0877c5633567f9b
|