# django-thailand-geography
[![GitHub](https://img.shields.io/github/license/earthpyy/django-thailand-geography)](https://github.com/earthpyy/django-thailand-geography/blob/main/LICENSE)
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/earthpyy/django-thailand-geography/ci.yml?branch=main)](https://github.com/earthpyy/django-thailand-geography/actions/workflows/ci.yml)
[![codecov](https://codecov.io/gh/earthpyy/django-thailand-geography/branch/main/graph/badge.svg?token=PW280Y917H)](https://codecov.io/gh/earthpyy/django-thailand-geography)
[![PyPI](https://img.shields.io/pypi/v/django-thailand-geography)](https://pypi.org/project/django-thailand-geography/)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/django-thailand-geography)](https://github.com/earthpyy/django-thailand-geography)
Django models for Thailand geography information. This library also includes a command to import geography data from [thailand-geography-data/thailand-geography-json](https://github.com/thailand-geography-data/thailand-geography-json)
## Installation
```bash
pip install django-thailand-geography
```
## Setup
1. Add `thailand_geography` into `INSTALLED_APPS`
```python
# settings.py
INSTALLED_APPS = [
...
'thailand_geography',
]
```
1. Run migration
```bash
python manage.py migrate
```
1. Import data from JSON database
```bash
python manage.py import_geo
```
## Development
### Requirements
- Docker
- Python
- Poetry
### Migrate
```bash
make migrate
```
### Linting
```bash
make lint
```
### Testing
```bash
make test
```
### Fix Formatting
```bash
make yapf
```
Raw data
{
"_id": null,
"home_page": "",
"name": "django-thailand-geography",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8,<4.0",
"maintainer_email": "",
"keywords": "django,thailand,geography,address",
"author": "Preeti Yuankrathok",
"author_email": "preetisatit@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/60/74/91a0628ae2566c31f0a0b24473322ec307eeed9519b628faddccb61fca9e/django_thailand_geography-0.1.4.tar.gz",
"platform": null,
"description": "# django-thailand-geography\n\n[![GitHub](https://img.shields.io/github/license/earthpyy/django-thailand-geography)](https://github.com/earthpyy/django-thailand-geography/blob/main/LICENSE)\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/earthpyy/django-thailand-geography/ci.yml?branch=main)](https://github.com/earthpyy/django-thailand-geography/actions/workflows/ci.yml)\n[![codecov](https://codecov.io/gh/earthpyy/django-thailand-geography/branch/main/graph/badge.svg?token=PW280Y917H)](https://codecov.io/gh/earthpyy/django-thailand-geography)\n[![PyPI](https://img.shields.io/pypi/v/django-thailand-geography)](https://pypi.org/project/django-thailand-geography/) \n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/django-thailand-geography)](https://github.com/earthpyy/django-thailand-geography)\n\nDjango models for Thailand geography information. This library also includes a command to import geography data from [thailand-geography-data/thailand-geography-json](https://github.com/thailand-geography-data/thailand-geography-json)\n\n## Installation\n\n```bash\npip install django-thailand-geography\n```\n\n## Setup\n\n1. Add `thailand_geography` into `INSTALLED_APPS`\n\n ```python\n # settings.py\n\n INSTALLED_APPS = [\n ...\n 'thailand_geography',\n ]\n ```\n\n1. Run migration\n\n ```bash\n python manage.py migrate\n ```\n\n1. Import data from JSON database\n\n ```bash\n python manage.py import_geo\n ```\n\n## Development\n\n### Requirements\n\n- Docker\n- Python\n- Poetry\n\n### Migrate\n\n```bash\nmake migrate\n```\n\n### Linting\n\n```bash\nmake lint\n```\n\n### Testing\n\n```bash\nmake test\n```\n\n### Fix Formatting\n\n```bash\nmake yapf\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "",
"version": "0.1.4",
"project_urls": null,
"split_keywords": [
"django",
"thailand",
"geography",
"address"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "11a38afc06e41b7088e52a54c89e7952aadd3b39205fda6126577da95eb12f9f",
"md5": "cb7904eda8dadfbe774bb03d430105c6",
"sha256": "81e900bcbc3f6d1e8667030e0237c5a80dc0e89e70610d66a3189245ce3e86a9"
},
"downloads": -1,
"filename": "django_thailand_geography-0.1.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "cb7904eda8dadfbe774bb03d430105c6",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8,<4.0",
"size": 7153,
"upload_time": "2023-12-09T11:35:30",
"upload_time_iso_8601": "2023-12-09T11:35:30.571991Z",
"url": "https://files.pythonhosted.org/packages/11/a3/8afc06e41b7088e52a54c89e7952aadd3b39205fda6126577da95eb12f9f/django_thailand_geography-0.1.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "607491a0628ae2566c31f0a0b24473322ec307eeed9519b628faddccb61fca9e",
"md5": "24d66d17a9f6ffb3df32ba223ff91533",
"sha256": "b2342143410017ea36ce9127cc5642f95f95b7710c7b58d05f9df200058ecd4d"
},
"downloads": -1,
"filename": "django_thailand_geography-0.1.4.tar.gz",
"has_sig": false,
"md5_digest": "24d66d17a9f6ffb3df32ba223ff91533",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8,<4.0",
"size": 4816,
"upload_time": "2023-12-09T11:35:32",
"upload_time_iso_8601": "2023-12-09T11:35:32.118591Z",
"url": "https://files.pythonhosted.org/packages/60/74/91a0628ae2566c31f0a0b24473322ec307eeed9519b628faddccb61fca9e/django_thailand_geography-0.1.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-09 11:35:32",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "django-thailand-geography"
}