opensource-nepal / py-nepali

py-nepali is a python package containing features that will be useful for Nepali projects.
MIT License
22 stars 13 forks source link

Proposal for removing locations from py-nepali and creating a new repository for maintaining locations. #78

Open aj3sh opened 5 months ago

aj3sh commented 5 months ago

Problem Statement

The APIs for the locations don’t seem right in this py-nepali project. Nepali locations are data, not functional code, and this data should be able to be used by any other programming language or project.

Proposed Solution

Let’s create a new repository nepali-locations. This repository will be fully responsible for maintaining the nepali locations, whether it is a typo, incorrect information, or updates from the government.

Advantages

Disadvantages

Directory Structure

|---src/
|   |---main.yaml
|
|---dist/
|   |---provinces.json
|   |---districts.json
|   |---municipalities.json
|
|---scripts/
|
|---Makefile
|---README.md
|---LICENSE
sugat009 commented 5 months ago

The most practical approach for distributing the data in this case would be to provide downloadable .json files(possibly as releases), rather than having an actual API endpoint that serves the data.