This is a redistribution of the ONS dataset on Lower Tier Local Authority toUpper Tier Local Authority Lookup packaged for the Quality Lac Data project.Source: Office for National Statistics licensed under the Open Government Licence v.3.0
Project description
Quality LAC Data Reference - Postcodes
This is a redistribution of the ONS Postcode Directory shaped to be used in the Quality Lac Data project.
This repository contains PyPI and npm distributions of subsets of this dataset as well as the scripts to generate them from source.
Source: Office for National Statistics licensed under the Open Government Licence v.3.0
Read more about this dataset here:
To keep distribution small, only pickled dataframes compatible with pandas 1.0.5 are included. This will hopefully change once we figure out how to do different versions as extras.
As pickle is inherently unsafe, the SHA-512 checksum for each file is included in hashes.txt. This file is signed with this key.
When downloading from PyPI, specify the environment variable
QLACREF_PC_KEY
to either be the public key itself, or a path
to where it can be loaded from. The checksums are then verified
and each file checked before unpickling.
Regular updates
When a new postcode distribution is available, download it and add it to the source folder and at the same time delete the existing file from this location. There can only be one file in the source folder at a time.
After updating the postcode sources, run the script found in bin/generate-output-files.py
to
regenerate the output files for each letter of the alphabet. These end up in the
qlacref_postcodes directory.
To sign the postcodes, you need the distribution private key. Run the script bin/sign-files.py
to
create the signed checksum file.
Commit everything to GitHub. If ready to make a release, make sure to update the version in pyproject.toml, push to GitHub and then create a GitHub release. The GitHub Action will then create the distribution files and upload to PyPI.
Release naming should follow a pseudo-semantic versioning format:
<YEAR>.<MONTH>.<PATCH>
. Alpha and beta releases can be flagged by appending
-alpha.<number>
and -beta.<number>
.
For example, the August 2021 release is named 2021.8 with the associated tag v2021.8.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file quality-lac-data-ref-postcodes-2021.8.1.tar.gz
.
File metadata
- Download URL: quality-lac-data-ref-postcodes-2021.8.1.tar.gz
- Upload date:
- Size: 13.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.0 Linux/5.11.0-1021-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c53a19dffab2d307b602bcc491dd0da184491d8625ec10870eb87199afcfbda |
|
MD5 | 00b78f4a09a6271f13415905d86c821e |
|
BLAKE2b-256 | 6ceb69dab35f27c45098d76d91e01d5e0d0a228a3ba5303082666cd3c5343d30 |
File details
Details for the file quality_lac_data_ref_postcodes-2021.8.1-py3-none-any.whl
.
File metadata
- Download URL: quality_lac_data_ref_postcodes-2021.8.1-py3-none-any.whl
- Upload date:
- Size: 13.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.0 Linux/5.11.0-1021-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ff195206de1440eeb020f90fbd26f104b9ae7415e8bb765787d95df899e3ad4 |
|
MD5 | 37df80d22feebc9937a33f7e73db3d39 |
|
BLAKE2b-256 | ff6f80a6a4782fa30c06830202bb76f96f62adf9cc2dd712d2d22fd7180057c7 |