Fast API for Philippine regions, provinces, cities, municipalities, and barangay
780
Barangay API - Simple FastAPI wrapper for barangayβ package.
This project is a FastAPI wrapper around the barangay package, providing a simple and efficient way to interact with the Philippine Standard Geographic Code (PSGC) data.
Barangay APIβ (no promises on reliability π )
Use this when: you have docker and using linux (even WSL):
docker run -p 48573:48573 -d bendlikeabamboo/barangay-api
Try out the API in your local browser: http://localhost:48573/docsβ
Use this when: you're on other platforms but have docker installed.
To get started, clone the repository.
git clone https://github.com/bendlikeabamboo/barangay-api
cd barangay-api
Build the image
docker build --tag 'barangay-api' .
Run the image
docker run -p 48573:48573 barangay-api
Try out the API in your local browser: http://localhost:48573/docsβ
Use this when: you don't have docker but have Python >3.13 installed or would like to develop & contribute.
To get started, clone the repository.
git clone https://github.com/bendlikeabamboo/barangay-api
cd barangay-api
Then install the package:
pip install .
Once successful, run using uvicorn:
uvicorn barangay_api.main:app --port 48573
Try out the API in your local browser: http://localhost:48573/docsβ
We are committed to fostering a welcoming and inclusive community. Please read our Code of Conductβ before contributing.
This project is licensed under the MIT License. See the LICENSE file for more details.
Content type
Image
Digest
sha256:a690c79e6β¦
Size
158.3 MB
Last updated
4 months ago
docker pull bendlikeabamboo/barangay-api