Skip to main content

Library for postcodes validation

Project description

my-package

A lightweight Python library to [brief description of what your package does, e.g., "validate structured strings", "simplify data formatting", etc.].


🚀 Installation

You can install the latest version using pip:

pip install validator-for-postcodes


## 🚀 Usage

from validator_for_postcodes import parse_postcode, postcode_factory
from validator_for_postcodes.countries.uk.postcode import UKPostcode


if __name__ == '__main__':
    parse_postcode("ASDKJF", country="uk")

    postcode_class = postcode_factory("uk")
    obj = postcode_class("KLAJSOID")
    print(obj.postcode)
    print(obj.validate())

    postcode_obj = UKPostcode("QK23AC")
    print(postcode_obj.postcode)
    print(postcode_obj.validate())

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

validator_for_postcodes-0.1.3.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

validator_for_postcodes-0.1.3-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file validator_for_postcodes-0.1.3.tar.gz.

File metadata

  • Download URL: validator_for_postcodes-0.1.3.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.13

File hashes

Hashes for validator_for_postcodes-0.1.3.tar.gz
Algorithm Hash digest
SHA256 f195383f4614610218a987c8f290a456a7b58122adc50451d81787cabeceb362
MD5 c6e418fb405e8ca98f0a7932452a5614
BLAKE2b-256 9e75cde37b78a535412189a112e2e5d51722f1475a4a1bf241bb925c91b4a074

See more details on using hashes here.

File details

Details for the file validator_for_postcodes-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for validator_for_postcodes-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4a0601eb2290b1e260fb0e6c0a6c8035d28004b7b584d33a071b3429f8774120
MD5 ae7812cd160537adc670d978c2bda832
BLAKE2b-256 5056abb2a39e21ceb5685effe8f1b5c004bd8e90ea23925bc49bda1a8d42790a

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