Skip to main content

No project description provided

Project description

SIMPLEXL

Simplexl is a Python package which is used to create excel files dynamically using a program. This package depends on openpyxl which is native python package for creating excel.

FEATURES

  • Generated formatted excel as ouput.
  • Automatically pick the width of column based on data size of column.

Installation

pip install simplexl

How to use

The usage of simplexl is as follows

from simplexl import CreateExcel

xl = CreateExcel()


xl.create_sheet(
    sheet_name=sheet_name,   # optional
    sheet_index=sheet_index  # optional default = 0
    col_data=col_data,
    row_data=row_data
)

xl.save(
    name="path/name of the excel  #  default = generate-simplexl.xlsx
)

Example

from simplexl import CreateExcel

sheet1_col_data = ['col1', 'col2']
sheet1_row_data = [
    ('col1_row1', 'col2_row1'),
    ('col1_row2', 'col2_row2')
]

sheet2_col_data = ['col1', 'col2']
sheet2_row_data = [
    ('col1_row1', 'col2_row1'),
    ('col1_row2', 'col2_row2')
]

xl = CreateExcel()

# Sheet 1  
xl.create_sheet(
    col_data=sheet1_col_data,
    row_data=sheet1_row_data
)

# Sheet 2
xl.create_sheet(
    col_data=sheet2_col_data,
    row_data=sheet2_row_data
)
xl.save()

It will create a xlsx file using row and col data

License

Copyright (c) 2022 Devaraju Garigapati

This repository is licensed under the MIT license. See LICENSE for details.

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

simplexl-1.0.2.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

simplexl-1.0.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file simplexl-1.0.2.tar.gz.

File metadata

  • Download URL: simplexl-1.0.2.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.13 Windows/10

File hashes

Hashes for simplexl-1.0.2.tar.gz
Algorithm Hash digest
SHA256 610237e4619e42d92265b1293c70747e85b58e7429c36377c557c0460c1d6c1c
MD5 72c666738fad519f7f791500cfd8f369
BLAKE2b-256 e5ed49b51ec05752f1ad1c2a5c5ee49bf75705d26fdeae25d272d4edaaaad614

See more details on using hashes here.

File details

Details for the file simplexl-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: simplexl-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.13 Windows/10

File hashes

Hashes for simplexl-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f03ce2e7b8a1d707fadb95b9a561c68b48e34bde836809fbde09fce9265c3be2
MD5 684a489d6dfd124b7c8ad54d257c24c8
BLAKE2b-256 86d35316dfb3db0fb2fb58765f35cd2f8910cc085b2e79b868707588dd8521e0

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