Latest / Talk Python To Me / #64: Inside the Python Package Index
Transcript
- 0:00What is the most powerful part of the Python ecosystem?
- 0:02Well, the ability to say pip install magic library has to be right near the top.
- 0:07But what powers the Python package index and who are the people behind it?
- 0:11Did you know that they ship over 300 terabytes of traffic each month these days?
- 0:16Join me as we chat with Donald Stuffed to look inside Python's packaging infrastructure.
- 0:21This is Talk Python To Me, episode 64, recorded Wednesday, June 22, 2016.
- 0:26Welcome to Talk Python To Me, a weekly podcast on Python, the language, the libraries, the
- 0:56ecosystem, and the personalities.
- 0:58This is your host, Michael Kennedy.
- 1:00Follow me on Twitter where I'm @mkennedy.
- 1:02Keep up with the show and listen to past episodes at talkpython.fm.
- 1:06And follow the show on Twitter via at Talk Python.
- 1:08This episode has been brought to you by SnapCI and Rollbar.
- 1:12Hey, everyone.
- 1:14I have a really fabulous look inside the Python package index on deck for you.
- 1:18Donald and I just scratched the surface, but there are a ton of fascinating topics that
- 1:22we cover.
- 1:22Before we get to our talk with Donald, I have one announcement for you.
- 1:26I've released my second online course called Write Pythonic Code Like a Seasoned Developer.
- 1:30It's over four hours and 50 concrete examples of how you can write more Pythonic code.
- 1:35It's jam-packed with tips that you can incorporate into your projects immediately.
- 1:39Topics covered include the expansive use of dictionaries, hacking Python's memory usage
- 1:44via slots, using generators to comprehend and generate expressions, creating subsets of collections
- 1:50via slices all the way to the database, and much more.
- 1:53Several of these topics are Python 3-only features, so you'll have even more reason to adopt Python
- 1:583 for your next project.
- 1:59The response to the first two days has been super positive.
- 2:03I hope you'll take a moment to see what the course is all about at talkpython.fm/pythonic.
- 2:07Now, let's get to Donald.
- 2:09Donald, welcome to the show.
- 2:11Yes, hi.
- 2:12Hey, thanks for coming today.
- 2:13It's going to be really fun to talk about packaging and PyPI and all these sorts of things.
- 2:18But, of course, like always, before we get into the details, let's hear your story.
- 2:23How did you get started in programming in Python?
- 2:25Yeah, so programming in general.
- 2:27I was playing a video game back in high school on EverQuest, and I started to get into hacking
- 2:34that video game.
- 2:35And there was a tool called MacReQuest that I started writing add-ons for and such, and it
- 2:40sort of got me involved in programming at all.
- 2:44And then I started to get jobs in programming.
- 2:48My first job was with PHP.
- 2:51And when I was working with Drupal at the time, I kept hearing about this cool framework called
- 2:58Django, but it was written in Python.
- 2:59So I picked up a Python book and sort of taught myself Python over a week or so, so that I could
- 3:08then use Django to do websites instead of Drupal.
- 3:13So I was feeling constrained by the sort of CMS aspects of Drupal.
- 3:17Yeah, okay, that's cool.
- 3:18Drupal's PHP, right?
- 3:20Yes, Drupal's a PHP CMS that's sort of got some framework-y aspects to it, or at least it
- 3:28did back then.
- 3:29That was 2007 or so.
- 3:31I haven't really looked at it.
- 3:32I did recently.
- 3:33Yeah, it's definitely still going.
- 3:35So was it refreshing to get into Python from PHP?
- 3:39Yes, I found Python to be incredibly useful.
- 3:43concise and great to work with.
- 3:44I like the enforced white space coming from, you know, somewhere where PHP attends.
- 3:52And particularly at the time, a lot of the examples you would find online didn't always have the
- 3:57greatest formatting.
- 3:58So that sort of enforced formatting helped a lot with me reading other people's code to
- 4:05figure out what they were doing and how it worked.
- 4:08And sort of just a general grogking of the code bases to help me learn over time.
- 4:15Yeah, yeah.
- 4:15That's really cool.
- 4:16I'm sure it was.
- 4:17It was nice.
- 4:18So I think maybe a good place to start this conversation would be to talk about what you
- 4:24do for your day job.
- 4:26Yeah, so my day job is I'm employed by Hucule Packard Enterprise, full-time employee.
- 4:33And my sort of mandate is basically make Python packaging better.
- 4:38So from there, you know, I work on PyPI.
- 4:40I work on pip.
- 4:43I work on a project called Warehouse, which is essentially PyPI 2.0.
- 4:48The Warehouse theme is not really going to be exposed to end users other than if they start
- 4:53to work on the backend.
- 4:54But we call it Warehouse just to distinguish it.
- 4:57Then there's other little small tools like Twine and, you know, sort of a lot of the background
- 5:03efforts, you know, writing peps and coordinating things and whatnot sort of all falls under my
- 5:10banner of what I do for my day job.
- 5:13Yeah, so that's really awesome that HP is making that investment to more or less fund a developer
- 5:20to continuously work on Python packaging.
- 5:24Yeah, you know, you know, I think it's great.
- 5:26You know, they are a big contributor to the OpenStack community.
- 5:30And OpenStack is, I think it's not entirely written in Python now, but it's largely written
- 5:34in Python.
- 5:34So they're heavy users of, you know, Python and PyPI and pip and whatnot.
- 5:40You know, so HP felt that, you know, they're depending on these things, you know, made sense
- 5:46to invest in these things to make sure that they continue to be running and work and whatnot.
- 5:52Yeah, that's cool.
- 5:53So is this a position that you somehow managed to create or was there like a job announcement
- 6:00hiring packaging support person?
- 6:05Yeah.
- 6:05Yeah.
- 6:05So it was created for me.
- 6:07At the time there was somebody named Monty Taylor inside the HPE who sort of led the effort
- 6:15to convince the higher ups that this was something that they should do.
- 6:19And, you know, he's the one who reached out to me and offered this to me.
- 6:22You know, prior to this, I was working at Rackspace where they gave me half time.
- 6:26You know, 50% time to work on packaging, 50% time to work on their own projects.
- 6:32You know, so he sort of took that idea and just amped it up to the next level.
- 6:38And, you know, we're really pushed for getting that done in HPE and convinced me to come over.
- 6:45Yeah, that's awesome.
- 6:46Yeah.
- 6:46Yeah.
- 6:46Yeah.
- 6:46Yeah.
- 6:47I think we'll dig in a little bit more later on how companies are supporting PyPI and so on.
- 6:54But let's keep it high level for a little bit.
- 6:56So I've had a lot of interesting conversations with people basically around the pronunciation
- 7:02of P-Y-P-I.
- 7:04And I've heard a lot of people say PyPI.
- 7:09And I've heard a fair number of people say PyPI.
- 7:13What's the official way to say it?
- 7:15The official way to say it is PyPI.
- 7:18It's Python package index.
- 7:20So, you know, you put the emphasis on the PyPI.
- 7:23A lot of people do call it PyPI.
- 7:26I've heard Pippi and PeePee and all sorts of pronunciations.
- 7:31I really don't like the name.
- 7:33I think it's a confusing name that has this big sort of problem with pronunciation.
- 7:39Everyone pronounces it a little bit differently.
- 7:41And one of the most common pronunciations, PyPI,
- 7:45clashes with PyPI as P-Y-P-Y.
- 7:49The alternative Python implementation, however,
- 7:54I've sort of thus far been unsuccessful at convincing people that it's worth it to change the name
- 8:01since P-Y-P-I is so ingrained and everywhere across the ecosystem.
- 8:09Yeah, it's deeply ingrained, but it's also an insider term, right?
- 8:13Like, you can't walk up to somebody who's very barely familiar with Python and say PyPI and have them,
- 8:21oh, yeah, of course, right?
- 8:23But, you know, that's true, I think, with lots of the packaging systems.
- 8:27Like, if you said npm to somebody, they wouldn't know.
- 8:31If you said Gems, they wouldn't know.
- 8:34You know, NuGet.
- 8:35Like, there's all these packaging systems.
- 8:37They all seem to have poor names, but PyPI, okay, that's great.
- 8:41So I'm glad to hear that I've been saying it right, but I've been following Guido's lead,
- 8:47and I figured that's a pretty safe lead to follow.
- 8:49Yeah, yep.
- 8:50And, you know, PyPI is what it is, although I do slip up every once in a while and pronounce it wrong.
- 8:56Yeah.
- 8:57Okay, cool.
- 8:58So PyPI, one thing I always wondered about, maybe you can explain this for me.
- 9:03If I type pypi.python.org and hit enter, I get pypi.python.org slash pypi.
- 9:09Like, why does it appear on both ends?
- 9:11Is it just, like, really beloved?
- 9:14There's a long history there, and I'm, you know, I don't fully know it
- 9:19because a lot of it comes from before my time.
- 9:22But I believe PyPI was originally deployed under just python.org slash pypi,
- 9:29and then they eventually moved it to its own domain name.
- 9:33It's pypi.python.org, and they just kept the slash pypi because that prefix was baked into scripts,
- 9:42and it was easier to just change the domain name rather than changing the whole path.
- 9:47Oh, right.
- 9:48So it's just a compatibility thing.
- 9:50Yeah.
- 9:50And it was actually just recently we,
- 9:53and I knew that because we just recently, within the last year,
- 9:58broke compatibility for people who were still using python.org slash pypi,
- 10:03and apparently there were still people who had scripts and whatnot pointing to that
- 10:09because when we broke that, we got people yelling at us for it.
- 10:13You heard about it, huh?
- 10:14Yes.
- 10:15Well, that's the quickest, easiest way to tell if a service or a database
- 10:20or something like that is required is like,
- 10:22turn it off and see if anyone screams, right?
- 10:25Yes.
- 10:26And with PyPI, that's one of our main ways we figure out what's needed or not
- 10:33because it's never been documented well what you can depend on in PyPI,
- 10:38and sort of the entire history of PyPI has been someone depended on something weird in it,
- 10:44some sort of implementation detail, and suddenly that became the API.
- 10:47So a lot of things in PyPI are we have no idea what people are depending on,
- 10:53so we just change things and pray.
- 10:56Yeah.
- 10:56So you step very lightly making changes, I suspect.
- 11:00Yeah.
- 11:01Particularly on what we call legacy PyPI, which is what's running now
- 11:06because it's a very old code base.
- 11:09It's like 15 years old or so, and it's got no tests.
- 11:13It doesn't run locally very easily.
- 11:16Like, to actually run it locally, you have to modify the code
- 11:20and comment things out to get it to start up.
- 11:23So it's fun.
- 11:26Yeah.
- 11:26I'm sure this is really an interesting experience and long-lived Python code.
- 11:33So maybe it's a good place to start talking about the history.
- 11:36Like, PyPI is not as old as Python, right?
- 11:40And so there was a while where Python was just a thing.
- 11:43There was no packaging, right?
- 11:44And then PyPI came along.
- 11:46What's the story there?
- 11:47So, again, this predates me.
- 11:49So this is what my understanding is from what people have told me.
- 11:53So Python did originally have no packaging story.
- 11:59So people started sort of making their own story with make files.
- 12:02Make files obviously are not super repeatable.
- 12:05They had to write a whole new make file every time you switched to a different project.
- 12:09They don't run by default on Windows, you know, et cetera, et cetera.
- 12:13So someone whose name escapes me right now came up with distruteels to replace all these make files with a Python script that will run everywhere and it will sort of do all that stuff for you.
- 12:26So, which at the time, great.
- 12:29It was, you know, a really big step forward for Python and packaging in general.
- 12:35And I think roughly around that same time, maybe a little bit after, there were several sort of efforts to create sort of a CPAN, but for Python, one name that I know of was Vaults of Parnassus.
- 12:49I don't fully know all the names or what their specific implementations were.
- 12:54But then Richard Jones, I believe, came up with the idea of PyPI and sort of implemented a proof of concept of what PyPI could be.
- 13:04And they deployed it to Python.org.
- 13:06And we're still running that today.
- 13:09That proof of concept that was originally designed to be replaced quickly with the real thing.
- 13:14I'm always a little suspicious or leery of proof of concepts, showing them to people who are like, oh, this is amazing.
- 13:24Let's use this.
- 13:25We don't even have to.
- 13:25We're almost done.
- 13:26Let's go.
- 13:27Right.
- 13:27Yes.
- 13:28It can be a shifty, soft foundation, I suppose.
- 13:32Yes.
- 13:33And an important thing to realize about PyPI's code quality, it's not great.
- 13:40It was written 15, mostly 15 years ago with people hacking on it since then.
- 13:45And it predates much of what consists of the modern web stack.
- 13:51Django didn't exist.
- 13:52Pyramid didn't exist.
- 13:54Flask didn't exist.
- 13:55I think WSGI might have existed barely, or they were like contemporaries.
- 14:00So the original PyPI didn't use WSGI.
- 14:03It just sort of wrote its own Python handler.
- 14:07I think it used CGI.
- 14:10So a lot of that code is still there.
- 14:12And a lot of what we've done to try and semi-modernize it has been how do we hack in WSGI support into this thing that expects CGI?
- 14:22How do we deploy this?
- 14:24We're using a modern web server instead of this little script that just happens to sit inside the thing.
- 14:29Yeah.
- 14:30So it's got a lot of soap in it because it was big 15 years ago.
- 14:35Right.
- 14:35Of course.
- 14:36A lot of its problems really just stemmed from the fact it was written before we knew how to do good websites.
- 14:43Yeah.
- 14:44What year was that when the prototype was created?
- 14:47I believe it was 2003.
- 14:48Okay.
- 14:50So there were some examples of serious web activity, serious websites, right?
- 14:56That's .com, just post .com days.
- 14:59But still, Python was not nearly as polished around the web story there, was it?
- 15:05Yeah.
- 15:05Correct.
- 15:05Cool.
- 15:06Yeah.
- 15:06Okay.
- 15:06So that's really interesting.
- 15:07So what's the relationship with easy install these days?
- 15:11Easy install lets you install packages.
- 15:13PIP lets us install packages.
- 15:15It's all pip these days, right?
- 15:17Is there still a reason to use easy install?
- 15:19So easy install still exists.
- 15:21It does a few things that pip doesn't do.
- 15:25And pip largely doesn't do them on purpose.
- 15:28Like easy install supports multi-version installs where you have a single Python environment and you can install multiple versions of, say, requests into that single Python environment.
- 15:41And then at runtime, it will generate a sys.path that has the correct version for whatever thing you're running on that sys.path.
- 15:51PIP doesn't do that, which I believe is a good thing pip prefers to use.
- 15:57Is that because pip really assumes the presence of virtual environments and it's like, if that's what you want, just create a virtual environment, it's a different version?
- 16:04Yes.
- 16:05Correct.
- 16:05So pip says use virtual environments, create explicit environments, and install things into there.
- 16:13Easy install while it works with virtual environments because there's a way virtual environments work.
- 16:19Virtual environments, it sort of says you declare in your script or in your script wrappers, et cetera, what you depend on.
- 16:29And we will sort of create a dynamic virtual environment in memory by munging the sys.path, whereas virtual environments are you create an explicit named environment, a name by your file system path.
- 16:42And then, you know, pip will install things flat, you know, just a single version into that environment.
- 16:48That's a cool feature that you could hack it together and have multiple versions, but it seems like it's almost more trouble than it's worth.
- 16:55Yeah, so it's certainly an interesting feature.
- 16:58I don't think one is necessarily better than the other.
- 17:01They each have their trade-offs.
- 17:04We've sort of settled around using the virtual environment, a single flat install system, and I don't think there's enough of a reason to go back to the easy install sort of multi-version install system.
- 17:17Just because, you know, I think everyone's sort of figured out how to use the virtual environments.
- 17:23And, you know, I think trying to change gears now would just be a big disruption for not a whole lot of benefit.
- 17:29But if we had never done that, I think we would be in a perfectly fine place now.
- 17:34We just have a different mechanism for doing things.
- 17:37Okay, cool.
- 17:39So what's the relationship between the Python Packaging Authority and the Python Software Foundation?
- 17:46Yeah, so the PyPA is sort of not a real thing, sort of is a real thing.
- 17:52You know, it's not an official organization.
- 17:55We don't have a 5013C or whatever they're called.
- 17:59So Python Packaging Authority is like a shadow organization pulling the strings of Python packaging.
- 18:04Yeah, sort of.
- 18:05Yeah, yeah.
- 18:07You can think of it that way.
- 18:09You know, it sort of came around because pip was putting itself on GitHub and they needed an organization name.
- 18:18So they just kind of jokingly called it PyPI or PyPA.
- 18:21And I have too many things in my head.
- 18:23It's good.
- 18:23P-Y-P something.
- 18:25I confuse them.
- 18:27Yeah, so they sort of jokingly called it PyPA.
- 18:29And then as we sort of, this sort of push in the past couple of years to really standardize around these things and fix things and get moved forward, we just sort of started to take that name and say, okay, we're going to really take this name that started out as a sort of joke.
- 18:44And we're going to use this for a real thing.
- 18:46And it's sort of just an umbrella organization where it's like, okay, you're working on something that's packaging in Python.
- 18:52You can bring your project into PyPA.
- 18:55We don't have very many rules.
- 18:57I think the only rule we really have is that you have to, your project has to be governed by our code of conduct.
- 19:02And beyond that, you know, you can run your project however you want, use whatever VCS you want, et cetera, et cetera.
- 19:08But it sort of provides a central location for someone who's, okay, I want to work on packaging stuff.
- 19:13You know, go to the PyPA, you know, pages.
- 19:16You know, you can see the list of projects.
- 19:19And then since there's a lot of cross-pollination between people who work on these projects, kind of makes managing permissions and stuff a bit easier.
- 19:26But, like, funding, we're starting to try and get funding and stuff available for that.
- 19:32So that's largely going through the PSF.
- 19:34You know, so the PSF is sort of the legal entity that we hang our stuff off of.
- 19:39But the PyPA is sort of, you know, just our little unofficial organization.
- 19:43You can think of it similar to Python Dev, how Python Dev manages CPython.
- 19:48But, you know, the legal trademarks and stuff sort of hang off of the PSF.
- 19:54Right.
- 19:55Okay.
- 19:55So since the Packaging Authority is just, like, a loose group of people who work together on packaging, there's no legal component there.
- 20:05Like, for example, I made a donation to PyPI when you guys announced, like, hey, we need some supporters and whatnot.
- 20:13Small one, but still, to do that, I actually went to, through the PSF website.
- 20:17And I sort of donated it to them.
- 20:19And then they forwarded it on, right?
- 20:21So for things like that, where you need an entity, PSF is kind of there to support you.
- 20:26Yeah, exactly.
- 20:27It frees us up from having to deal with, you know, getting the board of directors and dealing with the mundane legalities.
- 20:35PSF already does that.
- 20:37And I believe they call it fiscal sponsorship or something along that lines.
- 20:41But, you know, it's basically, you know, they manage being the legal entity behind this stuff.
- 20:47And we manage actually doing the, you know, the code work and, you know, the roadmaps about how this is going to go forward and, you know, making those sort of decisions.
- 21:11SnapCI is a continuous delivery tool from ThoughtWorks that lets you reliably test and deploy your code through multi-stage pipelines in the cloud without the hassle of managing hardware.
- 21:23Automate and visualize your deployments with ease and make pushing to production an effortless item on your to-do list.
- 21:29Snap also supports Docker and M browser debugging, and they integrate with AWS and Heroku.
- 21:36Thanks, SnapCI for sponsoring this episode by trying them with no obligation for 30 days by going to snap.ci slash talkpython.
- 21:54So I kind of want to focus on three themes around PyPI.
- 21:58One is looking inside the infrastructure and the traffic and all that.
- 22:03One is about this new version you called warehouse.
- 22:06And then also, like, the funding and support and that kind of thing.
- 22:09So let's start with the traffic and infrastructure.
- 22:11You wrote a cool blog post called Powering the Python Package Index.
- 22:17In there, you really laid out a lot of the underlying technology.
- 22:20You talked about some of the bandwidth requirements.
- 22:23Like, I felt like I had bandwidth requirements until I saw what you guys are doing.
- 22:29Like, you had a comment where you said,
- 22:33We had 293 terabytes of traffic serving 3 billion requests in April, for example.
- 22:41Yes.
- 22:43Can you want to talk a little bit about that?
- 22:44I mean, that's pretty darn impressive.
- 22:45Like, you know, you've got to go talking to the video places, the Vimeos, the YouTubes, and the Netflixes to get more traffic than that or more bandwidth than that in some sense, right?
- 22:56Yeah, you know, and I mean, the vast bulk of that bandwidth is taken up by the package files themselves, although a not insignificant amount of that is taken up by API requests and stuff.
- 23:07I was actually curious.
- 23:08I looked at May's numbers, and May's numbers are 343 terabytes and, you know, 3 billion and change HTTP requests again.
- 23:20That's really amazing.
- 23:21And so it sounds like May had, I don't know, what is that, like 10% more traffic in terms of bandwidth than it did in April.
- 23:31So does that mean, how do you interpret it?
- 23:34Does that mean that we have more popularity of Python, like the popularity and usage of Python is growing?
- 23:40Or does that mean people are spinning up more little tiny VMs and pip install requirements.txt more often?
- 23:49Like, is this a use case variation or is this a adoption variation, you think, as these numbers are going up?
- 23:55Yeah, so I actually don't have a whole lot of insight into exactly what it is.
- 23:59It's something that I've tried to get some insight into, but it's kind of hard.
- 24:04I will say one thing is that as of pip 6, which was released in, I want to say, the end of 2014, I think.
- 24:13Don't quote me on that, though.
- 24:15Pip sort of aggressively caches locally.
- 24:19So you type pip install requests and you get request version 3.0 or 2.0 or whatever.
- 24:27It only downloads that file once per computer, basically.
- 24:30It uses HTTP caching.
- 24:32We have 10-year-long cache headers on those.
- 24:36So it's basically once per 10 years per file.
- 24:39It's basically once per machine, right?
- 24:43Like, probably the machine goes away before the cache does.
- 24:45Yeah, unless you blow away the cache or something along that lines.
- 24:51So we're definitely, I believe, not seeing increase in people doing pip install on their own machine multiple times.
- 25:01Or rather, I shouldn't say we're not seeing increase.
- 25:03We don't know if that's increasing or not because they download once and then we never see that download again from them.
- 25:09No matter how many times.
- 25:10Right.
- 25:10It's probably not reflected in those numbers.
- 25:12Yeah.
- 25:13Yeah.
- 25:13So this is going to be either new users or new machines, cloud machines.
- 25:19You know, I think probably more people switching to cloud-based workflows, you know, have an impact on this.
- 25:25You know, because each time you bring up a new cloud, you know, Docker containers, yes.
- 25:30Each time you bring up a new Docker container, a new cloud, you know, you start with a fresh cache that downloads again.
- 25:37I think people are doing CI more and particularly things like Travis and such.
- 25:41Unless you go out of your way to cache things between runs, Travis is going to give you a brand new cache each time.
- 25:49You know, so I think a lot of it is things like that.
- 25:51Yeah, I use SynapseEye and every time I check in something, it definitely pip installs a bunch of stuff.
- 25:57I'm not sure if it has the cache populated before that or not.
- 26:02But yeah, you're right.
- 26:03Every check-in in some sense triggers that kind of behavior.
- 26:07Yeah.
- 26:07You know, and plus I do think we are – I don't know if Python itself is growing in usage, but I think pip is particularly since there's been a lot more push from the Python doc side and things.
- 26:19Say, hey, you know, here's a thing that you can use to download other packages.
- 26:24I think particularly for Python 2.6 and 2.7, they're getting kind of long-handed too.
- 26:29And people are wanting some of the new features from Python 3 without actually switching to Python 3.
- 26:33So they're installing backports and stuff or they're reaching out for things that aren't included in the standard library as much more than they used to be.
- 26:43You know, I also think there is a – previously, PyPI wasn't very reliable.
- 26:51You know, we went down fairly regularly, sometimes even in the middle of file downloads.
- 26:55And sort of in the past three to five years, I believe it's gotten to a point where you can pip install something and be pretty confident you're going to download something and install it.
- 27:07So I think just usability overall has made people more willing to use PyPI than they were in the past.
- 27:15Yeah, and kudos to you guys for that, right?
- 27:17Yeah, although, I mean, I would admit a vast amount of that has been Fastly.
- 27:22I say Fastly is our secret scaling sauce because, you know, we really would not be able to do near the amount of traffic with the skeleton crew we have without offloading a lot of that to the CDN.
- 27:38Right.
- 27:38You guys don't have, like, a massive data center in San Antonio or something that's, like, in a bunker that you manage.
- 27:45You're pushing this to the cloud like all the modern companies, right?
- 27:48Yep, yep.
- 27:49And we actually have PyPI Legacy runs.
- 27:53We have three web nodes for all of that.
- 27:56And we have a Heroku database server.
- 27:59And, you know, we store our files in S3.
- 28:03And that's really about it for the infrastructure for PyPI itself.
- 28:08Okay, excellent.
- 28:09And can you give us a sense of what it costs to run PyPI?
- 28:13Yeah, so for us, the cost is zero.
- 28:17But besides the people's time, but, like, right, of course.
- 28:21Yeah, because we are lucky to have all these companies donate services.
- 28:28I think I clocked it at where somewhere around $35,000 a month.
- 28:32You know, some of those numbers are a little fuzzy because, like, Fastly, the billing numbers we have are for all of our use of Fastly and Python.
- 28:39Right.
- 28:40But you probably represent the vast majority of traffic.
- 28:45Yeah, well, like, in May, we said we have 340-some terabytes for PyPI.
- 28:51For Fastly in general, we had 399 terabytes.
- 28:55You know, and our Fastly bill in May was $33,000.
- 29:01You know, we have $6,000-some dollars in Rackspace for all of Python.
- 29:06And then we have, you know, DNS and such there.
- 29:10So not counting people time, you know, we're roughly $35,000, maybe a little bit more a month for just PyPI.
- 29:17Okay.
- 29:18This is not something that you could just run if you wanted to, right?
- 29:23This takes the support of the community and companies like HP that are really backing it and Fastly.
- 29:29Oh, absolutely.
- 29:30Because there's no person that's going to go, you know, I really believe in this project, so here's $35,000 a month to pay for bandwidth.
- 29:38Yeah, you know, I mean.
- 29:39I guess there could be people.
- 29:41Maybe you can find, you know, Bill Gates or someone.
- 29:44You could have been to them.
- 29:46That's almost $400,000 a year.
- 29:49That's, you know, that's more than most people make.
- 29:51But outside that, yeah.
- 29:53Let's talk about the people involved.
- 29:56So we know that HP is basically supporting you to do what needs to be done for Python packaging, mostly around PyPI, but in the general sense.
- 30:06How many people work on these projects?
- 30:09And how many people would you say are responsible for keeping pip install a thing a possibility?
- 30:16Ernest Durbin helps a lot with PyPI itself.
- 30:21He is not paid for that.
- 30:22He's completely volunteer.
- 30:24He's sort of the ops side of things.
- 30:27I do a little bit of ops.
- 30:29I'm not great at it.
- 30:30So he does a lot of the operation stuff and is super helpful with that.
- 30:35You know, Richard Jones does things on a volunteer basis also.
- 30:39He's largely stepped back lately.
- 30:41Just because his time has been taken up by other things.
- 30:44But he still comes around and helps with support requests and stuff, which I don't have the time to do.
- 30:50You know, then we start getting like setup tools, which you need for pip install to do source disks.
- 30:58You know, that's largely Jason Combs, Jericho.
- 31:03That's largely his baby now.
- 31:05You know, then you start talking about pip.
- 31:06You know, I'm there as well.
- 31:08You know, there's like a Paul Moore and Marcus is there and a few other people, you know, but you know, their time is all limited based on because they're doing it in their spare time, which I do in my spare time as well on top of the HP time.
- 31:26But most people outside of myself have a lot more limitations to the time they can spend on it just because they're completely volunteer based.
- 31:39Yeah.
- 31:39So just a handful of people full time.
- 31:43Oh, yeah.
- 31:44And everyone else is just a little here and a little there as they can.
- 31:47Yeah.
- 31:48Do you feel like PIPI is underfunded?
- 31:50Yeah.
- 31:51You know, I do believe PIPI is underfunded.
- 31:55You know, it's sort of the tragedy of the commons.
- 32:00You know, it's used by a lot of people, you know, as evidenced by our traffic numbers.
- 32:06That or someone's using it a lot.
- 32:09While we do get support from, you know, a number of companies, you know, realistically, I forget the exact number off the top of my head, but we're less than 10 companies who support us.
- 32:20And I'm pretty sure more than they use PIPI.
- 32:23They could be just installing a lot of stuff.
- 32:26Of course, I mean, everybody uses it.
- 32:29It's absolutely one of the foundational things, right?
- 32:33It is the thing that facilitates batteries included in the broad sense of Python, right?
- 32:40Yeah.
- 32:40Yeah.
- 32:41You know, I absolutely believe so.
- 32:43You know, I think, you know, it's one of the most important things, if not the most important things provided by the PSF infrastructure.
- 32:53It's debatable with, you know, you know, HG or HG instances and stuff.
- 32:57I think it's one of the most important things that, you know, the PSF infrastructure does provide.
- 33:03You know, and certainly when it goes down, people are very quick to notice that, you know, they, I get notifications through Twitter and email and IRC before our monitoring even notices it's down.
- 33:19People are telling me it's down.
- 33:20A lot of people depend on it.
- 33:22Is it stressful to you to be responsible for it?
- 33:26So there's definitely stress.
- 33:27Over the years, I've gotten better at dealing with it.
- 33:30You know, a lot of people, it's one of those things where, you know, when it's working, people don't think about it.
- 33:36And when it's not working, they're out in droves to tell you it's not working.
- 33:42You know, and I've never actually been technically on call for PyPI.
- 33:48Ernest has been, Nova Kanchowitz has been, been technically on call.
- 33:53But I say, you know, it's basically impossible for me to not be on call unless I completely unplug myself from the internet.
- 34:03You have to go into the forest and not look for sky riding airplanes.
- 34:07Yeah, because, you know, I'm so publicly known and associated with PyPI that, you know, people are reaching out to me as soon as it's down.
- 34:20And to their credit, they're mostly trying to be helpful to let me know it's down.
- 34:24But, you know, so it becomes a flood of communication anytime it suffers serious downtime.
- 34:31Now we've sort of engineered it so that pip install very, very rarely goes down.
- 34:38But uploads and stuff kind of go down more often than that.
- 34:43But that affects a much smaller percentage of people.
- 34:46So that doesn't get as bad.
- 34:48Absolutely.
- 34:49I'm really excited to tell you about a new sponsor of the show, Rollbar.
- 35:07One of the frustrating things about being a developer is dealing with errors.
- 35:11Relying on users to report errors, digging through log files, trying to debug issues, or a million alerts just flooding your inbox and ruining your day.
- 35:18With Rollbar's full stack error monitoring, you get the context, insights, and control you need to find and fix bugs faster.
- 35:25It's easy to install.
- 35:26Start tracking production errors and deployments in eight minutes or less.
- 35:30Rollbar works with all the major languages and framework, including the Python ones.
- 35:35Django, Flask, Pyramid, as well as Ruby, JavaScript, Node, iOS, and Android.
- 35:40You can integrate Rollbar into your existing workflow.
- 35:43Send error alerts to Slack or HipChat, or automatically create new issues in Jira, Pivotal Tracker, and lots more.
- 35:50We have a special offer for Talk Python listeners.
- 35:53Visit Rollbar.com slash Talk Python To Me and get the bootstrap plan for free for 90 days.
- 35:58That's 300,000 errors tracked for free.
- 36:01But hey, just between you and me, I really hope you don't need that many errors.
- 36:05Rollbar is loved by developers at awesome companies like Heroku, Twilio, Kayak, Instacart, Zendesk, Twitch, and more.
- 36:12Give them a try today.
- 36:13Go to Rollbar.com slash Talk Python To Me.
- 36:16If we had more people working on it and more people whose time was more seriously dedicated to it like yours is,
- 36:31we could probably do some amazing stuff, right?
- 36:35So there's a way to donate to this.
- 36:39You could actually have a donate.pypi.io as like the landing domain, I guess you would call it, because it redirects.
- 36:47But that allows people to donate.
- 36:50Like how if people are working for a company and they're like, yeah, our whole company does $100 million of revenue, depends upon this thing.
- 36:58And we've actually not even helped support it.
- 37:01Maybe we should.
- 37:02Like how would they get involved?
- 37:04Maybe those would be the biggest bang for the bucks if we could get some big companies to step up.
- 37:08Yeah, so obviously they can donate.
- 37:10If that's the way that they want to get involved, donations are easy.
- 37:13And there are tax write-off in the U.S.
- 37:16But if they want to donate developer time, one of the easiest things to do would be to contribute to Warehouse,
- 37:25which is on GitHub at github.com/PyPA slash Warehouse.
- 37:30That is deployed now to PyPI.io.
- 37:33That's where you're going to live in the future.
- 37:36And, you know, my big push right now is trying to get Warehouse to the point where we can say, okay, this is ready enough.
- 37:43Let's start directing people here by default.
- 37:46Because PyPI is sort of an old code base.
- 37:49It's slowly falling apart.
- 37:52Uploads, we get a sort of base 10% error rate on uploads right now.
- 37:57You know, it's just falling apart.
- 37:59It's sort of a full-time job to keep it from not falling apart, which doesn't give me any time to work on other things.
- 38:07All your fingers plugging holes in the dam rather than, like, building the dam.
- 38:11Yeah?
- 38:12Yeah.
- 38:13So I've sort of ignored some of the holes willfully to try and free up time to get Warehouse ready to launch.
- 38:20Because, you know, the idea is that hopefully Warehouse will get slotted into place and a lot of things will be better.
- 38:28I'm sure it's going to break things for a lot of people.
- 38:30But it will become more joyous to work on, and maybe you'll get more contributors using stuff that people understand, right?
- 38:37Yeah.
- 38:38Yeah.
- 38:38Oh, absolutely.
- 38:39Like, PyPI Legacy is largely two files, both over 4,000 lines long.
- 38:46And I think I'm the only person left that actually understands it.
- 38:50Richard hasn't touched it recently enough, and things have changed that he would have to get ramped back up.
- 38:57And so far, I've personally had 100% failure rate on getting new people involved in that just because they take one look at the code and then it just kind of didn't disappear.
- 39:06It's not a fun code base to work on.
- 39:09You know, it's particularly because you can't really run it locally.
- 39:13So a lot of times, changes are make a change, push it to production, maybe to test PyPI, which is sort of a staging slash sandbox instance we have, depending on what the exact problem is.
- 39:26And then just sort of pray and who the century is and start yelling at us.
- 39:29Yep.
- 39:30All right.
- 39:31So Warehouse is a huge topic that people are interested in.
- 39:35I want to get to that.
- 39:36But before we move off this topic, you also heard another blog post called A Year of PyPI Downloads.
- 39:41And there was a lot of insight that could be gleamed from those numbers.
- 39:45Can you talk about that really quick?
- 39:47Yeah.
- 39:48So sort of in general, in January of 2014, we started saving and archiving all of our download logs.
- 39:59In 2014 and again in 2015, I believe it was, I sort of pulled those all down and crunched some numbers on those and pulled out some what I thought were interesting numbers largely around, you know, what versions of Python are being used, you know, what versions of packaging tools are being used, things like that.
- 40:15And those blog posts were sort of very widely received.
- 40:20So what I've done in the mean since then is I've sort of improved our metrics stream to the point where now every single download generates a row in a BigQuery database.
- 40:35And, you know, which is got all sorts of information like, you know, what version of Python downloaded it, you know, what tool downloaded it, what country it came from, stuff like that.
- 40:45And as of, let's say, a month ago, that data is now completely public for anyone to go and query as long as they have a Google account.
- 40:52Nice.
- 40:52Yeah.
- 40:53Give me the link to where that is and I'll put it in the show notes.
- 40:56Yeah.
- 40:56So I'm not really that great at data visualization or pulling information from data.
- 41:03You know, I tried to do my best with my year of PyPI downloads posts.
- 41:09But I'm hoping that by making that completely public, A, people can do, can make data-driven decisions about what versions of Python they support.
- 41:17Because you can very easily, using an SQL-esque language, say what versions of Python are downloading X package over some period of time.
- 41:26You know, I'm hoping that people who are actually good at data visualization and pulling meaning from data can take a look at it and come up with some interesting information.
- 41:36Particularly maybe as it relates to, you know, correlating that with, you know, GitHub data or Bitbucket data or, you know, some other kind of data.
- 41:45Yeah, that sounds really cool.
- 41:47And if you give me a link to the details, I'll be sure to put it in the show notes.
- 41:51Yep, yep.
- 41:52It's not greatly documented right now.
- 41:54It's basically a post to Disutil SIG telling people about it.
- 41:59The historical data is not in there yet.
- 42:01You know, so that data starts, I want to say, March-ish, sometime late March.
- 42:07That data starts, I'm backfilling from January of 2016 right now.
- 42:13And then I have to backfill back beyond that.
- 42:17But that takes a bit more effort because the logs aren't in the correct format.
- 42:21So I have to come up with something to munch those logs into the new correct format.
- 42:27Yeah, okay.
- 42:27Well, that sounds really promising.
- 42:28And, you know, there's a lot of data scientists and data visualization professionals that listen to my show.
- 42:34And when I put data out, they seem to do amazing stuff with it in a surprisingly short amount of time.
- 42:40So maybe someone will come up with something cool for that.
- 42:43Let's talk about Warehouse because that's a really interesting project.
- 42:47And I sent some messages out on Twitter.
- 42:50I said, hey, what should I ask Donald while we're talking?
- 42:53And everybody came back with some variation of talking about Warehouse.
- 42:58So Warehouse can be found at PyPI.io.
- 43:01What is it?
- 43:02Yeah, so PyPI.io is the production-ish.
- 43:07I say ish because we're not monitoring it or anything.
- 43:11Deployment of Warehouse, which is PyPI 2.0.
- 43:15It is backed by the same PostgreSQL database, the same S3 instance, et cetera.
- 43:21So anything that changes on PyPI changes on Warehouse, and the reverse is true.
- 43:27Right.
- 43:28So they're watching the same data stores.
- 43:30It's more of the front-end and API implementation, right?
- 43:34Correct.
- 43:34So right now, the read-only portions of it, which is 90-some percent of our traffic, are pretty much done.
- 43:43There are a few.
- 43:43If you go through the UI, you'll see a few to-do stuff that we have to either finish or comment out before we make it official.
- 43:52A lot of the author UI stuff is not done yet.
- 43:56Okay.
- 43:56The client side, the read-only UI bit is really nice.
- 44:01It looks, you know, I feel like I'm going from SourceForge to GitHub equivalent of experience.
- 44:07It's much better than current story.
- 44:11So I think that's going to be delightful.
- 44:13That's cool.
- 44:14Yeah, yeah.
- 44:15And, you know, I think that was Nicole Harris who's done the design for that, which I think she's done a phenomenal job on that so far.
- 44:24You know, particularly going from what we had to what this is, you know, it really does feel like you're jumping forward an era or two, you know, as far as what modern design looks like.
- 44:37Oh, yeah, absolutely.
- 44:38No, I was just saying, you know, she's put a big focus on, you know, trying to get the usability of PyPI to be a whole lot nicer and better to use, you know, and surfacing the information people care about and, you know, hiding information that people really don't care about or maybe admitting it completely if it's, you know, just confusing information or information that maybe really needs to tend to know.
- 45:01Yeah, nice.
- 45:02So can you talk a little bit about what frameworks and internals use to create it?
- 45:07Yeah, so Warehouse is written in Pyramid.
- 45:10Now it is.
- 45:12Warehouse has got sort of a sordid history where I've gone from, I started out using just WordZig and making my own framework to then it went to Flask, then it went to Django.
- 45:24Now I've finally settled on Pyramid.
- 45:26Why do you make those changes?
- 45:28Like, what kept moving you along?
- 45:31Yeah, so one of the things I wanted to do with Warehouse was to 100% test coverage across the board.
- 45:40You know, coming from with PyPI where, you know, we had zero test coverage.
- 45:44One of the things that was very painful to me to make any change was, you know, figuring out what the impact was going to be, where I'm going to break code that I thought was unrelated but was really related.
- 45:55So I really wanted to make sure we had great test coverage.
- 45:58Unfortunately, a lot of the web frameworks out there tend to use a fair amount of globals.
- 46:05There's some argument about whether it's threat globals or technically globals or not, but I call them globals too.
- 46:10I think they're globals.
- 46:11You know, and, you know, that makes it more difficult to test things.
- 46:16So I really created my own framework on top of Workazig that was heavily influenced by Gary Bernhardt's boundaries talk where there was very few of these sort of bag of items.
- 46:32There wasn't a user class that had, well, that was a data model and it had, you know, all these sorts of things you could do to a user hanging off of it.
- 46:40So that makes it hard to test because you have to pass through a huge interface.
- 46:44It's sort of like a miniature global.
- 46:46They kind of have to pass through this huge interface and actually test things.
- 46:49You have to provide an object, implement all those things or else, you know, your tests are not actually really testing things.
- 46:56And so we didn't have a ORM, you know, it was using SQL Alchemist expression layer to some degree.
- 47:03It was also using just raw SQL in some places.
- 47:07And one of the things that we, that I discovered doing that was, A, I was reinventing a lot of things, which, while fun, wasn't necessarily the best use of my time.
- 47:17You know, two, it brought us back to the same problem we had with PyPI where other people found it hard to contribute to it because it was using something that, well, it fit my headspace quite well.
- 47:30It didn't necessarily fit other people's headspaces.
- 47:33And, you know, three.
- 47:34Right.
- 47:34Nobody had experience with it, right?
- 47:36Yeah.
- 47:37And, you know, and three, it, a lot of decisions were bottlenecked on me because it was, well, how, how do we do X thing in this completely custom framework?
- 47:47Well, nobody knows except Donald because Donald has to invent it.
- 47:50And so a lot of things were bottlenecked on me.
- 47:52So, you know, me and Richard sort of talked about it and we decided, you know, we need to move to something more standard.
- 47:58And I can't recall exactly if it was Flask or Django that came first.
- 48:02I know it was ported to Flask and I wasn't really too fond of that because one of Flask's big API things is thread locals as part of the API.
- 48:13And my experience with that is it becomes hard to then do anything in Flask without adding increasing amounts of thread locals.
- 48:23And so I kind of mixed that because I just didn't like the third locals.
- 48:26I went to Django and Django is a great code base.
- 48:30You know, I've used Django a lot.
- 48:33I just started with Django.
- 48:34I started porting it to that and I discovered that the Django ORM is not really powerful enough to handle all of the things that PyPay does in its database that it's sort of accumulated over time.
- 48:48We have, you know, we have tables with composite keys.
- 48:51We have composite foreign keys.
- 48:53We have tables without any primary keys.
- 48:55You know, we have, you know, a number of things.
- 48:58And, you know, I did get the user things ported over to Django.
- 49:02Then I just sort of gave up and said, you know, this is too much work to actually get this to slot it into the shape that Django wants it to be.
- 49:10And I said, I'm going to just have to use SQLAlchemy for this, which is another great ORM.
- 49:16But then once you sort of throw away the Django ORM, you'll lose a lot of the power of Django.
- 49:22And I also wasn't using the Django template language because prior to all of this happening, I worked on a sort of another alternative front end to PyPI called crate.io.
- 49:32Back before I was a PyPI administrator, which was written in Django.
- 49:35I used the Django template language in that.
- 49:38And that became a bottleneck because of how big some of our HTML pages were to list all the packages.
- 49:44That became a serious bottleneck.
- 49:46So then we're sitting there.
- 49:48So we use Jinja2.
- 49:50So then I'm sitting there looking, okay, we have Django.
- 49:54It's kind of hard to fit our database into Django's ORM.
- 49:58So we can't use that.
- 49:59The DTL was too slow at the time.
- 50:02I don't know if it is now to really use that.
- 50:04So we've sort of paired Django down to a glorified request router.
- 50:09And we've thrown away a lot of the power of Django.
- 50:12There's no third-party apps.
- 50:14There's no admin.
- 50:15So then I took a look at Pyramid.
- 50:17And Pyramid had a lot of the things I liked about Django.
- 50:20There was really no thread locals.
- 50:22There is a thread local, but it's optional whether you use it or not.
- 50:27And, you know, it had enough flexibility in it to sort of use whatever tools we wanted to do.
- 50:33So I could bring in SQLAlchemy and use that.
- 50:35I could bring in, you know, sort of change things around to sort of suit my purposes better than I could with Django.
- 50:43Now, the flip side of that is it doesn't do as much out of the box.
- 50:47You have to kind of configure it and make it do what you want to do.
- 50:51But, you know, given the long history of PyPI and all the sorts of little weird things that's grown over time,
- 50:57that fell a lot nicer to what we needed to do than sort of Django does.
- 51:02Because while Django is great, once you sort of get out of the Django workflow,
- 51:08you start fighting in the framework a lot more than you do with Pyramid.
- 51:12Yeah, okay.
- 51:13That kind of makes sense to me.
- 51:15The testing part with Flask, that I didn't know about.
- 51:18But I can imagine the stuff with Django.
- 51:20You know, I think you and I settled on, for very different projects,
- 51:24the same technology stack, more or less, like for all my web properties,
- 51:27I'm using SQLAlchemy and Pyramid and whatnot.
- 51:29So, yeah, very interesting.
- 51:32Let's see, we have just a few minutes left,
- 51:34and I have a couple of questions from the listeners,
- 51:37and then maybe one more thing I wanted to make sure we touch on.
- 51:41Mahmoud Hashemi, who's also been a guest on the show,
- 51:44asks if real-time download counters are coming back.
- 51:47Yeah, they are.
- 51:49So, the old metric stack sort of fell apart and died.
- 51:54because it was sort of hacked onto the side of PyPI,
- 51:56like a lot of what PyPI does has been.
- 51:58The new metric stack, which is based around BigQuery and such,
- 52:02is sort of designed to allow us to bring that back,
- 52:05as well as give us this sort of archival ability to query all sorts of things.
- 52:11I disabled them just because they were zero all the time,
- 52:14because the thing had broken, and I didn't have time to fix it.
- 52:18But we are planning on bringing those back,
- 52:21and hopefully they'll actually work this time, and it'd be nice.
- 52:26Yeah, would they reappear in the warehouse time frame,
- 52:28or would you bring them back to the legacy version?
- 52:30It'll probably be in the warehouse time frame.
- 52:33Might not be until after launch of warehouse,
- 52:36unless someone feels like coming around and figuring out how to do all that beforehand.
- 52:42I'm new to BigQuery.
- 52:44So far, I really enjoy using it, and it seems to work really great.
- 52:48But one of its constraints is that queries can take a couple seconds to a minute or two to run,
- 52:56which is fine if you're just looking at it for data archival.
- 53:00Not great to do in the middle of a request-response cycle.
- 53:04Yeah, that's for sure.
- 53:05So we need to do some work around figuring out, okay, how do we take this data that's in BigQuery
- 53:10and put it in a format that we can look at in warehouse in the request-response cycle,
- 53:18and then just take someone to sit down and figure that out.
- 53:22I just haven't had the time to do that.
- 53:23Sure.
- 53:24So final thing on warehouse.
- 53:27Nicola Kentar asks, what's the time frame for shipping that?
- 53:31So I've given a few dates before.
- 53:33We've passed them all so far.
- 53:35We're not historically been great at estimating how long until it's ready to go.
- 53:40I think we're pretty close, though.
- 53:41I've started – I just recently told people on District Till Sig to start switching their uploads to using warehouse,
- 53:49largely because we have a 10% standard failure rate on uploads to legacy.
- 53:55So far, everyone who's done that has said it's worked great.
- 53:58We just recently committed to Twine, which is a tool to replace setup.py upload.
- 54:04We switched in the master branch to default to using warehouse that's not been released yet.
- 54:10But I'm hoping that that will be released in the next couple weeks.
- 54:14And if that works out great, hopefully we will get Cpythron itself switched to the warehouse for uploads.
- 54:21And, you know, then that will hopefully propagate out and people will use that and that will solve a big problem.
- 54:28As far as switching the actual, you know, like redirecting the old domain, I think it's soon.
- 54:34I don't have a good target for exactly when.
- 54:38But hopefully – I'm really, really hoping it'll be in 2016 because I'm tired of the old code base.
- 54:47I want it to die a thousand deaths.
- 54:51Yeah, I can imagine.
- 54:53That sounds like a really cool new version.
- 54:56And it sounds like it's going to be great for everybody when it's working and it's the default.
- 55:01Certainly, my playing around with it, you know, it seems like a nice place to be.
- 55:05So I have a bunch of other questions I'd love to talk to you about.
- 55:09But we're just running out of time.
- 55:11So maybe we'll have to leave it there.
- 55:14Maybe when you guys do ship it, when it flips, maybe we can come back and do some kind of celebratory show.
- 55:20Sure.
- 55:20To celebrate the actual flipping of the DNS or the redirect.
- 55:24Cool.
- 55:25So a couple of questions I always ask people before they end at the end of the show is – and I think this question is particularly interesting to you given your relationship.
- 55:35But I ask this to all my guests is, you know, there are over 80,000 packages on PyPI these days.
- 55:41And like we talked about, there's so many amazing little packages people can grab and make their programs awesome.
- 55:49Like what one do you think is amazing you like to call attention to that's maybe not requests that everybody knows?
- 55:54You know, something like that.
- 55:55Yeah.
- 55:56I would have to say Bpython.
- 55:59It's sort of an alternative REPL for Python.
- 56:04It's got the, you know, syntax highlighting.
- 56:06You know, it's got autocomplete as you type things out.
- 56:11It really works well and I install it on all my virtual M's because it just works a lot nicer than the building one, I think.
- 56:19I use it a lot.
- 56:20Okay.
- 56:21That's awesome.
- 56:21And when you write Python code, what editor do you use?
- 56:25So lately I've been using Atom.
- 56:27I've been trying it out for the past two or three months.
- 56:30So far I've liked it.
- 56:31You know, previously I was using Sublime Text 3.
- 56:34Lately it's been Atom.
- 56:36Okay, cool.
- 56:37Yeah.
- 56:37It seems like Sublime and Atom are working at the same level.
- 56:41They have kind of a similar, they appeal to a similar group of people.
- 56:45That's cool.
- 56:46All right.
- 56:47Any final call to action while you've got the mic?
- 56:50Yeah, you know, I just, you know, I would love it if anyone who uses PyPI could come and, you know, contribute to that or to pip or, you know, talk to your companies, see about contributing to developer resources or even just some money.
- 57:03Anything helps.
- 57:04And, you know, hopefully we can keep moving things forward and everyone will be happy and stop yelling at me when things go down.
- 57:12That would be amazing.
- 57:14I just want to second that as well.
- 57:15Like, try to convince your companies, if they depend heavily on Python, to contribute just a little bit.
- 57:22Because imagine a world where pip install basically didn't work.
- 57:26You had to go piece that all back together.
- 57:28That's something we don't want to see happen.
- 57:31And it would be really great if we could make it a much more stable, supported, active thing instead of putting all the weight on you, Donald.
- 57:37And the few other guys we mentioned, right?
- 57:40Yep.
- 57:40And remember, donations are tax deductible in the U.S.
- 57:45Awesome.
- 57:46So there's just so many more things we could talk about, but we're going to have to leave it here just for the sake of time.
- 57:51So, Donald, thanks for being on the show.
- 57:53It was great to talk to you.
- 57:53Yep.
- 57:54Thanks for having me.
- 57:54Yeah.
- 57:55Bye-bye.
- 57:56This has been another episode of Talk Python To Me.
- 57:59Today's guest was Donald Stuffed, and this episode has been sponsored by SnapCI and Rollbar.
- 58:04Thank you both for supporting the show.
- 58:06SnapCI is modern, continuous integration and delivery.
- 58:09Build, test, and deploy your code directly from GitHub, all in your browser with debugging, Docker, and parallels included.
- 58:15Try them for free at snap.ci slash talkpython.
- 58:19Rollbar takes the pain out of errors.
- 58:21They give you the context and insight you need to quickly locate errors that might have otherwise gone unnoticed, until your users complain to you, of course.
- 58:28As Talk Python To Me listeners, you can track a ridiculous number of errors for free.
- 58:32Just go to rollbar.com slash talkpython to me to get started.
- 58:37Are you or a colleague trying to learn Python?
- 58:39Have you tried books and videos that left you bored by just covering topics point by point?
- 58:43Well, check out my online course, Python Jumpstart by Building 10 Apps, at talkpython.fm/course, to experience a more engaging way to learn Python.
- 58:51You can find the links from this episode at talkpython.fm/episodes slash show slash 64.
- 58:57Be sure to subscribe to the show.
- 59:00Open your favorite podcatcher and search for Python.
- 59:02We should be right at the top.
- 59:04You can also find the iTunes feed at /itunes, Google Play feed at /play, and direct RSS feed at /rss on talkpython.fm.
- 59:12Our theme music is Developers, Developers, Developers by Corey Smith, who goes by Smix.
- 59:17You can hear the entire song at talkpython.fm/music.
- 59:21This is your host, Michael Kennedy.
- 59:23Thanks so much for listening.
- 59:24I really appreciate it.
- 59:25Smix, let's get out of here.
- 59:28Stating with my voice, there's no norm that I can feel within.
- 59:31Haven't been sleeping.
- 59:33I've been using lots of rest.
- 59:34I'll pass the mic back to who rocked it best.
- 59:37I'll pass the mic back to who rocked it best.
- 59:41I'll pass the mic back to who rocked it best.
- 59:43I'll pass the mic back to who rocked it best.
- 59:45I'll pass the mic back to who rocked it best.
- 59:46I'll pass the mic back to who rocked it best.
- 59:49I'll pass the mic back to who rocked it best.
- 59:49I'll pass the mic back to who rocked it best.
- 59:49Thank you.