Skip to main content

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"

Release files for vnac 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vnac 0.1.2
File Size Uploaded
vnac-0.1.2.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vnac 0.1.2
File Interpreter ABI Platform
vnac-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 8.5 kB

Release files / vnac-0.1.2.tar.gz

Download URL vnac-0.1.2.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0dda49e5daf1cfb61b4dc958cc88798bf9c92fde9f9ba02a29f8fbf28deac418
BLAKE2b-256 checksum
How to use checksums
90837bcaa08c69d63800938cca1ebb9c2e783b2d436dbad93e0d719a5fc70c3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.8.16 Linux/5.19.0-50-generic

Release files / vnac-0.1.2-py3-none-any.whl

Download URL vnac-0.1.2-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e11ae934c70dd5d78876fd23b21f9a63b05e3a259cdc1ae5d6bba5d2c9957dd9
BLAKE2b-256 checksum
How to use checksums
c628bb05a7c6e02ab453eed36596a390c88487ce8dd287e97c540ab91d23041d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.8.16 Linux/5.19.0-50-generic

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page