Pincode lookup API for autofill regions and districts from Tanzania during checkout.
# đčđż Tanzania Pincode Lookup API
> ## đ© **This project is 100% complete** đ
>
> `ââââââââââââââââââââââââââââââââââââââââ 100%`
A lightweight **FastAPI** service for looking up Tanzanian regions, cities, and districts from a 6-digit pincode.
The API is designed for applications such as **e-commerce checkout forms**, where a customer enters a pincode and the corresponding location information can be automatically populated.
## âš Features
* đ Look up a location using a 6-digit pincode
* đŠ Perform bulk pincode lookups
* đčđż Tanzania-focused location data
* â
Automatic pincode validation using Pydantic
* ⥠Fast API powered by FastAPI
* đĄïž Custom error handling for invalid and unknown pincodes
* đ Interactive API documentation through FastAPI
* đ§© Easy to integrate with checkout and address forms
## đ ïž Tech Stack
* **Python**
* **FastAPI**
* **Pydantic**
* **Uvicorn**
## đ Project Structure
```text
đčđż EMTAA â Tanzania Pincode Lookup API
â
âââ đ Scripts/
â âââ âïž Supporting / utility scripts
â
âââ đ main.py
â âââ đ FastAPI application entry point
â âââ API routes
â âââ Pincode lookup
â âââ Bulk lookup
â âââ Request / response handling
â
âââ đ models.py
â âââ đ§© Pydantic data models
â âââ Request schemas
â âââ Response schemas
â âââ Data validation
â
âââ đ data.py
â âââ đčđż Tanzania pincode/location dataset
â âââ Regions
â âââ Cities
â âââ Districts
â
âââ đ exceptions.py
â âââ â ïž Custom API exceptions
â âââ Invalid pincode
â âââ Pincode not found
â âââ Validation errors
â
âââ đ requirements.txt
â âââ đŠ Python dependencies
â âââ FastAPI
â âââ Pydantic
â âââ Uvicorn
â
âââ đ README.md
â âââ đ Project documentation
â âââ Features
â âââ Installation
â âââ API usage
â âââ Examples
â
âââ đ .gitignore
â âââ đ« Ignored files / directories
â
âââ đ pyvenv.cfg
âââ đ Python virtual-environment configuration
âââââââââââââââââââââââââââ
â Cli âŠ