Skip to main content

Copyright (c) 2016 Jorge Quiterio

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Description: Quickstart Usage:

UK Postalcode format and validation. regex from https://en.wikipedia.org/wiki/Postcodes_in_the_United_Kingdom

INSTALL:

$ pip install https://git.jquiterio.eu/jquiterio/ukpostalcode.git >>>import ukpostalcode as ukpc

VALIDATION

>>>ukpc.isvalid(“OX1 2JD”) >>>True

FORMAT

>>>ukpc.format_postalcode(“OX12JD”) >>>’OX1 2JD’

or:

>>>ukpc.format_postalcode(“O X 12J D”) >>>’OX1 2JD’

GETTING MORE DETAILS(json)

>>>ukpc.detailed(‘OX1 2JD’)

this will get information from http://api.getthedata.com/postcode

Platform: UNKNOWN Classifier: Programming Language :: Python :: 3 Classifier: License :: OSI Approved :: MIT License Classifier: Operating System :: OS Independent Classifier: Topic :: Postcode

Metadata

Release files for ukpostalcode 1.1

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

Source distribution (sdist)

Source distribution for ukpostalcode 1.1
File Size Uploaded
ukpostalcode-1.1.tar.gz 2.7 kB Details

Built distribution (wheel)

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

Total release size: 6.6 kB

Release files / ukpostalcode-1.1.tar.gz

Download URL ukpostalcode-1.1.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1de707b6217e0a87801160b38cb3007219bea400f88e111cb1ea4d54dc21ff6d
BLAKE2b-256 checksum
How to use checksums
12ee84d20d570d494844637e9bf79db5cd31b6012f64c4c60743250c820abb42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.0 CPython/3.7.2

Release files / ukpostalcode-1.1-py3-none-any.whl

Download URL ukpostalcode-1.1-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
95430e11a119b8b6b703c86f26e41a4c943de96aacf069ca38c2eaea7acb8d81
BLAKE2b-256 checksum
How to use checksums
616a661a8b61b9bfc364e11cdf3b366311bfff406e5529fd374dc8a48ccdfc64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.0 CPython/3.7.2

Release history Release notifications | RSS feed

1.2

2 release files

This release

1.1 This release

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