Skip to main content

Simple library to write excel files

Project description

Simple Excel Writer

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.1.tar.gz (8.9 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.1-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simple_excel_writer-0.0.1.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.1 CPython/3.12.3 Linux/6.11.0-1018-azure

File hashes

Hashes for simple_excel_writer-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e5c5c9e159f4003c4dcb75990bf839989530c80f1546a1e052baa02b9e2b4182
MD5 db3e555374e612060f2b1e5315e82fd3
BLAKE2b-256 639aaa4b99bb471d64d03049aad5ecaebece252d93900ba1ea5153ffd47d63ed

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for simple_excel_writer-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 44da397cb9f9982e0e073797f6bf3a6dbc33c3dcf5f5defa240bd79b48753f64
MD5 bc5d0af9c3914ba0815003084d7f12bc
BLAKE2b-256 d5e840ccd0e34c18f17bedbcfcf1b0e857a1c32820b1e6049fa1e1104580a213

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