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.2.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.2-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simple_excel_writer-0.0.2.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.12.3 Linux/6.17.0-1010-azure

File hashes

Hashes for simple_excel_writer-0.0.2.tar.gz
Algorithm Hash digest
SHA256 4c047a995ec81674caef7e02a2069db0194f1858ecd3ef5714284767924847d2
MD5 0a69b59624fb89ea24b6461162bfd770
BLAKE2b-256 aff756a3cbe5dfdbf3d584499908f97a2f99ca302352977e840244b67c4a788c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for simple_excel_writer-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 da8b640c5c12a60d4f6696f4429d4df55c4fc5b922bc519b42f1db36e4ba7b03
MD5 5ebe3bc9d4abe846e5c1102958fd2d18
BLAKE2b-256 2f39e684afda03005af2d5aca3d63c550dd308f1d40235d39f80c654feed4680

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