barangay 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.
barangay-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Manuel B.
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,48 @@
1
+ Metadata-Version: 2.3
2
+ Name: barangay
3
+ Version: 0.1.0
4
+ Summary: Nested dictionary of Philippine barangay. Updated as of 2025.
5
+ License: MIT
6
+ Author: bendlikeabamboo
7
+ Author-email: manuelb@hawitsu.xyz
8
+ Requires-Python: >=3.10
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.10
12
+ Classifier: Programming Language :: Python :: 3.11
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Classifier: Programming Language :: Python :: 3.13
15
+ Description-Content-Type: text/markdown
16
+
17
+ # barangay
18
+
19
+ A Python package providing a nested dictionary of all Philippine barangays,
20
+ cities/municipalities, provinces, and regions, updated as of 2025. This project is
21
+ intended for geographic data analysis, lookup, and mapping applications.
22
+
23
+ ## Features
24
+
25
+ - Comprehensive, up-to-date list of Philippine barangays and their administrative
26
+ hierarchy.
27
+ - Data available in both JSON and YAML formats.
28
+ - Easy integration with Python projects.
29
+
30
+ ## Installation
31
+
32
+ Clone the repository and install the package using [Poetry](https://python-poetry.org/):
33
+
34
+ ```sh
35
+ git clone https://github.com/yourusername/barangay.git
36
+ cd barangay
37
+ poetry install
38
+ ```
39
+
40
+ ## Usage
41
+ ```python
42
+ from barangay import BARANGAY
43
+
44
+ brgys_of_binondo = BARANGAY["National Capital Region (NCR)"]["City of Manila"][
45
+ "Binondo"
46
+ ]
47
+ print(brgys_of_binondo)
48
+ ```
@@ -0,0 +1,32 @@
1
+ # barangay
2
+
3
+ A Python package providing a nested dictionary of all Philippine barangays,
4
+ cities/municipalities, provinces, and regions, updated as of 2025. This project is
5
+ intended for geographic data analysis, lookup, and mapping applications.
6
+
7
+ ## Features
8
+
9
+ - Comprehensive, up-to-date list of Philippine barangays and their administrative
10
+ hierarchy.
11
+ - Data available in both JSON and YAML formats.
12
+ - Easy integration with Python projects.
13
+
14
+ ## Installation
15
+
16
+ Clone the repository and install the package using [Poetry](https://python-poetry.org/):
17
+
18
+ ```sh
19
+ git clone https://github.com/yourusername/barangay.git
20
+ cd barangay
21
+ poetry install
22
+ ```
23
+
24
+ ## Usage
25
+ ```python
26
+ from barangay import BARANGAY
27
+
28
+ brgys_of_binondo = BARANGAY["National Capital Region (NCR)"]["City of Manila"][
29
+ "Binondo"
30
+ ]
31
+ print(brgys_of_binondo)
32
+ ```