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'
Release files for postcode-validator 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| postcode_validator-0.0.4.tar.gz | 5.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| postcode_validator-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.5 kB
Release files / postcode_validator-0.0.4.tar.gz
| Download URL | postcode_validator-0.0.4.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ab2aaac657a00bbfc5443fc7619dde32e6710af9678d9e457914b27ebcedde65
|
|
BLAKE2b-256 checksum How to use checksums |
1a92e161a2de66ebb6574973f5d7ec83408efc24127040109c06c2f0726f46de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / postcode_validator-0.0.4-py3-none-any.whl
| Download URL | postcode_validator-0.0.4-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
30203dfe4ce8ef1847e38dc33d5c8a2ba2b827d6e28d59e9bc4871b567705615
|
|
BLAKE2b-256 checksum How to use checksums |
2bdb3b214c1c35bcfd6954c55c75408e0a499195a13602fb8574e5cd209e75c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|