Dict2XLSX is a Python package that allows you to convert a dictionary into an XLSX (Excel) file.
You can install Dict2XLSX using pip:
pip install dict2xlsx
Dictionary to XLSX Conversion
: Convert a dictionary into an XLSX file with ease.Columnar Organization
: Automatically organizes dictionary * key-value pairs into separate columns in the XLSX file.Data Integrity
: Maintains the order of keys and values from the original dictionary during the conversion process.Simple Integration
: Easy-to-use API allows for seamless integration into existing Python projects.Customization Options
: Customize the output file name, sheet name, and formatting options.
from dict2xlsx import Dict2XLSX
data = [
{'first_name': 'Satyam', 'last_name': 'Lohiya', 'age': '21'},
{'first_name': 'Shivam', 'age': '28'},
{'first_name': 'Rahul', 'last_name': 'Sharma'},
]
xlsx_obj = Dict2XLSX(data)
xlsx_obj.save('output.xlsx')
Dict2XLSX has the following dependencies:
- openpyxl: A Python library for reading and writing Excel (XLSX) files.
Contributions are welcome! If you encounter any issues or have suggestions for improvements, please open an issue on the GitHub repository.
To contribute to Dict2XLSX, follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Implement your changes.
- Write tests to ensure the correctness of your code (if applicable).
- Run the test suite to make sure all tests pass.
- Submit a pull request.