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
File details
Details for the file postcode_validator-0.0.4.tar.gz
.
File metadata
- Download URL: postcode_validator-0.0.4.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab2aaac657a00bbfc5443fc7619dde32e6710af9678d9e457914b27ebcedde65 |
|
MD5 | a4bf1be67f6131844eba01e21a395865 |
|
BLAKE2b-256 | 1a92e161a2de66ebb6574973f5d7ec83408efc24127040109c06c2f0726f46de |
File details
Details for the file postcode_validator-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: postcode_validator-0.0.4-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30203dfe4ce8ef1847e38dc33d5c8a2ba2b827d6e28d59e9bc4871b567705615 |
|
MD5 | 45e94678b1ddc39f163bbc99c863b2c2 |
|
BLAKE2b-256 | 2bdb3b214c1c35bcfd6954c55c75408e0a499195a13602fb8574e5cd209e75c5 |