Skip to content

This Python script uses the xlsxwriter library to generate a structured Excel file containing detailed assembly part information. Ideal for engineering or manufacturing documentation, it supports custom headers, optional fields, and organized data export in spreadsheet format for easy sharing and review.

Notifications You must be signed in to change notification settings

thendralmagudapathi/Creating-Excel-using-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Excel File Creator using Python and XlsxWriter

This Python script creates a structured Excel file using the xlsxwriter library. It populates a worksheet with detailed part information such as assembly components, revision numbers, material specifications, and approvals. This is useful for managing and exporting Bill of Materials (BoM), design specifications, or manufacturing records in a clean and professional Excel format.

🚀 Features

  • Creates a new Excel workbook and worksheet
  • Writes custom headers and formats for documentation
  • Supports structured entry of assembly part details
  • Handles optional/missing fields gracefully
  • Easy to customize or extend with more fields

📦 Dependencies

Install the required package using pip:

pip install xlsxwriter

📂 How to Use

  1. Clone or download the script.
  2. Run the script:
python create_excel.py
  1. An Excel file named Creating Excel Task.xlsx will be generated in the current directory with a worksheet named "Sheet 1".

📊 Output Preview

S.No Assembly Parts Standard Part Revision Number Status Part Number Weight Material Quantity Notes Date Designed By Detailed Approved By Custom Scale Custom Paper Size Orientation
1 Lever SA No 2 Not Released L1254 120 SS316 1 Remove Burns, Chamfer sharp edges 22/10/2023 James John Michael 0.5 A1
...

📘 Notes

  • Empty fields in the entry dictionary will appear as blank cells.
  • The column headers can be adjusted to suit your specific document structure.
  • Useful for documentation in engineering, manufacturing, or design workflows.

About

This Python script uses the xlsxwriter library to generate a structured Excel file containing detailed assembly part information. Ideal for engineering or manufacturing documentation, it supports custom headers, optional fields, and organized data export in spreadsheet format for easy sharing and review.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages