Skip to main content

Плагин для гибкой настройки Excel документов.

Project description

ExcelPlugin

Python Version License PyPI Version

Features

  • 🎨 Advanced cell styling (fonts, borders, alignment)
  • 📊 Seamless pandas DataFrames integration
  • 🔄 Excel template processing
  • 📈 Batch operations support
  • 🖥️ CLI interface for quick operations

Installation

pip install ExcelPlugin

Quick Start

from ExcelPlugin import MultiExcel

# Создаем объекты DataFrame
df_2 = pd.DataFrame()
df_1 = pd.DataFrame()

multi = MultiExcel() # Создаем объект MultiExcel

# Добавляем страницы 
multi.add_sheet(df, 'data_1')  # Добавляем страницу 'data_1' и DataFrame
multi.add_sheet(df, 'data_1')  

# Создаем шапку Excel документа
multi['data_1'].add_header()  # Обязательно нужно вызвать метод add_header() для создания заголовков.
# Если передать в add_header() аргументы -> получим многоуровневый заголовки
multi['data_2'].add_header()

# Форматируем столбцы 
multi['data_1'].set_money_column(MONEY_COLUMN: Union[List[str], None]=None)  
multi['data_1'].set_percent_column(PERCENT_COLUMN: Union[List[str], None]=None)  
multi['data_1'].set_date_column(DATE_COLUMN: Union[List[str], None]=None) 

# Переименование страниц Excel
multi.rename_sheet(old_name='data_1', new_name='new_data_1') 

multi.save(filename=fr"{filename_email}" + ".xlsx", filepath=filepath)  # Сохраняем файл

CLI Usage

# Apply template styles
excel-plugin apply-styles --input data.xlsx --template styles.json --output styled.xlsx

# Convert CSV to styled Excel
excel-plugin csv2xlsx data.csv --output report.xlsx

Documentation

Full documentation available at GitHub Wiki

Contributing

Pull requests are welcome! See CONTRIBUTING.md 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

excelplugin-0.1.7.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

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

ExcelPlugin-0.1.7-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file excelplugin-0.1.7.tar.gz.

File metadata

  • Download URL: excelplugin-0.1.7.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for excelplugin-0.1.7.tar.gz
Algorithm Hash digest
SHA256 d3222c06cae388e593c8ba108d01677e00568b5d2e8ef7f3ecc15c06a5d19e85
MD5 391a5ca4f3e9015897670ac23ba41828
BLAKE2b-256 d525e3112b83da0fd467264aa3fa5ea1dd95b6cd3aad144f0d6533fabcd946fc

See more details on using hashes here.

File details

Details for the file ExcelPlugin-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: ExcelPlugin-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for ExcelPlugin-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 88602761fdca46bb758cef3fa26f7e5df3e975e469bc00fac524e89eabf26326
MD5 df757720266fff347e756a35e4201f7f
BLAKE2b-256 95d366d1fb1d51fddb0be6175cdac039c698c00dfd15d368f1b69149bf6118ea

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