ideal_ukpostcode
package supports validating and formatting postcodes for the UK
- Free software: MIT license
- Documentation: https://myselfdesai.github.io/ideal_ukpostcode
- PyPI: https://pypi.python.org/pypi/ideal_ukpostcode
Introduction
package supports validating and formatting postcodes for the UK. The details of which postcodes are valid and which are the parts they consist of can be found at wiki
Installation
To install ideal_ukpostcode, run this command in your terminal:
pip install ideal_ukpostcode
This is the preferred method to install ideal_ukpostcode, as it will always install the most recent stable release.
If you don't have pip installed, this Python installation guide can guide you through the process.
From sources
The sources for ideal_ukpostcode can be downloaded from the Github repo.
You can clone the public repository:
git clone git://github.com/myselfdesai/ideal_ukpostcode
Usage
To use ideal_ukpostcode in a project:
validate a postcode
it gives boolean result True or False
import ideal_ukpostcode
ideal_ukpostcode.validate("EC1A 1BB")
format a postcode
format(area, district, sector, unit)
import ideal_ukpostcode
ideal_ukpostcode.format("EC","1A","1","BB")
Test
install dev dependencies
pip install -r requirements_dev.txt
In the root folder, execute :
pytest
Credits
This package was created with Cookiecutter and the giswqs/pypackage project template.
Metadata
Release files for ideal-ukpostcode 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ideal_ukpostcode-1.0.3.tar.gz | 5.3 kB | Without provenance | Details for ideal_ukpostcode-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ideal_ukpostcode-1.0.3-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for ideal_ukpostcode-1.0.3-py2.py3-none-any.whl |
Total release size: 10.6 kB
Release files / ideal_ukpostcode-1.0.3.tar.gz
| Download URL | ideal_ukpostcode-1.0.3.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f965de5e453bd280ab654585bbb454b25575758934bd28ec8ae407d725469c36
|
|
BLAKE2b-256 checksum How to use checksums |
dee522ba7f80080c66e44728367d1bfdb73e94a87ac64dc8caa6a8c7d92f1b18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / ideal_ukpostcode-1.0.3-py2.py3-none-any.whl
| Download URL | ideal_ukpostcode-1.0.3-py2.py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
5e0440c4241afcb12b47b63c774930bc3eab32ad89afb6bb31ead8a6d2b2da66
|
|
BLAKE2b-256 checksum How to use checksums |
1700689c13cc1bc066264726b5280cbf651427ff2a26924997be6d5cf8cc9b43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Security for ideal-ukpostcode 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.