No project description provided
Project description
VNAddressCorrector
Correct name of 3 level division: ward (Phường/Xã), district (Quận/Huyện), province(Tỉnh/Thành Phố) in Vietnam address.
Installation
pip install vnac
Usage
>>> from vnac.corrector import AddressCorrector
>>> # Address must be in string format "..., {ward}, {district}, {province}" (split by ',')
>>> address = "Số 36A Đường 29, Ấp Tân Tiến, Tân Thìng Hội, Củ Chí, HCM"
>>> corrector = AddressCorrector()
>>> corrected = corrector.correct(address)
>>> corrected
Address(country=None, province=Division(name='HCM', code=79), district=Division(name='Củ Chi', code=None), ward=Division(name='Tân Thông Hội', code=None), street=Division(name='Số 36A Đường 29, Ấp Tân Tiến', code=None))
>>>str(corrected)
"Số 36A Đường 29, Ấp Tân Tiến, Tân Thông Hội, Củ Chi, HCM"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
vnac-0.1.2.tar.gz
(3.9 kB
view details)
Built Distribution
vnac-0.1.2-py3-none-any.whl
(4.7 kB
view details)
File details
Details for the file vnac-0.1.2.tar.gz
.
File metadata
- Download URL: vnac-0.1.2.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.8.16 Linux/5.19.0-50-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0dda49e5daf1cfb61b4dc958cc88798bf9c92fde9f9ba02a29f8fbf28deac418 |
|
MD5 | 0747c4111ca328b61e299e1da7c6e92f |
|
BLAKE2b-256 | 90837bcaa08c69d63800938cca1ebb9c2e783b2d436dbad93e0d719a5fc70c3a |
File details
Details for the file vnac-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: vnac-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.8.16 Linux/5.19.0-50-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e11ae934c70dd5d78876fd23b21f9a63b05e3a259cdc1ae5d6bba5d2c9957dd9 |
|
MD5 | ce33809ab95dc6a271b2ac202ec77e6c |
|
BLAKE2b-256 | c628bb05a7c6e02ab453eed36596a390c88487ce8dd287e97c540ab91d23041d |