Skip to main content

工具盒子

Project description

from foxkit.file.excel 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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file foxkit-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: foxkit-0.0.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 094635938e7d4e339bca39853420bcd12313e046a99f2f2e310bca19c3c0a0bf
MD5 c3f8d95e28889808227ca66afb463481
BLAKE2b-256 6c9e4e1c6db3f525191a45d1787cd979e471843ce674559d1433946fce00abfe

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