Metadata-Version: 2.4
Name: excelstyler
Version: 0.1.1
Summary: Style and format Excel files easily with openpyxl
Project-URL: Homepage, https://github.com/7nimor/excelstyler
Author-email: Nima Orangi <7nimor@gmail.com>
License: GNU AFFERO GENERAL PUBLIC LICENSE
        Version 1, 13 august 2025 
        
        
        Copyright (C) 2025 Nima Orangi
        
        This program is free software: you can redistribute it and/or modify
        it under the terms of the GNU Affero General Public License as published
        by the Free Software Foundation, either version 1 of the License, or
        (at your option) any later version.
        
        This program is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
        GNU Affero General Public License for more details.
        
        You should have received a copy of the GNU Affero General Public License
        along with this program. If not, see <https://www.gnu.org/licenses/>.
License-File: LICENSE
Keywords: excel,openpyxl,spreadsheet,styling,xlsx
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.8
Requires-Dist: jdatetime>=4.1.0
Requires-Dist: openpyxl>=3.0.10
Description-Content-Type: text/markdown

# excelstyler

`excelstyler` is a Python package that makes it easy to style and format Excel worksheets using [openpyxl](https://openpyxl.readthedocs.io).

## Installation
```bash
pip install excelstyler
```

## Example
```python
from excelstyler.styles import GREEN_CELL
from excelstyler.utils import shamsi_date
from excelstyler.headers import create_header

import openpyxl

output = BytesIO()
workbook = Workbook()
worksheet = workbook.active
worksheet.sheet_view.rightToLeft = True   # if you iranian else False
worksheet.insert_rows(1)
create_header(ws, ["Name", "Score"], 1, 1, color='green')
workbook.save(output)
output.seek(0)

response = HttpResponse(
  content_type='application/vnd.openxmlformats-officedocument.spreadsheetml.sheet')
response[
  'Content-Disposition'] = f'attachment; filename="test file.xlsx"'.encode(
  'utf-8') # support from persian
response.write(output.getvalue())
return response
```

## License
MIT
