Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mfa/bundesbank-to-sqlite
Convert Bundesbank banking export to a SQLite database
https://github.com/mfa/bundesbank-to-sqlite
datasette sqlite
Last synced: 12 days ago
JSON representation
Convert Bundesbank banking export to a SQLite database
- Host: GitHub
- URL: https://github.com/mfa/bundesbank-to-sqlite
- Owner: mfa
- License: apache-2.0
- Created: 2020-01-19T21:32:05.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-10-31T15:40:04.000Z (about 3 years ago)
- Last Synced: 2024-12-14T14:33:54.002Z (about 1 month ago)
- Topics: datasette, sqlite
- Language: Python
- Homepage:
- Size: 22.5 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bundesbank to sqlite
[![Tests](https://github.com/mfa/bundesbank-to-sqlite/actions/workflows/tests.yml/badge.svg)](https://github.com/mfa/bundesbank-to-sqlite/actions/workflows/tests.yml)
## About
The German Bundesbank releases every quarter of a year a list of all banks in Germany.
This script converts the xslx file to a sqlite database.## Download source data
https://www.bundesbank.de/en/tasks/payment-systems/services/bank-sort-codes/download-bank-sort-codes-626218
choose the XLS version of ``Bank sort code files, unpacked``
## install
```
python setup.py install
```## Convert downloaded file
```
bundesbank-to-sqlite convert blz.db blz-aktuell-xlsx-data.xlsx
```## Use with [Datasette](https://github.com/simonw/datasette)
install Datasette:
```
pip install datasette
```run with Datasette:
```
datasette blz.db
```## Example queries
Run some queries in [Datasette](https://datasette.io).
```
http://localhost:8001/blz/bundesbank_blz?blz=10000000
http://localhost:8001/blz/bundesbank_blz?bic=MARKDEF1100
http://localhost:8001/blz/bundesbank_blz?city=Berlin
http://localhost:8001/blz/bundesbank_blz?zipcode=10117
```(this are the same examples as in deprecated [banking_api](https://github.com/opendata-stuttgart/banking-api#example-api-usage))
## Thanks
[Simon Willison](https://simonwillison.net/) for Datasette and sqlite-utils.