Example server written for "GraphQL in Python" talk at PyLondinium 2018.
Acquire cities1000.txt and countriesInfo.txt from Geonames. You'll need
a clean Postgres database. You can use
create_database.sql
to setup the tables, then export
DATABASE_URL before running dump-geonames.py
to load
the database with sample data.
Just run tox
. :)
The data used for this example comes from Geonames under a Creative Commons Attribution 3.0 License. Although not modified, only a subset of the data is used.
Released under MIT License, Copyright (c) 2018 Alex Chamberlain. See
LICENSE.md
for full details.