Skip to main content

No project description provided

Project description

django-thailand-geography

GitHub GitHub Workflow Status codecov PyPI
PyPI - Python Version

Django models for Thailand geography information. This library also includes a command to import geography data from thailand-geography-data/thailand-geography-json

Installation

pip install django-thailand-geography

Setup

  1. Add thailand_geography into INSTALLED_APPS

    # settings.py
    
    INSTALLED_APPS = [
        ...
        'thailand_geography',
    ]
    
  2. Run migration

    python manage.py migrate
    
  3. Import data from JSON database

    python manage.py import_geo
    

Development

Requirements

  • Docker
  • Python
  • Poetry

Migrate

make migrate

Linting

make lint

Testing

make test

Fix Formatting

make yapf

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_thailand_geography-0.1.4.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file django_thailand_geography-0.1.4.tar.gz.

File metadata

  • Download URL: django_thailand_geography-0.1.4.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.11.7 Linux/6.2.0-1018-azure

File hashes

Hashes for django_thailand_geography-0.1.4.tar.gz
Algorithm Hash digest
SHA256 b2342143410017ea36ce9127cc5642f95f95b7710c7b58d05f9df200058ecd4d
MD5 24d66d17a9f6ffb3df32ba223ff91533
BLAKE2b-256 607491a0628ae2566c31f0a0b24473322ec307eeed9519b628faddccb61fca9e

See more details on using hashes here.

File details

Details for the file django_thailand_geography-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for django_thailand_geography-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 81e900bcbc3f6d1e8667030e0237c5a80dc0e89e70610d66a3189245ce3e86a9
MD5 cb7904eda8dadfbe774bb03d430105c6
BLAKE2b-256 11a38afc06e41b7088e52a54c89e7952aadd3b39205fda6126577da95eb12f9f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page