Chris Amico
Chris Amico
Here's another piece of the response object puzzle, sticking with member endpoints: Different API calls give back different amounts of data per member. [Get a list of members](https://projects.propublica.org/api-docs/congress-api/endpoints/#lists-of-members) returns metadata...
A `parse` method might also be a reasonable place to do any type conversion, especially easy things like converting strings to numbers and dates.
Thinking this through a little more, it might be better to make a separate CLI package that builds on this. If we start depending on things like Click and Agate...
I guess I could. Haven't actually touched this code in a few years. Let me see what I can do.
I very nearly archived this repo a couple months ago. If someone wanted to take it over, I'd be happy to hand over the keys.
This might be fairly straightforward using SQLite's backup utility: https://docs.python.org/3/library/sqlite3.html#sqlite3.Connection.backup
Right. The backup command will copy tables completely, but in the case of conflicting table names, the destination gets overwritten silently. That might not be what you want here.
I've thought about that. Not sure I'm ready to drop Python 3.7 just yet, but it's an option.
The first option is probably better. Second would break backwards compatibility, and I'd rather not do that if I can avoid it. Also, Python 3.7 has almost a year until...
Blocks and block groups?