Skip to main content

BeautifulExcel is a python package that makes it easy and quick to save pandas dataframes in beautifully formatted excel files. BeautifulExcel is the Openpyxl for Data Scientists with a deadline.

Project description

BeautifulExcel

Social Banner

⚠️🏗️️ Note: This is only the first version - actively working on additional features!

BeautifulExcel is a python package that makes it easy and quick to save pandas dataframes in beautifully formatted excel files. BeautifulExcel is the Openpyxl for Data Scientists with a deadline.


Getting it

$ pip install beautifulexcel

Update Package: (execute regularly to get the latest features)

$ pip install beautifulexcel --upgrade

How to use:

from beautifulexcel import ExcelWriter

with ExcelWriter('workbook.xlsx', mode='r', theme='elegant_blue') as writer:
    ws1 = writer.to_excel(
        df,
        sheet_name='My Sheet',
        startrow=0,
        startcol=0,
        index=True,
        header=True,
        col_autofit=True,  # automatically change column width to fit content best
        col_widths={'A': 20, 'RoE': 40},  # define column width manually
        auto_number_formatting=True,  # automatically detect number format and change excel format
        style={'RoE': 'bg_light_blue', 'D:E': {'fill': 'FFEEB7'}},  # apply custom styling to this dataframe export
        use_theme_style=True,  # apply the excel workbook "theme" set in ExcelWriter()
    )

Further details in the Documentation

Go to Documentation


A feature is missing? Feel free to contribute!

  • Please submit new features as Pull Request to the "dev" branch
  • Please make sure the code is nicely formatted and has doc strings by executing $ pre-commit install before your git commit

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

beautifulexcel-0.3.6.tar.gz (17.8 kB view details)

Uploaded Source

Built Distribution

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

beautifulexcel-0.3.6-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

Details for the file beautifulexcel-0.3.6.tar.gz.

File metadata

  • Download URL: beautifulexcel-0.3.6.tar.gz
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for beautifulexcel-0.3.6.tar.gz
Algorithm Hash digest
SHA256 be6008736e90cb27ebf52eff86b72b8bee12f21e016c87217ea311289b618ec7
MD5 f5cf1e404368fb079e7b39955e4d8fb1
BLAKE2b-256 6d9776031a37fdc228e61e0cbb21a38b47cc8d1e175fb92974655a040a71c86f

See more details on using hashes here.

File details

Details for the file beautifulexcel-0.3.6-py3-none-any.whl.

File metadata

  • Download URL: beautifulexcel-0.3.6-py3-none-any.whl
  • Upload date:
  • Size: 18.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for beautifulexcel-0.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 2abacbc1db9013c2c1a5ae372002bedac3052a6488cc63bd365805d43b06abfc
MD5 34806ac0f26304bcb29385ac6dacccbe
BLAKE2b-256 3550cd27a3ca040f4014e6106fedfdf46e093af21458943172ed05acd239edf0

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