https://github.com/mfa/fnz10-to-sqlite
https://github.com/mfa/fnz10-to-sqlite
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mfa/fnz10-to-sqlite
- Owner: mfa
- Created: 2025-07-18T19:09:40.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-07-18T19:33:48.000Z (11 months ago)
- Last Synced: 2025-07-19T00:11:02.084Z (11 months ago)
- Language: Python
- Size: 31.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## fnz10-to-sqlite
Convert the official Excel export of German Fahrzeugzulassungen (newly registered cars) to SQLite.
### design decisions
- cache the downloads to not hit the server when running again
- the cache is diskcache -- which uses SQLite too, maybe a bit too much for such a simple usecase
- keep all the German names for fields; there is no official translated version
- the code related to SQLite (started with the 2nd commit) is written using OpenAI Codex
### Usage
```shell
# fetch all months for current year up to last month
uv run main.py --all
# load previous month's report into the shared 'fz10' table in data.db
uv run main.py --year 2025 --month 6
# append a different month into the same 'fz10' table in a custom DB file
uv run main.py --year 2025 --month 5 --db-path my.db
```