Skip to main content

Simple library to write excel files

Project description

Simple Excel Writer

build-status-image codeql-image pypi-version pypi-downloads

Simple library to write excel files.

Examples

import xlsxwriter
from simple_excel_writer import SimpleExcelFileCreator

excel_header = ("Header 1", "Header 1")
excel_data = [["row 1 1", "row 1 2"], ["row 2 1", "row 2 2"]]
excel_sheetname: str = "Sheet 1"
excel_table_label: str | None = None
datetime_cell_format = {"num_format": "dd.mm.yyyy h:mm;@", "border": 1, "border_color": "#000000"}
date_cell_format = {"num_format": "dd.mm.yyyy", "border": 1, "border_color": "#000000"}
percent_cell_format = {"num_format": '0.00"%"', "border": 1, "border_color": "#000000"}
format_cell_border = {"border": 1, "border_color": "#000000", "text_wrap": True}
format_header_table = {"bold": True, "align": "center", "border": 1, "border_color": "#000000", "text_wrap": True}
table_label_format = {"italic": True, "font_size": 14}

excel_creator = SimpleExcelFileCreator(
    header=excel_header,
    data=excel_data,
    worksheet_label=excel_sheetname,
    table_label=excel_table_label,
    datetime_cell_format=datetime_cell_format,
    date_cell_format=date_cell_format,
    percent_cell_format=percent_cell_format,
    format_cell_border=format_cell_border,
    format_header_table=format_header_table,
    table_label_format=table_label_format,
)
excel_creator.get_excel_for_response()

Required

  • python >=3.11, <4.0
  • pillow >=9.2
  • xlsxwriter >=1.3.6
  • pytz >=2020.1

Installation

pip install simple-excel-writer

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

simple_excel_writer-0.0.3.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

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

simple_excel_writer-0.0.3-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file simple_excel_writer-0.0.3.tar.gz.

File metadata

  • Download URL: simple_excel_writer-0.0.3.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.12.3 Linux/6.17.0-1018-azure

File hashes

Hashes for simple_excel_writer-0.0.3.tar.gz
Algorithm Hash digest
SHA256 132b9b70b92e101516cce016cb90c70c333e6a7d7137147f0786ecaae7c882d2
MD5 f94e209a133d2c739757e833c5f827d0
BLAKE2b-256 26989762649bd0c987a1e28b427f7df9f534ca72b01f4787d06e513d7d6b852f

See more details on using hashes here.

File details

Details for the file simple_excel_writer-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: simple_excel_writer-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.12.3 Linux/6.17.0-1018-azure

File hashes

Hashes for simple_excel_writer-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e033fd320478681e3feb32da95ca72ecaca977cf365ee885c34fa03d44391738
MD5 619883f93aed0e0e48af0610f2c6b3d6
BLAKE2b-256 dd03ec8ea33a19acb7705117e4527f529c71d07dcd056c061bc48e379563b574

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