Logo Lanfrica

zuck30/tanzania-api

Type de record:

software
Créateur:
zuc
Hôte:
&descAlign=79&fontAlign=50&descAlignY=70&fontColor=f7f5f5) A lightweight, high-performance FastAPI backend providing Tanzanian data and services, including regions, mobile money, and Swahili translations. Built by Zuck30 from Tanzania . Quick Links 🔭 Provides Tanzanian-specific data like regions and districts . 👨‍💻 Built with FastAPI for speed and scalability. 🌍 Supports Swahili translations and mobile money simulations. Skills & Technologies **Backend** **Database** **Tools & Platforms** Project Overview **Tanzania API** is a lightweight, high-performance FastAPI backend designed for developers building applications focused on Tanzania. It provides essential data and services, such as Tanzanian regions, districts, mobile money simulations, and Swahili translations, with minimal dependencies and maximum performance. - **Tanzanian Data**: Access regions, districts, and agricultural crop prices. - **Mobile Money**: Simulate payments for services like M-Pesa. - **Swahili Support**: Translate English to Swahili for localized apps. - **Fast & Scalable**: Built with FastAPI and optimized for low latency. - **Deploy Anywhere**: Supports Docker, cloud platforms, and even Raspberry Pi. API Endpoints - **GET /api/regions**: Retrieve all Tanzanian regions. - **GET /api/regions/{region}/districts**: Get districts for a specific region. - **GET /api/translate?english=hello**: Translate English to Swahili. - **POST /api/mobile-money/payment**: Simulate a mobile money payment. **Example Response**: ```json { "regions": [ { "id": 1, "name": "Dar es Salaam", "capital": "Dar es Salaam", "population": 4364541 } ] } ``` Quick Start ### Prerequisites - Python 3.8+ - Docker (optional for containerized deployment) - Database (SQLite or PostgreSQL) ### Installation 1. **Clone the repository**: ```bash git clone github.com cd tanzania-api ``` 2. **Install dependencies**: ```bash pip install -r requirements.txt ``` 3. …

Languages

Licenses