Postcode Validator Library
Project description
A Postcode Validator Library.
The initial releas includes validation for only UK Postcodes
Install
postcode_validator is available on PyPI:
$ pip install postcode-validator
Usage
from postcode_validator.uk.uk_postcode_validator import UKPostcode
postcode = UKPostcode('w1a0ax')
postcode.postcode
# output
'W1A 0AX'
postcode.outward
# output
'W1A'
postcode.inward
# output
'0AX'
postcode.area
# output
'W'
postcode.district
# output
'1A'
postcode.sector
# output
'0'
postcode.unit
# output
'AX'
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
Built Distribution
Close
Hashes for postcode_validator-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30203dfe4ce8ef1847e38dc33d5c8a2ba2b827d6e28d59e9bc4871b567705615 |
|
MD5 | 45e94678b1ddc39f163bbc99c863b2c2 |
|
BLAKE2b-256 | 2bdb3b214c1c35bcfd6954c55c75408e0a499195a13602fb8574e5cd209e75c5 |