refdatakit 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. refdatakit-0.1.0/LICENSE +21 -0
  2. refdatakit-0.1.0/MANIFEST.in +2 -0
  3. refdatakit-0.1.0/PKG-INFO +39 -0
  4. refdatakit-0.1.0/README.md +19 -0
  5. refdatakit-0.1.0/pyproject.toml +43 -0
  6. refdatakit-0.1.0/setup.cfg +4 -0
  7. refdatakit-0.1.0/setup.py +40 -0
  8. refdatakit-0.1.0/src/refdatakit/__init__.py +8 -0
  9. refdatakit-0.1.0/src/refdatakit/canonical_json.py +34 -0
  10. refdatakit-0.1.0/src/refdatakit/cli.py +32 -0
  11. refdatakit-0.1.0/src/refdatakit/country_codes.py +11 -0
  12. refdatakit-0.1.0/src/refdatakit/data/__init__.py +0 -0
  13. refdatakit-0.1.0/src/refdatakit/data/datasets/cities/by-country/BD.json +1 -0
  14. refdatakit-0.1.0/src/refdatakit/data/datasets/cities/by-country/BT.json +1 -0
  15. refdatakit-0.1.0/src/refdatakit/data/datasets/cities/by-country/LK.json +1 -0
  16. refdatakit-0.1.0/src/refdatakit/data/datasets/cities/by-country/MV.json +1 -0
  17. refdatakit-0.1.0/src/refdatakit/data/datasets/cities/by-country/NP.json +1 -0
  18. refdatakit-0.1.0/src/refdatakit/data/datasets/cities/by-country/SG.json +1 -0
  19. refdatakit-0.1.0/src/refdatakit/data/datasets/countries/data.json +1 -0
  20. refdatakit-0.1.0/src/refdatakit/data/datasets/institutions/by-country/BD.json +1 -0
  21. refdatakit-0.1.0/src/refdatakit/data/datasets/institutions/by-country/BT.json +1 -0
  22. refdatakit-0.1.0/src/refdatakit/data/datasets/institutions/by-country/LK.json +1 -0
  23. refdatakit-0.1.0/src/refdatakit/data/datasets/institutions/by-country/MV.json +1 -0
  24. refdatakit-0.1.0/src/refdatakit/data/datasets/institutions/by-country/NP.json +1 -0
  25. refdatakit-0.1.0/src/refdatakit/data/datasets/institutions/by-country/SG.json +1 -0
  26. refdatakit-0.1.0/src/refdatakit/data/datasets/manifest.json +1 -0
  27. refdatakit-0.1.0/src/refdatakit/data/datasets/subdivisions/by-country/BD.json +1 -0
  28. refdatakit-0.1.0/src/refdatakit/data/schemas/city.schema.json +84 -0
  29. refdatakit-0.1.0/src/refdatakit/data/schemas/country.schema.json +98 -0
  30. refdatakit-0.1.0/src/refdatakit/data/schemas/entity.schema.json +174 -0
  31. refdatakit-0.1.0/src/refdatakit/data/schemas/manifest.schema.json +94 -0
  32. refdatakit-0.1.0/src/refdatakit/data/schemas/subdivision.schema.json +65 -0
  33. refdatakit-0.1.0/src/refdatakit/data.py +48 -0
  34. refdatakit-0.1.0/src/refdatakit/validator.py +512 -0
  35. refdatakit-0.1.0/src/refdatakit.egg-info/PKG-INFO +39 -0
  36. refdatakit-0.1.0/src/refdatakit.egg-info/SOURCES.txt +19 -0
  37. refdatakit-0.1.0/src/refdatakit.egg-info/dependency_links.txt +1 -0
  38. refdatakit-0.1.0/src/refdatakit.egg-info/entry_points.txt +2 -0
  39. refdatakit-0.1.0/src/refdatakit.egg-info/requires.txt +6 -0
  40. refdatakit-0.1.0/src/refdatakit.egg-info/top_level.txt +1 -0
  41. refdatakit-0.1.0/tests/test_canonical_json.py +16 -0
  42. refdatakit-0.1.0/tests/test_validator.py +422 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 RefDataKit contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,2 @@
