validatepostcodeuk (pypi): this library validates the formatting of UK post codes
Keywords: Post|code