Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yanemil/xlsxopera
Work on xlsx files. Convert to list, dict. Get rows, cols, headers, cell values, positions and more.
https://github.com/yanemil/xlsxopera
excel excelreader microsoft-excel python python3 spreadsheet spreadsheets workbook worksheet xls xlsx xlsx-files xlsx-spreadsheet xlsx-workbook
Last synced: about 2 months ago
JSON representation
Work on xlsx files. Convert to list, dict. Get rows, cols, headers, cell values, positions and more.
- Host: GitHub
- URL: https://github.com/yanemil/xlsxopera
- Owner: yanemil
- License: mit
- Created: 2022-11-16T15:47:09.000Z (about 2 years ago)
- Default Branch: develop
- Last Pushed: 2023-07-20T10:45:16.000Z (over 1 year ago)
- Last Synced: 2024-12-12T01:40:53.449Z (about 2 months ago)
- Topics: excel, excelreader, microsoft-excel, python, python3, spreadsheet, spreadsheets, workbook, worksheet, xls, xlsx, xlsx-files, xlsx-spreadsheet, xlsx-workbook
- Language: Python
- Homepage: https://pypi.org/project/xlsxopera/
- Size: 43.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# xlsxopera
Working on xlsx (Microsoft Excel) files. Convert to list, dict, get headers, cell values, positions and more.Developed by yanemil (c) 2022
## Install
Install package from pip:
```
pip3 install xlsxopera
```
Note: Required packages is openpyxl
## How to workCreate an object
```python
from xlsxopera import Notebook# Load file to operate and sheet name
notebook = Notebook("file-to-path.xlsx", "sheet_name")
# Or load file to operate without sheet name. Default will be active spreadsheet.
notebook = Notebook("file-to-path.xlsx")
```Get rows in list of lists:
```python
# Get all rows (from 1 to last)
rows_in_spreadsheet = notebook.list_rows()
# Get rows (for e.g, from 9 to 13)
rows_in_spreadsheet = notebook.list_rows(start=9, end=13)
```