This app helps a Meesho seller handle both daily tasks from one portal:
- generate 4x6 labels from Meesho PDFs
- extract order details into one central Excel sheet and optional Google Sheet
- Upload one or more Meesho label PDFs
- Generate 4x6 cropped labels for printing
- Extract customer name and address
- Extract AWB / barcode number
- Extract SKU, size, quantity, and color
- Extract order number, purchase order number, invoice number, order date, and invoice date
- Save all extracted rows into one Excel backend file
- Skip duplicate orders when the same PDF is uploaded again
cd c:\Users\aadddiiii\Music\Codes\meesho_order_portal
pip install -r requirements.txt
streamlit run app.pyYou can also double-click:
Run Meesho Order Portal.bat
Important: do not run python app.py. That causes the missing ScriptRunContext warning because Streamlit apps must be started with streamlit run or python -m streamlit run.
If you already have a live Google Sheet, this app can append new extracted orders into it on every upload.
- Copy
google_sheet_config.example.jsontogoogle_sheet_config.json - Put your Google service account key file in this folder as:
google_service_account.json
{
"spreadsheet_id": "YOUR_GOOGLE_SHEET_ID",
"worksheet_name": "Orders"
}- Open Google Cloud Console
- Create a project or use an existing one
- Enable the Google Sheets API and Google Drive API
- Create a Service Account
- Create a JSON key and download it
- Save that file here as
google_service_account.json - Open your Google Sheet and share it with the service account email
- Give that email Editor access
If your sheet URL is:
https://docs.google.com/spreadsheets/d/1ABCxyz1234567890/edit#gid=0
Then the spreadsheet_id is:
1ABCxyz1234567890
Do not upload these private files:
google_service_account.jsongoogle_sheet_config.jsondata/meesho_orders.xlsx
This project now includes a .gitignore file so those stay out of GitHub.
- Create a new GitHub repository
- Upload the contents of
meesho_order_portal - Make sure the private JSON files are not included
The easiest way to make this app live is Streamlit Community Cloud:
- Push this project to GitHub
- Open
https://share.streamlit.io/ - Sign in with GitHub
- Choose your repository
- Set the main file to:
app.py
- Deploy
In Streamlit Cloud app settings, open Secrets and paste the contents using the format from:
.streamlit/secrets.example.toml
This app supports Streamlit secrets, so you do not need to upload your JSON credential files to GitHub.
You can enable a simple login page for the live app by adding this to Streamlit Cloud Secrets:
[auth]
username = "your-username"
password = "your-password"After saving and rebooting the app, users must log in before using the tool.
The central backend Excel file is created here:
meesho_order_portal\data\meesho_orders.xlsx
The extractor is built for Meesho-style label PDFs like the sample you shared. If your labels have a different layout, we can adjust the parser rules quickly.