Skip to main content

Python library to validate zip codes in the UK for Scurri interview

Project description

scurri-zipcode

This library supports validating post codes from UK.

Install

pip install scurri_zipcode

Usage

To check whether a post code is valid or not:

from scurri_zipcode.functions import is_valid

is_valid('EC1A 1BB')
# returns True

To format a valid post code:

from scurri_zipcode.functions import format

format('ec1a 1bb')
# returns EC1A 1BB

format('EC1A 111')
# raises an exception because inward code is invalid

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

scurri_zipcode-0.1.5.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scurri_zipcode-0.1.5-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file scurri_zipcode-0.1.5.tar.gz.

File metadata

  • Download URL: scurri_zipcode-0.1.5.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.0

File hashes

Hashes for scurri_zipcode-0.1.5.tar.gz
Algorithm Hash digest
SHA256 be5f6a0baaa859fa3b362a497fa0aa83b2a788163ee197f25c0c4ff454719532
MD5 215ce95711c61e2c778e7411f3c1b6a1
BLAKE2b-256 5efcd45c7a33ab7c76c8a721bfff8d14c70c148f05e1149ae48ab65422a31877

See more details on using hashes here.

File details

Details for the file scurri_zipcode-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: scurri_zipcode-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.0

File hashes

Hashes for scurri_zipcode-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 be0ddc77714dea6174448c5c7ead33ecccab9a2af3c2010a746fa305a3b0849d
MD5 e64c7bc9049f9e49f1f677c36d58ecea
BLAKE2b-256 dc0307c9660393bf0190b50396d622debf7c50109c3bd34542d18ce0c111da45

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page