Skip to main content

工具盒子

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

foxkit-0.0.5-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

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

Hashes for foxkit-0.0.5.tar.gz
Algorithm Hash digest
SHA256 2784c7f1ae9ae3b518adde237dbc1ec183bf0183638ac8a5c19d94c1f9d3d638
MD5 18ff64c10a79fa5003307a8f79769d99
BLAKE2b-256 ac8f9ef76cb42509af1f0a013bd1bca94b8b0f8a94a1e5e2d10cbd3784b7c6e2

See more details on using hashes here.

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

Hashes for foxkit-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9a913a1b4929a25b15434e1edcb86afb15df97fa39920eecddac3a326855587f
MD5 779e47391d09c6e696946ec683f2f55b
BLAKE2b-256 b0dc18adc84126d36d44ea477b2745c6df05296201d20ae3a0877c5633567f9b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page