+static PyObject* Database_get_country(DatabaseObject* self, PyObject* args) {
+ const char* country_code = NULL;
+
+ if (!PyArg_ParseTuple(args, "s", &country_code))
+ return NULL;
+
+ struct loc_country* country;
+ int r = loc_database_get_country(self->db, &country, country_code);
+ if (r) {
+ Py_RETURN_NONE;
+ }
+
+ PyObject* obj = new_country(&CountryType, country);
+ loc_country_unref(country);
+
+ return obj;
+}
+