1
+ include README.md
2
+ include LICENSE
@@ -0,0 +1,39 @@
1
+ Metadata-Version: 2.4
2
+ Name: refdatakit
3
+ Version: 0.1.0
4
+ Summary: Source-aware reference data and validation tools
5
+ Author: RefDataKit contributors
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/rezwan4029/refdatakit#readme
8
+ Project-URL: Documentation, https://github.com/rezwan4029/refdatakit/blob/main/packages/python/README.md
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Programming Language :: Python :: 3
11
+ Requires-Python: >=3.11
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE
14
+ Requires-Dist: jsonschema<5,>=4.23
15
+ Requires-Dist: rfc8785<0.2,>=0.1.4
16
+ Provides-Extra: dev
17
+ Requires-Dist: pytest>=8.3; extra == "dev"
18
+ Requires-Dist: ruff>=0.11; extra == "dev"
19
+ Dynamic: license-file
20
+
21
+ # refdatakit
22
+
23
+ Source-aware regional reference data and validation tools for Python.
24
+
25
+ Documentation: [Python package guide](https://github.com/rezwan4029/refdatakit/blob/main/packages/python/README.md) · [Project overview](https://github.com/rezwan4029/refdatakit#readme) · [JavaScript/TypeScript package guide](https://github.com/rezwan4029/refdatakit/blob/main/packages/js/README.md).
26
+
27
+ Install from PyPI with `pip install refdatakit`. The package includes the versioned JSON datasets. Data access is local and makes no network requests.
28
+
29
+ ```python
30
+ from refdatakit import CountryCode, get_cities, get_country, get_institutions
31
+
32
+ country = get_country(CountryCode.BD)
33
+ cities = get_cities(CountryCode.BD)
34
+ institutions = get_institutions(CountryCode.BD)
35
+ ```
36
+
37
+ Available accessors are `get_countries()`, `get_country(code)`, `get_cities(code)`, `get_subdivisions(code)`, and `get_institutions(code)`. Country arguments require a generated `CountryCode` enum member; passing a raw string raises `TypeError`. They return dictionaries/lists matching the shared JSON schemas. Source provenance and dataset licenses are recorded in the bundled manifest; dataset terms may differ from the MIT-licensed SDK code.
38
+
39
+ The `refdatakit validate` and `refdatakit sort` commands are repository maintenance tools. The Python package exposes `validate_repository(path)` and `sort_repository(path)` for contributor workflows.
@@ -0,0 +1,19 @@
1
+ # refdatakit
2
+
3
+ Source-aware regional reference data and validation tools for Python.
4
+
5
+ Documentation: [Python package guide](https://github.com/rezwan4029/refdatakit/blob/main/packages/python/README.md) · [Project overview](https://github.com/rezwan4029/refdatakit#readme) · [JavaScript/TypeScript package guide](https://github.com/rezwan4029/refdatakit/blob/main/packages/js/README.md).
6
+
7
+ Install from PyPI with `pip install refdatakit`. The package includes the versioned JSON datasets. Data access is local and makes no network requests.
8
+
9
+ ```python
10
+ from refdatakit import CountryCode, get_cities, get_country, get_institutions
11
+
12
+ country = get_country(CountryCode.BD)
13
+ cities = get_cities(CountryCode.BD)
14
+ institutions = get_institutions(CountryCode.BD)
15
+ ```
16
+
17
+ Available accessors are `get_countries()`, `get_country(code)`, `get_cities(code)`, `get_subdivisions(code)`, and `get_institutions(code)`. Country arguments require a generated `CountryCode` enum member; passing a raw string raises `TypeError`. They return dictionaries/lists matching the shared JSON schemas. Source provenance and dataset licenses are recorded in the bundled manifest; dataset terms may differ from the MIT-licensed SDK code.
18
+
19
+ The `refdatakit validate` and `refdatakit sort` commands are repository maintenance tools. The Python package exposes `validate_repository(path)` and `sort_repository(path)` for contributor workflows.
@@ -0,0 +1,43 @@
1
+ [build-system]
2
+ requires = ["setuptools>=75"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "refdatakit"
7
+ version = "0.1.0"
8
+ description = "Source-aware reference data and validation tools"
9
+ readme = "README.md"
10
+ license = { text = "MIT" }
11
+ requires-python = ">=3.11"
12
+ authors = [{ name = "RefDataKit contributors" }]
13
+ classifiers = [
14
+ "License :: OSI Approved :: MIT License",
15
+ "Programming Language :: Python :: 3",
16
+ ]
17
+ dependencies = [
18
+ "jsonschema>=4.23,<5",
19
+ "rfc8785>=0.1.4,<0.2",
20
+ ]
21
+
22
+ [project.optional-dependencies]
23
+ dev = [
24
+ "pytest>=8.3",
25
+ "ruff>=0.11",
26
+ ]
27
+
28
+ [project.scripts]
29
+ refdatakit = "refdatakit.cli:main"
30
+
31
+ [project.urls]
32
+ Homepage = "https://github.com/rezwan4029/refdatakit#readme"
33
+ Documentation = "https://github.com/rezwan4029/refdatakit/blob/main/packages/python/README.md"
34
+
35
+ [tool.setuptools.packages.find]
36
+ where = ["src"]
37
+
38
+ [tool.setuptools.package-data]
39
+ refdatakit = ["data/datasets/**/*.json", "data/schemas/*.json"]
40
+
41
+ [tool.ruff]
42
+ line-length = 100
43
+ target-version = "py311"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,40 @@
1
+ from pathlib import Path
2
+ from shutil import copytree
3
+
4
+ from setuptools import setup
5
+ from setuptools.command.build_py import build_py
6
+ from setuptools.command.sdist import sdist
7
+
8
+
9
+ class BuildPyWithReferenceData(build_py):
10
+ def run(self):
11
+ super().run()
12
+ repository_root = Path(__file__).resolve().parents[2]
13
+ package_data = Path(self.build_lib) / "refdatakit" / "data"
14
+ source_data = Path(__file__).parent / "src" / "refdatakit" / "data"
15
+ if (source_data / "datasets").is_dir():
16
+ copytree(source_data / "datasets", package_data / "datasets", dirs_exist_ok=True)
17
+ copytree(source_data / "schemas", package_data / "schemas", dirs_exist_ok=True)
18
+ else:
19
+ copytree(repository_root / "datasets", package_data / "datasets", dirs_exist_ok=True)
20
+ copytree(repository_root / "schemas", package_data / "schemas", dirs_exist_ok=True)
21
+
22
+ def get_outputs(self, include_bytecode=1):
23
+ outputs = super().get_outputs(include_bytecode)
24
+ package_data = Path(self.build_lib) / "refdatakit" / "data"
25
+ if package_data.exists():
26
+ outputs.extend(str(path) for path in package_data.rglob("*") if path.is_file())
27
+ return outputs
28
+
29
+
30
+ class SdistWithReferenceData(sdist):
31
+ def make_release_tree(self, base_dir, files):
32
+ super().make_release_tree(base_dir, files)
33
+ repository_root = Path(__file__).resolve().parents[2]
34
+ package_data = Path(base_dir) / "src" / "refdatakit" / "data"
35
+ copytree(repository_root / "datasets", package_data / "datasets", dirs_exist_ok=True)
36
+ copytree(repository_root / "schemas", package_data / "schemas", dirs_exist_ok=True)
37
+ (package_data / "__init__.py").touch()
38
+
39
+
40
+ setup(cmdclass={"build_py": BuildPyWithReferenceData, "sdist": SdistWithReferenceData})
@@ -0,0 +1,8 @@
1
+ from .country_codes import CountryCode
2
+ from .data import get_cities, get_countries, get_country, get_institutions, get_subdivisions
3
+ from .validator import DatasetValidationError, sort_repository, validate_repository
4
+
5
+ __all__ = [
6
+ "CountryCode", "DatasetValidationError", "get_cities", "get_countries", "get_country",
7
+ "get_institutions", "get_subdivisions", "sort_repository", "validate_repository",
8
+ ]
@@ -0,0 +1,34 @@
1
+ from __future__ import annotations
2
+
3
+ import unicodedata
4
+ from typing import TypeAlias, cast
5
+
6
+ import rfc8785
7
+
8
+ JsonValue: TypeAlias = bool | float | int | None | str | list["JsonValue"] | dict[str, "JsonValue"]
9
+
10
+
11
+ def _normalize_nfc(value: object) -> JsonValue:
12
+ if isinstance(value, str):
13
+ return unicodedata.normalize("NFC", value)
14
+ if value is None or isinstance(value, (bool, float, int)):
15
+ return cast(JsonValue, value)
16
+ if isinstance(value, list):
17
+ return [_normalize_nfc(item) for item in value]
18
+ if isinstance(value, dict):
19
+ normalized: dict[str, JsonValue] = {}
20
+ for key, nested_value in value.items():
21
+ if not isinstance(key, str):
22
+ raise TypeError("Canonical JSON object keys must be strings")
23
+ normalized_key = unicodedata.normalize("NFC", key)
24
+ if normalized_key in normalized:
25
+ raise ValueError(
26
+ f"Canonical JSON has duplicate keys after NFC normalization: {key}"
27
+ )
28
+ normalized[normalized_key] = _normalize_nfc(nested_value)
29
+ return normalized
30
+ raise ValueError("Canonical JSON only supports JSON values")
31
+
32
+
33
+ def canonical_json(value: object) -> bytes:
34
+ return rfc8785.dumps(_normalize_nfc(value)) + b"\n"
@@ -0,0 +1,32 @@
1
+ from __future__ import annotations
2
+
3
+ import argparse
4
+ import sys
5
+ from pathlib import Path
6
+
7
+ from .validator import DatasetValidationError, sort_repository, validate_repository
8
+
9
+
10
+ def main() -> None:
11
+ parser = argparse.ArgumentParser(prog="refdatakit")
12
+ subparsers = parser.add_subparsers(dest="command", required=True)
13
+ validate_parser = subparsers.add_parser("validate", help="validate repository datasets")
14
+ validate_parser.add_argument("root", nargs="?", type=Path, default=Path.cwd())
15
+ sort_parser = subparsers.add_parser("sort", help="sort dataset records and update checksums")
16
+ sort_parser.add_argument("root", nargs="?", type=Path, default=Path.cwd())
17
+ arguments = parser.parse_args()
18
+
19
+ if arguments.command == "validate":
20
+ try:
21
+ warnings = validate_repository(arguments.root)
22
+ except DatasetValidationError as error:
23
+ parser.exit(1, f"{error}\n")
24
+ for warning in warnings:
25
+ print(f"Warning: {warning}", file=sys.stderr)
26
+ print("Dataset validation passed.")
27
+ elif arguments.command == "sort":
28
+ try:
29
+ sort_repository(arguments.root)
30
+ except DatasetValidationError as error:
31
+ parser.exit(1, f"{error}\n")
32
+ print("Dataset records sorted by English name; manifest checksums updated.")
@@ -0,0 +1,11 @@
1
+ # Generated from datasets/countries/data.json. Do not edit.
2
+ from enum import StrEnum
3
+
4
+
5
+ class CountryCode(StrEnum):
6
+ BD = "BD"
7
+ BT = "BT"
8
+ LK = "LK"
9
+ MV = "MV"
10
+ NP = "NP"
11
+ SG = "SG"
File without changes
@@ -0,0 +1 @@
1
+ [{"country_code":"BD","id":"bd:locality:0001","localized_names":[{"language":"bn","name":"বাগেরহাট"}],"name":"Bagerhat"},{"country_code":"BD","id":"bd:locality:0002","localized_names":[{"language":"bn","name":"বান্দরবান"}],"name":"Bandarban"},{"aliases":["Barisal"],"coordinates":{"latitude":22.7,"longitude":90.367},"country_code":"BD","id":"wikidata:Q747840","localized_names":[{"language":"bn","name":"বরিশাল"}],"name":"Barishal","subdivision_code":"BD-A"},{"country_code":"BD","id":"bd:locality:0003","localized_names":[{"language":"bn","name":"ভোলা"}],"name":"Bhola"},{"country_code":"BD","id":"bd:locality:0004","localized_names":[{"language":"bn","name":"বগুড়া"}],"name":"Bogura"},{"country_code":"BD","id":"bd:locality:0005","localized_names":[{"language":"bn","name":"ব্রাহ্মণবাড়িয়া"}],"name":"Brahmanbaria"},{"country_code":"BD","id":"bd:locality:0006","localized_names":[{"language":"bn","name":"চাঁদপুর"}],"name":"Chandpur"},{"country_code":"BD","id":"bd:locality:0007","localized_names":[{"language":"bn","name":"চাঁপাইনবাবগঞ্জ"}],"name":"Chapainawabganj"},{"aliases":["Chittagong"],"coordinates":{"latitude":22.335,"longitude":91.833},"country_code":"BD","id":"wikidata:Q376749","localized_names":[{"language":"bn","name":"চট্টগ্রাম"}],"name":"Chattogram","subdivision_code":"BD-B"},{"country_code":"BD","id":"bd:locality:0008","localized_names":[{"language":"bn","name":"চুয়াডাঙ্গা"}],"name":"Chuadanga"},{"country_code":"BD","id":"bd:locality:0009","localized_names":[{"language":"bn","name":"কক্সবাজার"}],"name":"Cox's Bazar"},{"aliases":["Comilla"],"country_code":"BD","id":"bd:locality:0010","localized_names":[{"language":"bn","name":"কুমিল্লা"}],"name":"Cumilla"},{"coordinates":{"latitude":23.729,"longitude":90.394},"country_code":"BD","id":"wikidata:Q1354","localized_names":[{"language":"bn","name":"ঢাকা"}],"name":"Dhaka","subdivision_code":"BD-C"},{"country_code":"BD","id":"bd:locality:0011","localized_names":[{"language":"bn","name":"দিনাজপুর"}],"name":"Dinajpur"},{"country_code":"BD","id":"bd:locality:0012","localized_names":[{"language":"bn","name":"ফরিদপুর"}],"name":"Faridpur"},{"country_code":"BD","id":"bd:locality:0013","localized_names":[{"language":"bn","name":"ফেনী"}],"name":"Feni"},{"country_code":"BD","id":"bd:locality:0014","localized_names":[{"language":"bn","name":"গাইবান্ধা"}],"name":"Gaibandha"},{"country_code":"BD","id":"bd:locality:0015","localized_names":[{"language":"bn","name":"গাজীপুর"}],"name":"Gazipur"},{"country_code":"BD","id":"bd:locality:0016","localized_names":[{"language":"bn","name":"গোপালগঞ্জ"}],"name":"Gopalganj"},{"aliases":["Hobiganj"],"country_code":"BD","id":"bd:locality:0017","localized_names":[{"language":"bn","name":"হবিগঞ্জ"}],"name":"Habiganj"},{"country_code":"BD","id":"bd:locality:0018","localized_names":[{"language":"bn","name":"জামালপুর"}],"name":"Jamalpur"},{"country_code":"BD","id":"bd:locality:0019","localized_names":[{"language":"bn","name":"যশোর"}],"name":"Jashore"},{"country_code":"BD","id":"bd:locality:0020","localized_names":[{"language":"bn","name":"ঝিনাইদহ"}],"name":"Jhenaidah"},{"country_code":"BD","id":"bd:locality:0021","localized_names":[{"language":"bn","name":"কাপ্তাই"}],"name":"Kaptai"},{"country_code":"BD","id":"bd:locality:0022","localized_names":[{"language":"bn","name":"কেরানীগঞ্জ"}],"name":"Keraniganj"},{"country_code":"BD","id":"bd:locality:0023","localized_names":[{"language":"bn","name":"খাগড়াছড়ি"}],"name":"Khagrachhari"},{"coordinates":{"latitude":22.817,"longitude":89.55},"country_code":"BD","id":"wikidata:Q243325","localized_names":[{"language":"bn","name":"খুলনা"}],"name":"Khulna","subdivision_code":"BD-D"},{"country_code":"BD","id":"bd:locality:0024","localized_names":[{"language":"bn","name":"কিশোরগঞ্জ"}],"name":"Kishoreganj"},{"country_code":"BD","id":"bd:locality:0025","localized_names":[{"language":"bn","name":"কুড়িগ্রাম"}],"name":"Kurigram"},{"country_code":"BD","id":"bd:locality:0026","localized_names":[{"language":"bn","name":"কুষ্টিয়া"}],"name":"Kushtia"},{"country_code":"BD","id":"bd:locality:0027","localized_names":[{"language":"bn","name":"লক্ষ্মীপুর"}],"name":"Lakshmipur"},{"country_code":"BD","id":"bd:locality:0028","localized_names":[{"language":"bn","name":"লালমনিরহাট"}],"name":"Lalmonirhat"},{"country_code":"BD","id":"bd:locality:0029","localized_names":[{"language":"bn","name":"মাদারীপুর"}],"name":"Madaripur"},{"country_code":"BD","id":"bd:locality:0030","localized_names":[{"language":"bn","name":"মাগুরা"}],"name":"Magura"},{"country_code":"BD","id":"bd:locality:0031","localized_names":[{"language":"bn","name":"মানিকগঞ্জ"}],"name":"Manikganj"},{"country_code":"BD","id":"bd:locality:0032","localized_names":[{"language":"bn","name":"মেহেরপুর"}],"name":"Meherpur"},{"country_code":"BD","id":"bd:locality:0033","localized_names":[{"language":"bn","name":"মৌলভীবাজার"}],"name":"Moulvibazar"},{"country_code":"BD","id":"bd:locality:0034","localized_names":[{"language":"bn","name":"মুন্সিগঞ্জ"}],"name":"Munshiganj"},{"coordinates":{"latitude":24.75,"longitude":90.417},"country_code":"BD","id":"wikidata:Q1006303","localized_names":[{"language":"bn","name":"ময়মনসিংহ"}],"name":"Mymensingh","subdivision_code":"BD-H"},{"country_code":"BD","id":"bd:locality:0035","localized_names":[{"language":"bn","name":"নওগাঁ"}],"name":"Naogaon"},{"country_code":"BD","id":"bd:locality:0036","localized_names":[{"language":"bn","name":"নড়াইল"}],"name":"Narail"},{"country_code":"BD","id":"bd:locality:0037","localized_names":[{"language":"bn","name":"নারায়ণগঞ্জ"}],"name":"Narayanganj"},{"country_code":"BD","id":"bd:locality:0038","localized_names":[{"language":"bn","name":"নরসিংদী"}],"name":"Narsingdi"},{"country_code":"BD","id":"bd:locality:0039","localized_names":[{"language":"bn","name":"নাটোর"}],"name":"Natore"},{"country_code":"BD","id":"bd:locality:0040","localized_names":[{"language":"bn","name":"নেত্রকোণা"}],"name":"Netrokona"},{"country_code":"BD","id":"bd:locality:0041","localized_names":[{"language":"bn","name":"নীলফামারী"}],"name":"Nilphamari"},{"country_code":"BD","id":"bd:locality:0042","localized_names":[{"language":"bn","name":"নোয়াখালী"}],"name":"Noakhali"},{"country_code":"BD","id":"bd:locality:0043","localized_names":[{"language":"bn","name":"পাবনা"}],"name":"Pabna"},{"country_code":"BD","id":"bd:locality:0044","localized_names":[{"language":"bn","name":"পঞ্চগড়"}],"name":"Panchagarh"},{"country_code":"BD","id":"bd:locality:0045","localized_names":[{"language":"bn","name":"পটুয়াখালী"}],"name":"Patuakhali"},{"country_code":"BD","id":"bd:locality:0046","localized_names":[{"language":"bn","name":"পিরোজপুর"}],"name":"Pirojpur"},{"country_code":"BD","id":"bd:locality:0047","localized_names":[{"language":"bn","name":"রাজবাড়ী"}],"name":"Rajbari"},{"coordinates":{"latitude":24.367,"longitude":88.6},"country_code":"BD","id":"wikidata:Q322155","localized_names":[{"language":"bn","name":"রাজশাহী"}],"name":"Rajshahi","subdivision_code":"BD-E"},{"country_code":"BD","id":"bd:locality:0048","localized_names":[{"language":"bn","name":"রাঙামাটি"}],"name":"Rangamati"},{"coordinates":{"latitude":25.749,"longitude":89.247},"country_code":"BD","id":"wikidata:Q994514","localized_names":[{"language":"bn","name":"রংপুর"}],"name":"Rangpur","subdivision_code":"BD-F"},{"country_code":"BD","id":"bd:locality:0049","localized_names":[{"language":"bn","name":"সাতক্ষীরা"}],"name":"Satkhira"},{"country_code":"BD","id":"bd:locality:0050","localized_names":[{"language":"bn","name":"সাভার"}],"name":"Savar"},{"country_code":"BD","id":"bd:locality:0051","localized_names":[{"language":"bn","name":"শাহজাদপুর"}],"name":"Shahjadpur"},{"country_code":"BD","id":"bd:locality:0052","localized_names":[{"language":"bn","name":"শরীয়তপুর"}],"name":"Shariatpur"},{"country_code":"BD","id":"bd:locality:0053","localized_names":[{"language":"bn","name":"শেরপুর"}],"name":"Sherpur"},{"country_code":"BD","id":"bd:locality:0054","localized_names":[{"language":"bn","name":"সিরাজগঞ্জ"}],"name":"Sirajganj"},{"country_code":"BD","id":"bd:locality:0055","localized_names":[{"language":"bn","name":"সুনামগঞ্জ"}],"name":"Sunamganj"},{"coordinates":{"latitude":24.9,"longitude":91.867},"country_code":"BD","id":"wikidata:Q466221","localized_names":[{"language":"bn","name":"সিলেট"}],"name":"Sylhet","subdivision_code":"BD-G"},{"country_code":"BD","id":"bd:locality:0056","localized_names":[{"language":"bn","name":"টাঙ্গাইল"}],"name":"Tangail"},{"country_code":"BD","id":"bd:locality:0057","localized_names":[{"language":"bn","name":"ঠাকুরগাঁও"}],"name":"Thakurgaon"}]
@@ -0,0 +1 @@
1
+ [{"coordinates":{"latitude":27.4714,"longitude":89.6337},"country_code":"BT","id":"wikidata:Q9270","name":"Thimphu","population":79185}]
@@ -0,0 +1 @@
1
+ [{"coordinates":{"latitude":7.7167,"longitude":81.7},"country_code":"LK","id":"wikidata:Q810963","name":"Batticaloa","population":95489},{"coordinates":{"latitude":6.9267,"longitude":79.8606},"country_code":"LK","id":"wikidata:Q35381","name":"Colombo","population":752993},{"coordinates":{"latitude":6.0328,"longitude":80.2156},"country_code":"LK","id":"wikidata:Q319366","name":"Galle","population":93118},{"coordinates":{"latitude":9.6647,"longitude":80.0167},"country_code":"LK","id":"wikidata:Q215277","name":"Jaffna","population":88138},{"coordinates":{"latitude":6.9567,"longitude":79.9206},"country_code":"LK","id":"wikidata:Q3522428","name":"Kelaniya"},{"coordinates":{"latitude":5.95,"longitude":80.5333},"country_code":"LK","id":"wikidata:Q13360574","name":"Matara","population":68244},{"coordinates":{"latitude":6.7991,"longitude":79.8767},"country_code":"LK","id":"wikidata:Q867213","name":"Moratuwa"},{"coordinates":{"latitude":7.2681,"longitude":80.5967},"country_code":"LK","id":"wikidata:Q489744","name":"Peradeniya"}]
@@ -0,0 +1 @@
1
+ [{"aliases":["Gan (Laamu Atoll)"],"coordinates":{"latitude":1.9153,"longitude":73.5431},"country_code":"MV","id":"wikidata:Q3038674","name":"Gan","population":4815},{"coordinates":{"latitude":4.175,"longitude":73.5083},"country_code":"MV","id":"wikidata:Q9347","name":"Malé","population":103693}]
@@ -0,0 +1 @@
1
+ [{"coordinates":{"latitude":26.8167,"longitude":87.2667},"country_code":"NP","id":"wikidata:Q8254","name":"Dharan","population":116181},{"coordinates":{"latitude":27.6167,"longitude":85.55},"country_code":"NP","id":"wikidata:Q576437","name":"Dhulikhel","population":14283},{"coordinates":{"latitude":27.71,"longitude":85.32},"country_code":"NP","id":"wikidata:Q3037","name":"Kathmandu","population":845767},{"coordinates":{"latitude":27.6667,"longitude":85.2833},"country_code":"NP","id":"wikidata:Q1517030","name":"Kirtipur","population":65602},{"coordinates":{"latitude":27.6833,"longitude":85.3333},"country_code":"NP","id":"wikidata:Q6647","name":"Lalitpur","population":220802},{"coordinates":{"latitude":28.2097,"longitude":83.9853},"country_code":"NP","id":"wikidata:Q6640","name":"Pokhara","population":353841}]
@@ -0,0 +1 @@
1
+ [{"coordinates":{"latitude":1.3,"longitude":103.8},"country_code":"SG","id":"wikidata:Q334","localized_names":[{"language":"ms","name":"Singapura"},{"language":"ta","name":"சிங்கப்பூர்"},{"language":"zh","name":"新加坡"}],"name":"Singapore"}]
@@ -0,0 +1 @@
1
+ [{"alpha3_code":"BGD","code":"BD","commonly_spoken_languages":["bn-BD","en"],"name":"Bangladesh","numeric_code":"050","official_languages":["bn"]},{"alpha3_code":"BTN","code":"BT","commonly_spoken_languages":["dz"],"name":"Bhutan","numeric_code":"064","official_languages":["dz"]},{"alpha3_code":"MDV","code":"MV","commonly_spoken_languages":["dv","en"],"name":"Maldives","numeric_code":"462","official_languages":["dv"]},{"alpha3_code":"NPL","code":"NP","commonly_spoken_languages":["ne","en"],"name":"Nepal","numeric_code":"524","official_languages":["ne"]},{"alpha3_code":"SGP","code":"SG","commonly_spoken_languages":["cmn","en-SG","ms-SG","ta-SG","zh-SG"],"name":"Singapore","numeric_code":"702","official_languages":["en","ms","ta","zh"]},{"alpha3_code":"LKA","code":"LK","commonly_spoken_languages":["si","ta","en"],"name":"Sri Lanka","numeric_code":"144","official_languages":["si","ta"]}]