Latest / Talk Python To Me / #317: Python at the US Federal Election Commission
Transcript
- 0:00When you think of government software development and projects, do fast apps and modern tech stacks
- 0:04jump to mind? Probably not. So you'll be delighted to hear from our guest, Laura Buford. She's the
- 0:09tech lead at the U.S. Federal Election Commission. She and her team have built a very modern tech
- 0:14stack running modern Flask web apps with APIs powered by SQLAlchemy and Flask RESTful.
- 0:19This app and its API are available as open source on GitHub, and they deploy it with continuous
- 0:25delivery right out to cloud.gov. There are lots of lessons to learn for governmental agencies around
- 0:30the world, as well as private organizations, small and large. This is Talk Python To Me, episode 317,
- 0:37recorded May 19th, 2021.
- 0:52Welcome to Talk Python To Me, a weekly podcast on Python, the language, the libraries, the
- 0:57ecosystem, and the personalities. This is your host, Michael Kennedy. Follow me on Twitter where I'm
- 1:02at mkennedy and keep up with the show and listen to past episodes at talkpython.fm and follow the
- 1:07show on Twitter via at Talk Python. This episode is brought to you by Square and us over at Talk
- 1:13Python Training. Please check out what we're offering during our segments. It really helps
- 1:17support the show. Laura, welcome to Talk Python To Me.
- 1:20Thank you very much, Michael. Happy to be here.
- 1:21Yeah, I'm so happy to have you here as well. You're doing a whole bunch of interesting things
- 1:26around open source and the U.S. government. And I find government to be so interesting because
- 1:32there's a lot of data, there's a lot of technology, there's many users, right? We've got 300 million
- 1:39users in the U.S. or so, in some sense. And yet, a lot of times, the technology there feels so
- 1:44old and ancient. And yet, what you're building and some of the change that you're leading is
- 1:50very modern, right? You could put this up beside a lot of the startups in Silicon Valley and it would
- 1:55look amazing still. So, well done.
- 1:58Well, thank you so much for your kind words.
- 1:59Yeah, absolutely. Now, before we dive into all the cool Python things, let's just start with your
- 2:05story. How'd you get into programming in Python?
- 2:06I have always been interested in computers. I loved to tinker with the computers at home,
- 2:14but I couldn't say that I had a natural aptitude for software development. I took classes in high
- 2:20school and college. I thought I wanted to be a computer science major and really struggled with
- 2:25writing software. It was a very exciting time politically at the time, so I decided I wanted
- 2:30to be a political science and history major. And my mom really encouraged me to finish my minor,
- 2:34which was great advice, mom. Thank you. I finished my computer science minor.
- 2:38And when I first graduated, I really wanted to get involved in campaigns. It was 2007, 2008. And I found
- 2:46a, I'm from DC. I came back to DC. I found a local political software company that was hiring.
- 2:52And I had originally interviewed for an administrative assistant position and the founder recommended I work
- 2:59in tech support. I was really surprised because I felt like I didn't know what I was doing,
- 3:03but it was a really great organization. It taught me everything I need to know and really loved.
- 3:08That's cool. Did you have one of those experiences where you're like, oh, there's no way I can help out with this
- 3:12tech support stuff. And then you can get there and you're like, I'm actually able to help quite a bit.
- 3:15Yeah. You learn some skills. So we had one major system that we supported and then a couple other smaller
- 3:20software. And I never really learned how to use myself. So you learn some tricks like,
- 3:26so walk me through the exact steps you've taken so far, you know, and then you sort of follow along
- 3:31with them and you're like, have you tried clicking this? This looks promising. Let's try clicking on
- 3:35this and see what happens. So how funny. Yeah. Tech support was a great first job out of college. I
- 3:40learned a lot, helped me with my creative problem solving skills. And I really learned the software
- 3:44well to the point where after a few years of tech support, I would send the developers the line of code
- 3:50where the bug occurred and say, you know, here's the bug that the user reported. So they asked me to
- 3:56come work on the development side. And I did that for a little while. And then I was still struggling
- 4:01with my confidence. It wasn't really a great fit. And I couldn't quite figure out why I didn't have a lot
- 4:07of support. This is before a lot of the meetup culture. This was 2012. There are a lot. Now I found
- 4:14there are a lot of communities for helping people get into tech. But DC. Yeah, the communities have really
- 4:19grown a lot in the last five years or so. It's a lot, a lot nicer in that. Absolutely. Yeah. And DC
- 4:24wasn't really a tech hub. It wasn't really known for being much of a tech hub. So I had a lot of self
- 4:31doubt. And I wasn't sure that being a developer was right for me. So but I while I was working at this
- 4:37company, it was a company that helped campaigns file their campaign finance disclosures, the FEC. So
- 4:42political campaigns in the in the US need to disclose money that they've raised and spent towards
- 4:48their election. This is if they privately done it or through the government support or something
- 4:53like that, right? You have options. FEC provides free filing software. And it's everything you might
- 4:59imagine free government software might look like and we're working on that. But there are also third
- 5:05party companies like a like equivalent of like a turbo tax for filing campaign finance disclosures.
- 5:10And so that's what that company did. And I just fell in love with all the rules and the campaign
- 5:15finance. It's sort of like super nerdy, like anyone who gets excited about filing their taxes and all the
- 5:20different scenarios. It's very similar amount of rules for who can give how much under what circumstances.
- 5:27There are situations where individuals can gift goods and services to campaigns, but there are
- 5:32restrictions on those types of gifts. So I really just enjoyed that world campaign finance. Yeah.
- 5:38Even though I had been a political science major in college, I actually hadn't learned that much about
- 5:43the FEC and campaign finance laws and regulations. And it was kind of before campaign finance was a
- 5:49hotbed issue. It can sometimes be a hotbed issue now, but this was not something we covered a lot in
- 5:56class. It's not something that was getting covered a lot in the media. So it was through work that I
- 6:00learned about FEC disclosure rules and campaign fundraising, whereas before I had really learned more about
- 6:05voting. So the fundraising is what allows the running of the campaign to take place.
- 6:10Yeah. So much, at least in the U S is about running ads and hiring people to go out and knock on doors
- 6:16and all sorts of stuff like that. Right. So even though really you'd hope it's kind of some sort of
- 6:20meritocracy and you debate and then you choose the ideas, there's monies involved.
- 6:24Yes. It has become a hot, hot bed topic in a lot of ways, but I think at the time I was learning about it,
- 6:30it was the money was often thought to be an indicator of support. So if you could raise a lot
- 6:34of money from a lot of different people, it was an indicator that you had widespread support and that
- 6:39those folks were, even if they were just giving you $20 towards the campaign, they would help you
- 6:43support, like have office space. And like you said, print ads.
- 6:46Right. It's some sort of, if you're going to give money, you're likely you would vote for them,
- 6:50right? Giving money is a bigger signal than actually voting. So it's an early signal, I guess.
- 6:55Absolutely. So I wasn't sure being a software developer was right for me. So I went to go
- 7:00work for the FEC in a less technical role where I worked to help the FEC with more of the enforcement
- 7:07side of things, making sure that the campaign finance reports were filled out properly, that if
- 7:12people had questions about how to comply with the law, if there's any disparities or anything that was
- 7:16unclear on the reports, I would help clear, like send correspondence on the public record, asking the
- 7:23regulated community that, you know, the campaigns and the PACs and parties to, you know, further
- 7:28clarify their reports. And there was an element of tech support in that role. I also did tech support
- 7:34for the free filing software and anyone who's done tech support, sometimes I can get pretty,
- 7:39like answering the same question over and over again, no matter how much you care, it can,
- 7:44can sort of wear on you. So I was looking for a challenge.
- 7:47I'm so happy to have your question. I'm really here to support you for the 100th time.
- 7:52Yes. And this is the first time they're asking, you know, so you have to, you know,
- 7:56Yeah, of course they, it's not there. They don't know.
- 7:58Right. And there are a lot of very confusing rules. And some of the best advice I got from my
- 8:04supervisor was you don't have to defend the agency. You know, so if someone says, this is really
- 8:08confusing, you can say, it is confusing. Let me see if I can help you work through it instead of,
- 8:14you know, trying to defend the regulations for, for, and so after about five years of doing that job,
- 8:21I wanted a challenge, I wanted to change. And there was an opening on the website project team
- 8:27for fec.gov. And my mentor at the time had recommended that I come work on this project.
- 8:34It was a really cool project. And I can talk about why it's cool. And I said, Oh, I haven't written a
- 8:38line of code in five years. You know, there's no way I can work there. And I met with the team and
- 8:43they were willing to, if I was willing to work hard to get up to speed, they were willing to work with me
- 8:48since I had a lot of knowledge about the area and past experience. So basically did a crash course
- 8:53in Python. And with a lot more support this time around, there are all these organizations in DC for
- 8:59underrepresented genders and tech and just new developers. And so really did a deep dive and
- 9:06kind of was able to talk myself onto the team and, and was drinking from the fire hose and really just,
- 9:11yeah, really had fun though. It was super fun.
- 9:14That's cool. You know, one of the things that I hear in your story here, that sounds a little bit
- 9:19different between the two experiences, you're going to college and getting your minor in CS versus,
- 9:24you know, being really passionate about the politics and elections and then learning code to sort of
- 9:31advance that mission. Those are really different in that, you know, so often in computer science,
- 9:36it's like, well, here's some random algorithm. We're going to study the algorithm. Then you can
- 9:39reproduce the algorithm and how boring and dry and separated from like what you're interested in.
- 9:44is that right. Whereas this is like, well, I've got to go through this technology to use it as a,
- 9:50like a way to really achieve the goals I'm after. And I think those are just such different experiences.
- 9:55Would you agree?
- 9:56Absolutely. I distinctly remember one of my projects in college was to build a calendar.
- 10:00And I was like, I have a calendar. You have to remember like,
- 10:05got a paper one, I got a digital one.
- 10:07Yeah. And so I just wasn't very passionate about some of the projects and they're good projects for
- 10:12teaching the concepts, but not necessarily that can be difficult to find. And I think there's been
- 10:17a reevaluation of how certain ways of writing software is taught a little more beginner friendly.
- 10:22If you have a goal and you have something you want to build and you know why you want to work on it,
- 10:26well then it's super exciting. But if it's just dry, I think we lose a lot of people who don't have some
- 10:32sort of personal drive that's going to get them through that is not necessarily part of the lessons or part of the
- 10:37official experience, you know?
- 10:39Absolutely. And the thing I wanted to add to that is that I didn't learn at the time I was in,
- 10:44in school, I was studying computer science and I've sort of figured out that software development and computer science
- 10:50can be somewhat different disciplines. And I never learned how to really write software in college.
- 10:56And what I've learned the hard way is to really start small, get the smallest piece working,
- 11:02change the smallest part of it. And can you make that even smaller? Maybe just hard code something for now.
- 11:07Whereas before I would write in college, I would write top to bottom, write the whole thing out,
- 11:12and then it would just explode about a semicolon buried on line 463.
- 11:17So those learning those skills has helped me made it a lot more fun, a lot less miserable.
- 11:22Yeah, fantastic. So I think you've given us quite a bit of background already about the FEC,
- 11:27FEC Federal Election Commission. But I think two things are interesting to talk about real quickly here.
- 11:33One is this whole agency was born, I guess, just a tiny bit before I was actually, but it was born out of a financial
- 11:42scandal in 1972, right?
- 11:45Yes, after the Watergate scandal.
- 11:47Yeah, I bet people have heard of that one.
- 11:48I hope so.
- 11:49Yeah, I would hope so too. The other thing is, you know, you look at the FEC and you said it's not a
- 11:56huge organization of the government, but how many people work there?
- 11:58We have about 300 full-time employees. That's federal employees. So they work for the US government.
- 12:03And for on FEC.gov, we have a team of about, you know, we have a cross-functional team, but we have about nine developers and a user experience designer who work on the technical side of the site.
- 12:15Yeah, cool. It's a pretty small group of developers. Probably all work pretty closely. I'm sure it's a fun place to be.
- 12:21It really is.
- 12:21Yeah. And before we move on too far from the opening, Kim Van Wyk, who was one of the Ask Me Anything hosts for me? Hey, Kim.
- 12:29Says, I strongly suspect that also helps you remember a software topic six months later if you did something you found interesting while learning.
- 12:36Absolutely.
- 12:36Yeah, I would definitely say so.
- 12:37Absolutely.
- 12:37All right. So as we get into the code side of things, maybe we could talk a little bit about the type of data to give people a sense of what we're working with here.
- 12:46So one of the things you can do is you can go to FEC.gov and you can go to all data and there's all kinds of stuff you can learn about raising money, spending money, candidates.
- 12:54I could go over here. I could select my state, Oregon. I could go pick my location around Portland and pull that up.
- 13:02And it'll do things like, I could go up and say, learn about the house, I guess.
- 13:06And it'll show this person in this party raised $64,000 and had $110,000 disbursements, how much cash they have on hand right now.
- 13:18So apparently $711,000, which is kind of insane.
- 13:22And then you can go see the sources for this data. Tell us about the kind of data and how people use it there.
- 13:27Yeah, that's a great, our election profile pages. I'm really proud of those.
- 13:30We can see who's running in each election.
- 13:32Yeah, it's beautiful. And you get like a colorful map of the areas.
- 13:35You just click on it and it pulls it right up. It's really neat.
- 13:38Thank you so much. And as you were demoing it live here, it was looking snappy, which just really warmed my heart.
- 13:43It's very funny.
- 13:44So when we think about filing our taxes with the IRS, in the U.S. at least,
- 13:48we have to disclose how much money we made and various other, basically the money we made in our taxes.
- 13:54It's all summary level data.
- 13:55Campaigns need to file the, not only the summary level data, but also the transaction level data.
- 14:00So from every contributor who's given aggregate of $200 or more in a given election,
- 14:07they have to disclose their name and address, employer occupation, and the details of that transaction.
- 14:13And so it's a large volume of data.
- 14:15Especially at the presidential level or national level.
- 14:18Yes. Yes. Presidential level, I mean, like hundreds of millions of records.
- 14:24I think we're on track to have a total of 1 billion records by the end of the 2022 elections.
- 14:29It's just a lot of data. So it's not just how much they've raised. It's the individual contributions that go into that.
- 14:36So from here, if you wanted to click on the name of the candidate you're looking at for your district,
- 14:42it'll take you to the candidate's profile page. It looks like this is a House candidate and they run every two years.
- 14:49So there's a browse receipts button so you can actually see the individual contributions that made up.
- 14:54And it's 2022. There hasn't been a lot of data yet for 2022 because it's early in the election cycle.
- 15:00Oh my gosh. So I'm in here looking at this and it says, here is Diane Snow, who donated how much?
- 15:07You know, $50. These are individual contributions and all sorts of stuff, right? This is crazy detail.
- 15:13Yes. And we've had detailed, we, as part of our mission to make detailed contributor data and not just contributor,
- 15:18but expenditure data, how the committees are spending their money since back to the late 70s.
- 15:25So we do have all the historical data here to explore. You could export this to Excel spreadsheet or technically it's a CSV.
- 15:32But at the top of the page, you could filter for like all the money that's been received for 2022.
- 15:37So you could eliminate your, there are the breadcrumbs there with the little X's on them.
- 15:41You could, you know, just maybe that one candidate across all time or all the money for 2022.
- 15:47And so it is for all the data is, it is again, like about coming up on, we had around 500 million transactional transactions last in the 2020 election.
- 15:59That equals about four terabytes of data.
- 16:01And the expectation is it is filterable. It's searchable. It's exportable.
- 16:06I think user expectation is that you'll be able to get the information quickly.
- 16:09So we've spent a lot of time focusing on performance improvement for the site, which is powered by our campaign finance data API under the hood.
- 16:16This portion of Talk Python To Me is brought to you by Square.
- 16:21Payment acceptance can be one of the most painful parts of building a web app for a business.
- 16:26When implementing checkout, you want it to be simple to build, secure, and slick to use.
- 16:31Square's new web payment SDK raises the bar in the payment acceptance developer experience
- 16:37and provides a best-in-class interface for merchants and buyers.
- 16:41With it, you can build a customized branded payment experience and never miss a sale.
- 16:46Deliver a highly responsive payments flow across web and mobile that integrates with credit cards and debit cards,
- 16:53digital wallets like Apple Pay and Google, ACH bank payments, and even gift cards.
- 16:57For more complex transactions, follow-up actions by the customer can include completing a payment authentication step,
- 17:04filling in a credit line application form, or doing background risk checks on the buyer's device.
- 17:09And developers don't even need to know if the payment method requires validation.
- 17:14Square hides the complexity from the seller and guides the buyer through the necessary steps.
- 17:18Getting started with a new web payment SDK is easy.
- 17:21Simply include the web payment SDK JavaScript,
- 17:24flag an element on the page where you want the payment form to appear,
- 17:27and then attach hooks for your custom behavior.
- 17:29Learn more about integrating with Square's web payments SDK at talkpython.fm/square,
- 17:35or just click the link in your podcast player's show notes.
- 17:38That's talkpython.fm/square.
- 17:42There's a whole bunch of APIs, and you can even check out the code on GitHub, which is super interesting.
- 17:47This is the kind of data that people can get, and I think it's pretty good.
- 17:50So one of the things that's interesting to me is if I'm over here on fec.gov,
- 17:56this looks like a pretty well-designed website.
- 17:59It looks nice.
- 18:00You can jump around.
- 18:01But then as you were showing me those different locations,
- 18:04it looks pretty data-driven.
- 18:06There's a decent amount of logic behind it.
- 18:08You said that this is built on Wagtail.
- 18:10Is that right?
- 18:11So when you go to fec.gov, it's mainly two applications.
- 18:15The content management system we use is built with Wagtail.
- 18:19So there are kind of three different buckets on the site.
- 18:22There's the campaign finance data, which we were just discussing,
- 18:24which is mostly powered by the API.
- 18:26We use some AJAX calls, just basically JavaScript and data tables
- 18:30to display the data that the API provides.
- 18:34And this application that we're looking at is the Django-based CMS application.
- 18:39Right.
- 18:39And so for people who don't know, maybe just tell them really,
- 18:41what's the elevator pitch on Wagtail?
- 18:43What is this thing?
- 18:44Wagtail is a really great admin for the Django framework.
- 18:48So Django has a built-in admin framework.
- 18:50So just to kind of give some context,
- 18:52the disclosure, the help for candidates and committees section of our site
- 18:57has information for our regulated community.
- 18:59So if they want to find out, can I take this money from this source?
- 19:02Or what are the limits on contributions?
- 19:03They can go to help for candidates and committees and find the answers to their questions.
- 19:07And so that's stored in the Django database.
- 19:10Well, it's stored in a Postgres database that our Django application connects to.
- 19:15And Django as a web application framework has a built-in admin.
- 19:19So, you know, if you're working on this, if you've worked on like the Django tutorial or anything like that,
- 19:23you can go slash admin and use the built-in Django admin to manage your content.
- 19:29So if you wanted to modify an article or, you know, you're working on a blog or whatever, that's how you do it.
- 19:34Wagtail is an open source tool that is, that has more user-friendly functionality on top of the existing Django admin.
- 19:41A little closer to like WordPress-ish kind of?
- 19:44Yeah, it's got some great features.
- 19:46You can do custom templates.
- 19:48I don't work as, I work more on the data sides, but we have a content team that uses Wagtail to manage the content on the site.
- 19:54It seems like it's very customizable and just has more features than the Django admin that I'm sure you could build yourself.
- 20:02But this is a free open source project that allows you to have a more robust admin interface.
- 20:07Yeah, a lot of times that's a big platform decision people have to make.
- 20:11Like, oh, well, we want to have this admin thing that people will let people go in and just developers don't have to add the informational pages
- 20:18and just maintain the basic data of the site.
- 20:20So I could either build something in Django and then it's kind of on me or we got to go through the admin backend in a clunky way
- 20:28or I've got to build something or we go WordPress.
- 20:31But now you're out of Python and you're in this other Joomla WordPress world that you're not really able to extend
- 20:37and it just becomes almost a static site.
- 20:38And so things like Wagtail are cool because they let you stay in your world if you're a Python developer,
- 20:44but then also have a nicer experience on top of it for the users.
- 20:47Yeah, Wagtail seems like it's been great for us.
- 20:50Yeah, very cool, very cool.
- 20:51Okay, so we've got that.
- 20:54And then we've also got the OpenFEC API is what I'm trying to say here, which is RESTful API around all this data that we've been talking about, right?
- 21:05Tell us about this.
- 21:05Sure.
- 21:06So if anyone hasn't worked with APIs before, the API is just the source for all the campaign finance data.
- 21:12So one of my friends put it in a cute way, we drink our own champagne.
- 21:16So any of the data you see on FEC.gov is coming from the API.
- 21:21So you don't need to know how to use an API.
- 21:23You never need to touch the API.
- 21:24If you don't want to, you can go to FEC.gov and get all of the data that you want out of this.
- 21:29That's really cool.
- 21:30I've heard the term dog food, eat your own dog food.
- 21:33Drinking your own champagne sounds way better.
- 21:36It probably means the same thing, right?
- 21:37Way more pleasant, I imagine.
- 21:39Yes, absolutely.
- 21:41When we were interacting with the homepage, the all data section, that was JavaScript talking to this as well.
- 21:48Just so you're basically the first client of this API.
- 21:51Correct.
- 21:52Exactly correct.
- 21:53Okay.
- 21:53However, if the FEC.gov doesn't have the information you need or you want to build your own tools on top of the API, we do make that available to you directly.
- 22:03So you can bypass FEC.gov and go directly to the source to get the data.
- 22:07How old is this API?
- 22:08How long has it been around?
- 22:09We realized around 2014 that the legacy systems we were running were going to have a really big problem with our exponentially growing data.
- 22:17So in 2015, we partnered with 18F, which is a government organization within consulting for government by government.
- 22:25And we wanted to build an open source cloud-based application that had an API.
- 22:30So we actually launched the API before we launched FEC.gov.
- 22:34So we've been drinking our own campaigns since around 2015.
- 22:38It's been a party for six years.
- 22:40Awesome.
- 22:41So I've heard of 18F, and it sounds like these are some really tech-savvy folks that can drop in and help the other developers on other organizations or divisions in the government and say,
- 22:52look, you want to modernize what you're doing.
- 22:55Let us come spend six months or a year, and we'll help you get going and then hand it off to you.
- 22:59Yeah, I was hugely, hugely fortunate to have overlapped with 18F when I joined the project because I, again, joined the project, having done a crash course in learning Python, but not having had a lot of other skills that were needed to be successful in the project.
- 23:13So I was able to have really, really excellent mentors that helped me learn.
- 23:18In a lot of government agencies, this was our first cloud-based application.
- 23:22I think hopefully I'll get a chance to talk about cloud.gov, which is the platform that we run.
- 23:26Yeah, yeah, absolutely.
- 23:27But this is all new to us.
- 23:28And so 18F was really wonderful.
- 23:30They taught us a lot.
- 23:31They taught us how to build software in an agile way, how to practice open source, and not just share your code, but work in the open.
- 23:39So if you go to our code repositories, you can see what I'm currently working on.
- 23:44All of our issues, all of our tickets are public, and you can see the priorities and how things are going.
- 23:49And, oh, there's my change, where I was tweaking our workers for a G event.
- 23:54And actually, I'm thinking of moving to a different mechanism for our asynchronous requests.
- 23:59And you can follow along with my research.
- 24:01And if you have opinions about workers versus threads for GUnicorn, I think, I don't know how, I call it GUnicorn.
- 24:09I say GUnicorn, some people say GUnicorn.
- 24:11To me, I don't know, it's like a unicorn with a G.
- 24:14So if you have opinions on this, please chime in.
- 24:17All those issues are public.
- 24:19I've done some research on pros and cons of the different configuration.
- 24:22But, yeah, 18F kind of led the way on how to work in an agile way, in an open way.
- 24:28And we were super lucky to be able to work with it.
- 24:30Yeah, this is really neat.
- 24:31So I'm sitting here looking at github.com/fecgov slash openfec.
- 24:35And this is the GitHub repository for the API, right?
- 24:38Correct.
- 24:39And it's not some forked off, like we'll dump to it every now and then.
- 24:43Like you said, this is where you all work.
- 24:44Yes, this is where we deploy from.
- 24:45We use CircleCI.
- 24:46They have a really great open source tier.
- 24:49So when we merge the develop branch, it deploys to CloudDive the develop space.
- 24:53So this is our source of truth for the code.
- 24:56Nice.
- 24:56And it looks like you're using sort of feature branch style PR development, which feels modern
- 25:02and fresh to me.
- 25:03Another thing that's interesting is if I come down here, we've got our requirements.json here.
- 25:10And we've got Flask.
- 25:11We've got Flask RESTful and Flask SQLAlchemy.
- 25:13This looks like a fun tech stack.
- 25:15Thank you.
- 25:16Yeah, I've enjoyed it.
- 25:17I gave a talk at FlaskCon, which I think was the first time they ran it, I guess about a
- 25:21year ago, that goes into a little bit more technical detail about how we use Flask for the API.
- 25:25Yeah.
- 25:26Super interesting.
- 25:27One thing I'm noticing here, there's Flask 1, 1.1.1, which is great.
- 25:32Last week, I guess last week, maybe five days ago, two came out.
- 25:37They also have new async plans going on.
- 25:39Are you all thinking about that already or are you just still putting out features for now?
- 25:43With our data doubling every two years and we are down a couple of staff members, we're
- 25:48sort of in the hopefully hang on until next year and hopefully we'll get some more money
- 25:52plays.
- 25:53If it's not broken, we do have regular dependency checking for security issues.
- 25:58Of course, yeah.
- 25:59If there's an issue, we do update it.
- 26:02Basically, we're not in the place to take that on quite yet, but I did hear the news and
- 26:08I'm excited to see what that might help us accomplish.
- 26:11Yeah, absolutely.
- 26:12You've mentioned cloud.gov.
- 26:14I think that's a pretty interesting place.
- 26:17Let's talk about a couple of other things.
- 26:18Let's talk about this communities of practice at digital.gov.
- 26:23You talked about working out in the open.
- 26:25Let's talk about some of the things going on there that I think are pretty interesting.
- 26:29What's the story of these community of practices?
- 26:32I'm here.
- 26:32I can see that there's an AI section and there's a blockchain section and the cloud and infrastructure,
- 26:37which is getting close to cloud.gov stories and DevOps.
- 26:40What is this place?
- 26:42Yeah, so one of the things that surprised me about coming to government is how, so FEC is
- 26:46an independent regulatory agency, which means it's not part of one of the big cabinet agencies.
- 26:51And so kind of surprised me.
- 26:53We're all sort of doing similar things and we sort of struggle to talk to each other about,
- 26:58you know, what's working, what's not working.
- 26:59It's not always clear who you might talk to just at other agencies about ideas and suggestions
- 27:05they have.
- 27:06We're pretty small potatoes compared to a lot of the bigger agencies and we have a lot
- 27:09to learn from them, but I don't know how I'd feel about just sort of cold emailing someone
- 27:14I've stalked on LinkedIn or something like that.
- 27:16It can be hard to connect to other people working on very similar problems.
- 27:20Yeah, because you could hear that maybe the people in, I don't know, IRS or something,
- 27:25they're doing something cool and you would, because it's kind of related to what you're doing
- 27:28in some sense.
- 27:29It'd be neat to see how that might work for you all, but you don't know those people, right?
- 27:34Like the government is huge and it's like a hundred thousand, I'm sure more than that,
- 27:37a huge, huge company that many people have never met.
- 27:41They're not close to each other, right?
- 27:42So this is a way to set up some of those communities around ideas.
- 27:45Is that right?
- 27:46Absolutely.
- 27:46Yeah, it's really wonderful.
- 27:48And we've talked to people at the CFPB.
- 27:51They use, I know they use Wagtail and we've sort of traded ideas about what's working well
- 27:55and what's some of the challenges we're facing.
- 27:58But the communities of practice are kind of a formal way of bringing people together.
- 28:01And I've really enjoyed the DevOps community of practice.
- 28:04And they have a monthly short half hour tech talk where they invite people to talk about
- 28:09the types of things they're working on and successes and challenges.
- 28:13Yeah, super neat.
- 28:14Then another one was this digital services playbook.
- 28:18So I think the digital services is something I just learned about a little while ago, a few
- 28:23years ago, I think.
- 28:24I had, oh gosh, I'm sorry, I don't remember the guest's name, but I had one of the developers
- 28:29on from the US Digital Service, which I thought was a really interesting, just a really interesting
- 28:34organization that I hadn't heard about.
- 28:35Tell people what that is real quick.
- 28:37And then what is this digital services playbook?
- 28:39I think this seems pretty neat.
- 28:40Sure.
- 28:40So I'm not affiliated with the US Digital Service in any way.
- 28:43However, I have met people who work there and I've always been super impressed by them.
- 28:46And they have a similar mission to 18F.
- 28:49And there are people out there who have written blog posts about the difference, but they're
- 28:52through the executive office of the president.
- 28:53And they do have a similar mission of helping modernize government technologies.
- 28:57I think one of the biggest challenges in everyone I've ever spoken to who works in government is
- 29:01contracting.
- 29:02So if you were lucky enough to have staff of federal employees, you can have some more flexibility
- 29:09around how you do the work.
- 29:10But if you are, there are some advantages and disadvantages to contracting, but it can be very difficult to
- 29:15get right.
- 29:16And so one of the resources I often point my acquaintances towards that are trying to
- 29:22modernize their technology is the digital US Digital Services Playbook.
- 29:26And it goes through how to approach your modernizing your technology.
- 29:31It talks about best practices for contracting and kind of gives you a roadmap.
- 29:36And another resource I'd like to touch on in a second, there's a statistic that I think like
- 29:4080% of all custom built software projects in government fail.
- 29:45And I think that contracting is a really hard thing to get right.
- 29:48It's sort of like, I imagine outsourcing for the private sector.
- 29:51It has risks to outsource because it just has trade-offs.
- 29:55And the amount of management and oversight you might need to have for a contractor or an
- 30:01outsourced project might differ from if it's in-house.
- 30:04So this is a really great, the Digital Services Playbook is a really great resource for other
- 30:09federal employees or people working on federal projects.
- 30:12And then also just anyone looking to modernize their systems might find this is helpful as
- 30:18well.
- 30:18Yeah.
- 30:18And they've got 13.
- 30:20Apparently, they're not superstitious, which is cool.
- 30:22So they've got 13 digital service plays.
- 30:27So things like that are pretty, I guess, pretty standard, but also good, you know, understand
- 30:31what people need, make it simple and intuitive.
- 30:33But then stuff that maybe people within government don't necessarily, they wouldn't necessarily
- 30:39think about like default to open or, you know, choose a modern technology stack and things
- 30:44like that.
- 30:45You know, default to open, for example, right?
- 30:47You might think, well, this is data about people and it's super sensitive.
- 30:51That's one reason to keep it hidden.
- 30:52I mean, obviously what you're giving away is supposed to be public at FEC.
- 30:56And then another is, you know, for example, like if you share your source code, maybe people
- 31:00who want to do bad things with it will come and, you know, use that to find some way to,
- 31:05I don't know, do something that they shouldn't, right?
- 31:08We've seen a lot of security in open source as well, right?
- 31:12By having multiple eyes on it.
- 31:14Absolutely.
- 31:15And I think building in the open from the beginning is the best way to successfully
- 31:19have an open source project because retroactively open sourcing that has been built using the
- 31:25assumption that you'll have protection through obfuscation can be really risky.
- 31:29And unfortunately, if you're building a closed source system, it can make it a little easier
- 31:35to have some bad practices like hard coding credentials.
- 31:38I think there can be some misunderstandings about how open source works.
- 31:43Like no one can come in and just change the code for fec.gov.
- 31:46They need to submit a request, which is reviewed by one of our team members and gone through
- 31:51a security review as part of that process.
- 31:53So it kind of open source sort of encourages best practices because you might think that you're the strongest network security that ever exists.
- 32:02If someone could be phishing is, I think, one of the biggest weaknesses that organizations face.
- 32:06And so I think that's sometimes called zero trust.
- 32:09Yeah.
- 32:10Yeah.
- 32:10So assume they're going to get to the code either way.
- 32:12So you might as well use best practices for securing your code.
- 32:16And the best way to do that is from the very beginning, assume that you're going to have eyes on it.
- 32:22Talk Python To Me is partially supported by our training courses.
- 32:25Flask is one of, if not the most popular Python web frameworks and developers are adopting it for the smallest and many of the largest Python based websites and APIs.
- 32:34If you want to learn Flask, we built a fantastic course called Building Data-Driven Web Apps with Flask and SQLAlchemy.
- 32:41In this course, we built a PyPI.org clone from scratch using Flask and SQLAlchemy.
- 32:46You'll learn many of the major ingredients needed to build most web apps.
- 32:50If this sounds amazing, just visit talkpython.fm/Flask or email us at sales at talkpython.fm.
- 32:57Before we move off this digital services, Kim out there live stream says, David Holmes was your guest.
- 33:04Thank you, Kim, for that.
- 33:06Yes, I remember that now.
- 33:07And says, as a non-U.S. citizen, he's from South Africa, do organizations like the FEC use the U.S. digital services or is it all in-house?
- 33:17It sounds like you kind of are separate from them.
- 33:20We partnered with 18F back in 2015.
- 33:22Again, they're sort of like consulting for government by government.
- 33:2518F rolled off our project in 2018-ish.
- 33:32And we haven't partnered with the U.S. digital service.
- 33:34I think they choose their projects that can be influenced by the executive office of the president.
- 33:40So we haven't worked with them, but I've met, we do have an exchange of ideas.
- 33:44If we're lucky to go to PyCon, for example, and meet other people who work there, we can talk about what's working well.
- 33:51And so that is super valuable to be able to have that sort of relationship with them.
- 33:54Yeah, fantastic.
- 33:55One other resource that I think you were hinting at is this de-risking guide from 18F.
- 34:02Is that right?
- 34:02Yes.
- 34:03I'm a huge fan of this.
- 34:04They have a federal and non-federal version.
- 34:07So if you're a state, that's a whole nother thing in the U.S. that we have to deal with where we have the federal government and the state government.
- 34:14And just like all the federal agencies are out there replicating similar efforts, all the states are replicating similar efforts with their own budgets and their own challenges.
- 34:21And in some ways, if we're looking at things like security, we have a disadvantage because we're splitting up our resources into many slices.
- 34:30So I love that 18F also built a non-federal guide to help with the state and local governments as well.
- 34:36Yeah, I think this also applies to large organizations that have maybe been around a while.
- 34:41But here's a stat from government.
- 34:43It says only 13% of large government IT projects succeed.
- 34:48And implementing custom software projects can be extraordinarily costly and risky in a government setting.
- 34:55And here's the big thing.
- 34:56The waterfall software development remains the standard at all levels.
- 34:59So in budgeting, in management, in rollout, all those things, which is very different from here's my PR.
- 35:07Let's push that with CI to cloud.gov, right?
- 35:10Yeah, absolutely.
- 35:10I feel like someone said recently, government contracting is really designed to buy tanks.
- 35:16And building software isn't really very, doesn't have a lot in common with buying a tank.
- 35:22And so, yes, it is difficult to get right.
- 35:25And this guide has some really practical recommendations for how to manage the process.
- 35:31And one of my biggest things I'd like to highlight is the Quality Assurance Surveillance Plan, or QASP.
- 35:37That's mentioned in this guide.
- 35:38You can build it into your contract as a way to measure whether the quality of the software is acceptable.
- 35:45It can help you as the person who's managing the contract and help your contractors understand what acceptable levels of quality are.
- 35:52So, oh, it looks like the QASP is highlighted there at the top in one of the menus.
- 35:57Oh, yeah.
- 35:58There you go.
- 35:59And they have a sample QASP, which is really cool.
- 36:01And so, if you scroll down a little bit there on this page, you can see some example quality measurement ideas.
- 36:08So, using an automated tool to check for accessibility and security vulnerabilities, you should be able to deploy with a single command following OWASP best practices.
- 36:18Their tools, ZAP, can be used to check for vulnerabilities.
- 36:22Doing user research at every sprint.
- 36:24These are just really great recommendations.
- 36:25Oh, yeah.
- 36:26How neat.
- 36:27And there's a little, how do you do this measurement of what is the acceptable quality level?
- 36:32How do you measure it?
- 36:33And so on.
- 36:33This is really neat.
- 36:34I like it.
- 36:35Huge.
- 36:35I'm a huge fan.
- 36:35Yeah.
- 36:36Cool.
- 36:36Now, let me pull up one thing that I thought was pretty interesting here.
- 36:39And I'm seeing this, excuse me, I'm seeing this all over the different sites that were.
- 36:44I'm seeing it on, you know, the fec.gov and so on.
- 36:47If I click here, it says right at the top, an official website of the U.S. government.
- 36:50How do you know?
- 36:51And it says, well, it's a .gov.
- 36:53And then it talks about this little lock.
- 36:55And if I look at the lock, it says this is all done through Let's Encrypt, which Let's Encrypt is awesome.
- 37:01You know, it's a way to basically automate getting SSL certificates.
- 37:06But it feels like very modern and cool and hip.
- 37:10And to see the government rolling that out, that was kind of a surprise.
- 37:13And I feel like this ties a little bit back to our next topic, which is cloud.gov.
- 37:17Absolutely.
- 37:17Yes.
- 37:18The first thing I want to point out is the banner you mentioned at the top of the page is part of the U.S. Web Development Standards, U.S. Web Development Design System.
- 37:28It's an initiative to bring the look and feel of government websites in line with each other so it can help build trust.
- 37:35And users can be assured that they are in the right place.
- 37:38If this is the first time you've heard of it, they have some really great resources.
- 37:42U.S. W.D.S.
- 37:44And I might be getting the acronym, like what it stands for slightly wrong.
- 37:49But they have components you can use on your site.
- 37:51It's all open source.
- 37:52Web Design System.
- 37:54There you go.
- 37:55Thank you.
- 37:56And so you can see on their website, they have an official website of the U.S. government.
- 38:01Here's how you know at the top of their page, just like we do.
- 38:04They even have versioning, like version 2.11.2.
- 38:07Yeah.
- 38:07This is a really great resource as well.
- 38:09It's all open source.
- 38:10So even if you aren't in government, if you wanted to borrow any design, it's a design system.
- 38:15And people who know more about design systems would know more about what that means.
- 38:18But we do use parts of that in our site.
- 38:21But you mentioned Let's Encrypt as part of how we manage our certificates.
- 38:27FEC.gov is run on cloud.gov.
- 38:29And cloud.gov is a platform as a service that's available to government agencies.
- 38:35And so when you build a cloud-based system, you have the option of building your own cloud
- 38:40infrastructure in AWS or Azure, Google Cloud from scratch.
- 38:46Or you could use a platform as a service.
- 38:47And there are pros and cons, trade-offs of each approach.
- 38:51But we find as a small agency, cloud misconfiguration is one of the leading causes of security vulnerability.
- 38:57Like security breaches.
- 38:57Yeah.
- 38:58How often do we hear about here is a open server running in the cloud without authentication?
- 39:04Or here is 10 million records of sensitive data in a non-secured public S3 bucket because
- 39:10it was a pain to deal with security, to integrate that with the app or whatever, right?
- 39:14These are real problems.
- 39:15Absolutely.
- 39:15And the cloud itself is very secure.
- 39:18But you need to make sure you're configuring it properly, take advantage of those security
- 39:23features.
- 39:23And so that's not easy to do.
- 39:26Or I haven't found it easy to do.
- 39:28I always say like they give you enough.
- 39:30Well, I probably won't use that phrase, phraseology, but it's very powerful and difficult to get
- 39:36right.
- 39:36Yeah.
- 39:36I feel like AWS and Azure, those types of places, they're very powerful, but you go there
- 39:41and it's just, you know, deer in the headlights.
- 39:44So many choices.
- 39:45Just even at the, what area do you want to go into?
- 39:48And then you factor, well, what are the security implications of changing this switch down in
- 39:52some level?
- 39:52It's crazy.
- 39:54Yeah.
- 39:54Yeah.
- 39:54I won't even sign up for a free tier account because I'm convinced knowing me, someone's
- 39:57going to get access and mine Bitcoin.
- 39:59I'm going to have a $10,000.
- 40:00Like they make you put your credit card in there and I'm not doing that.
- 40:03So it takes a lot of expertise to build your own infrastructure in the cloud in a secure
- 40:09way.
- 40:09Our agency being smaller, we could go ahead and do that, but cloud.gov has a lot of advantages.
- 40:15And so what it does is it sits on top of AWS as a management layer.
- 40:21And so it manages the cloud security.
- 40:23It manages authentication.
- 40:25You know, who has access to what it makes it super easy to deploy, really easy to keep
- 40:30our infrastructure as code.
- 40:31You can use infrastructure as code in AWS, but I still haven't really figured out how to do
- 40:36that.
- 40:36It seems wolf again.
- 40:37So many haven't, I find it no matter how many trainings I take, I still find it difficult
- 40:42to work with.
- 40:42So cloud.gov has a lot of advantages over building your own infrastructure.
- 40:47It has fixed pricing.
- 40:49Again, like if you mess something up and are running a machine for too long and you get
- 40:53a surprise $10,000 bill, like that doesn't happen in cloud.gov because they have cost
- 40:57engineers and they have fixed pricing.
- 40:58In government, if you want to build a technical system, you have to have an, it's called an
- 41:03ATO, an authority to operate.
- 41:05And it's all this paperwork that you need to do in order to prove that your system is secure
- 41:09enough.
- 41:10By using cloud.gov, you can inherit from their ATO and kind of save yourself a lot of paperwork.
- 41:15You just put the checkbox.
- 41:17I'm using cloud.gov.
- 41:18I mean, essentially, they, I mean, you mentioned we use let's encrypt and my first reaction
- 41:23was cool.
- 41:24I guess we use let's encrypt.
- 41:26Awesome.
- 41:26Yeah.
- 41:27They manage a lot for us.
- 41:29They make it super easy to deploy.
- 41:30We have scalability through cloud.gov and we can focus more of our time and energy on
- 41:36the data and application side of development, which in and of itself is pretty time consuming
- 41:41for us.
- 41:42Yeah.
- 41:42So maybe you could talk about two things.
- 41:44Maybe you could talk about what does your deployment look like?
- 41:48I think you're using AWS at the moment.
- 41:49Is that right?
- 41:50And then you're using Postgres.
- 41:52And maybe just talk about how you're running all that, the APIs and stuff out there.
- 41:56Sure.
- 41:57So application architecture, we run our application tier on cloud.gov and our database tier is
- 42:04actually, we have our own managed AWS Aurora Postgres that we run because while cloud.gov
- 42:11does offer database services, our database is so massive that we wanted, and we have really
- 42:16experienced DBAs who wanted more granular control over the settings on the database.
- 42:21Yeah.
- 42:21You talked about how you were in a place where if you wanted to scale horizontally by adding
- 42:27more read servers, read replicas, that was a redeploy of your app and a big challenge.
- 42:32And moving to Aurora made that sort of automatic behind the scenes, right?
- 42:35Yes.
- 42:36I did.
- 42:36And I can probably put this in the show notes.
- 42:39I did a talk on how we use Aurora for database scalability.
- 42:44So AWS, RDS, Postgres, just kind of plain, I think it's like relational database service,
- 42:51basically managed database service.
- 42:53When you have read replicas, so at some points we need to run like three to four read replicas
- 42:59equivalents.
- 43:00I can go into like the difference there, but we need to run on numerous machines at the same
- 43:04time on the database side in order to meet our demand.
- 43:07I suspect that this data is very read heavy, the way it's being used.
- 43:12Well, it is very read heavy, but we also have the data is always changing.
- 43:16So we have some really big filers.
- 43:18That's true.
- 43:18If you're doing like a big campaign, people are every little contribution is streaming in,
- 43:24right?
- 43:24Yep.
- 43:24And there's some big packs that'll have like 30 million records, 40 million records we need
- 43:28to insert all in one night.
- 43:29So we do have a lot of, it's pretty insert heavy as well.
- 43:33But in the past, when you use AWS RDS, each read replica had its own connection string.
- 43:39We are using the 12 factor framework for application development, which is a few is that's published
- 43:46online and basically considered best practices for cloud based application development.
- 43:50And it recommends using your attached services connecting to them through connection strings.
- 43:56So basically, you should be able to swap out your database for one database to be able to swap out to another.
- 44:01So this is backing services number four there.
- 44:03Treat backing services as attached resources.
- 44:05So our application connects to the database through environment variable connection string.
- 44:11And when we were using plain RDS before, each replica had its own connection string.
- 44:16So in order to scale, we could have set up auto scaling on that database side, but we would have had to come up with a fairly fancy way of consuming that new connection string, adding it to the environment variable, the application, and then redeploying the application to reflect that new connection string.
- 44:33So basically, it wasn't functionally, it wasn't very feasible to us for us to have database auto scaling.
- 44:39And after doing some research, we decided to move to AWS Aurora Postgres, which has one connection string that you connect to, and it handles auto scaling on its end.
- 44:49So it doesn't call them replicas, it calls them instances, but they're functionally replicas.
- 44:55So we connect to one connection string, and it could have two instances running.
- 44:59And then if it has high CPU, it'll spin up some more machines to handle the database side.
- 45:04Oh, cool.
- 45:04So you can set up like auto scaling rules and things along those lines?
- 45:07Yes.
- 45:08Okay.
- 45:09So that's the machine under the hood for the API.
- 45:11Yeah.
- 45:12And during one of your talks, was that presentation that I linked to, was that one given to the community of practice group?
- 45:20Is that where that was?
- 45:21It is.
- 45:21Yes.
- 45:22It's all coming together, I see.
- 45:23So I'll link to that as well.
- 45:24But during that talk, you showed some neat CLIs for deployment and configuring scale and things like that.
- 45:31And it was really cool.
- 45:32You go over there and say, hey, I just want five more web run-ins.
- 45:34Boom.
- 45:35And you have them, right?
- 45:36That was quite neat how that works.
- 45:38Yeah.
- 45:38Cloud.gov is based off of Cloud Foundry, which is an open source platform management tool.
- 45:45And so it can be a little bit difficult to run this on your own, but there are managed services that run Cloud Foundry.
- 45:52And one of the big ideas, as I understand it, behind Cloud Foundry is making the developer experience really easy.
- 45:57So you can deploy with a single command, CF push.
- 46:00So we use on Cloud.gov all the Cloud Foundry commands.
- 46:04And with one command, you can scale up the number of instances you're running your application.
- 46:11And it's practically immediate.
- 46:13I mean, I would say under three seconds to quadruple your number of machines.
- 46:19Yeah, you made an interesting comparison to that about your previous model with physical servers.
- 46:23Yeah.
- 46:24So our legacy system was run on physical servers.
- 46:26And it was really difficult to predict how much we were going to need.
- 46:30Sometimes we'd overbuy.
- 46:31Sometimes we'd underbuy.
- 46:32It could take three months to get a new server set up.
- 46:35And now it takes three seconds to get a new instance running.
- 46:38In addition, when we moved to Cloud.gov, we saved about $1.2 million a year in infrastructure costs, which was really big for us as a small agency.
- 46:46That's a huge thing.
- 46:47And I believe one of the numbers you threw out there previously is $1.4 million was around the infrastructure costs before.
- 46:53So to go from $1.4 to $200,000, that's a huge difference.
- 46:58It's not like, well, it's $100 million and it went to $99 million.
- 47:01It was much, much better, right?
- 47:02Percentage-wise.
- 47:03That's a great point.
- 47:03Yeah.
- 47:04And we were able to, again, like my big, the thing I love about Cloud.gov is not taking on that risk ourselves.
- 47:10It's both the security risk and also just the risk of misconfiguring something and something going down.
- 47:16If for a small agency like ours, it's really huge to be able to depend on them for that.
- 47:19Yeah.
- 47:19And you don't have to have a team of network and DevOps engineers just to keep it going, I suspect.
- 47:26Like that's the cloud.gov side and they just deal with it.
- 47:29Yeah.
- 47:29I think when I talked to them, if we had taken all of this in-house, the amount of services that they offer, we would have needed to hire like six or seven more people.
- 47:37And we have a team of nine.
- 47:38So it was just not cost effective for us to bring that infrastructure in-house at this time.
- 47:44All right.
- 47:44So let me ask you a question.
- 47:46I've been thinking about this as we've been talking about all these things, seeing all the cool stuff that you're doing, seeing how 18F came in and helped and all of those.
- 47:53Now, I don't necessarily expect you to have an answer to this, but I just want to hear your thoughts.
- 47:57So the rollout of the Affordable Care Act and all of the drama around the websites and the challenge of scaling that and stuff, do you think it would be different?
- 48:06I think it would be smoother if like this world existed in a more polished way and we tried to roll it out again in the same way?
- 48:13I think that there are a lot of challenges in developing and delivering digital services.
- 48:19I think a lot of the expectations for digital service delivery are high.
- 48:25You know, it's like, well, Google can find this for me.
- 48:27And if you compare the operating budget between my agency and Google, it's like, yeah, Google just talked about rolling out like their own supercomputer for this other thing.
- 48:35Right.
- 48:35That's like a different set of capabilities or whatever.
- 48:39Totally.
- 48:39Totally.
- 48:39I would say to me, it all boils down to as boring as it sounds.
- 48:43It boils down to contracting.
- 48:44It really depends on how the contract is written and how it's managed.
- 48:48And I don't know very much about it, but I do know that if you don't get it right, it's very difficult to course correct.
- 48:54So absolutely, we can do better.
- 48:57But there are still a lot of challenges to preventing those sorts of issues.
- 49:01Yeah, of course.
- 49:02All right.
- 49:03Well, I think that's probably all the time we have to dive deep in this.
- 49:07But this has been a super interesting look at what's happening over there.
- 49:10And, you know, honestly, it's heartening to see how much the government is advancing and using modern tech and really putting these systems in place.
- 49:18So well done.
- 49:19Thank you so much.
- 49:20It was a pleasure to speak with you today.
- 49:21Yeah, you bet.
- 49:22Now, before you get out of here, I got the two final questions.
- 49:24So if you're going to work on the API, for example, write some Flask and Python code.
- 49:30What editor do you use?
- 49:32I use Sublime.
- 49:32And VS Code does package management better, I think.
- 49:36But I just can't make myself move.
- 49:38And notable PyPI package.
- 49:41You know, maybe something cool that you use during the project that you're like, oh, people should really know about this.
- 49:45It doesn't get enough press.
- 49:46Sure.
- 49:46I'm a maintainer for Flask SQLAlchemy.
- 49:48So it's a really great package.
- 49:50Community has been super welcoming.
- 49:52And it's the only one I've been able to really get my hands on.
- 49:55So if you're looking for a project to work on, all the Flask projects are great to attribute to.
- 50:00Oh, fantastic.
- 50:00Tell people real quick, why would you choose Flask SQLAlchemy over just SQLAlchemy?
- 50:05I think it depends on getting started.
- 50:07It's pretty friendly to get started.
- 50:09And you can maybe start with that and then reevaluate what sort of custom settings you might need.
- 50:15Yeah, cool.
- 50:16All right.
- 50:16A couple of comments from the live stream.
- 50:18Antonio says, no, don't go.
- 50:21I really enjoyed the chat.
- 50:22And then Brandon says, super interesting subject.
- 50:24Thank you.
- 50:25Yeah, thanks.
- 50:25Thanks both for being here.
- 50:26Final call to action.
- 50:27You know, people broadly or maybe even people within governments around the world who want to do better work with modern tech stack.
- 50:35And what do you tell them?
- 50:36Check out fec.gov.
- 50:37The link to our GitHub is in the footer.
- 50:38We look at all the feedback as public.
- 50:40Anything you can get out of our open source project.
- 50:43Take a look at who's running for office.
- 50:45And we just love it if you got involved in our project.
- 50:47Very cool.
- 50:47Well, like I said, well done.
- 50:49Very nice work.
- 50:50It seems like when I was working with the site, it was super snappy and beautiful and polished.
- 50:55So excellent.
- 50:56Thanks for being here, Laura.
- 50:57I'll pass that along to my team.
- 50:58Thanks so much.
- 50:59Yeah, you bet.
- 51:00Thanks.
- 51:00Okay, bye.
- 51:01This has been another episode of Talk Python To Me.
- 51:05Our guest on this episode was Laura Buford.
- 51:08And it's been brought to you by Square and us over at Talk Python Training.
- 51:11With Square, your web app can easily take payments, seamlessly accept debit and credit cards, as well as digital wallet payments.
- 51:18Get started building your own online payment form in three steps with Square's Python SDK at talkpython.fm/square.
- 51:27Want to level up your Python?
- 51:30We have one of the largest catalogs of Python video courses over at Talk Python.
- 51:33Our content ranges from true beginners to deeply advanced topics like memory and async.
- 51:39And best of all, there's not a subscription in sight.
- 51:41Check it out for yourself at training.talkpython.fm.
- 51:44Be sure to subscribe to the show, open your favorite podcast app, and search for Python.
- 51:49We should be right at the top.
- 51:50You can also find the iTunes feed at /itunes, the Google Play feed at /play, and the direct RSS feed at /rss on talkpython.fm.
- 52:00We're live streaming most of our recordings these days.
- 52:03If you want to be part of the show and have your comments featured on the air, be sure to subscribe to our YouTube channel at talkpython.fm/youtube.
- 52:11This is your host, Michael Kennedy.
- 52:13Thanks so much for listening.
- 52:14I really appreciate it.
- 52:15Now get out there and write some Python code.
- 52:17Thank you.