Load AddressBase into sqlite3 database and explore it using datasette
- Order a copy of OS AddressBase Premium.
- Download the CSV version and save it as
cache/AB76GB_CSV.zip - Download the CSV header files and save them as
cache/addressbase-premium-header-files.zip - Download the Classification codes and save the as
cache/addressbase-product-classification-scheme.zip
We recommend working in virtual environment before installing the python dependencies:
$ make init
$ make
Note that building the database and indexes can take more than an hour on an modern laptop. You can explore the data in a browser using datasette:
$ make serve
The software in this project is open source and covered by the LICENSE file.
Data from Office for National Statistics is licensed under the Open Government Licence v.3.0.
UPRNs and their locations are published here under the Open Government Licence v.3.0 as set out in the OS Open ID policy.
Postcode and other data from OS codepo and OS AddressBase requires the attribution:
- Contains OS data © Crown copyright and database right 2020
- Contains Royal Mail data © Royal Mail copyright and Database right 2020
- Contains National Statistics data © Crown copyright and database right 2020
Otherwise all content and data in this repository is © Crown copyright and available under the terms of the Open Government 3.0 licence.