Inside PyPI: Maria Ashna on Supporting Python's Package Index
Mia Bajić talks with Maria Ashna about supporting the Python Package Index (PyPI).
Maria Ashna is the PyPI support specialist at the Python Software Foundation and founder of Magic Lightbulb, a tech and product consulting firm. PyPI serves nearly a million users and is run by a team of four. They discuss her day-to-day work, clearing a backlog of more than 500 support tickets delayed by over a year, PEP 541, what happens when a package maintainer passes away, mandatory two-factor authentication, and PyPI Organizations.
About the guest
Maria Ashna
PyPI support specialist at the Python Software Foundation and founder of Magic Lightbulb, a tech and product consulting firm.
Chapters
- 0:00 Episode highlights
- 0:45 Introduction to Maria Ashna
- 1:11 What does a PyPI support specialist actually do?
- 2:07 The history of PyPI — born in 2003, formerly "the cheese shop"
- 2:47 How many people work on PyPI?
- 3:27 Most common support issues: account recovery and 2FA
- 3:48 2FA is now 100% mandatory on PyPI
- 4:10 Clearing a 500+ ticket backlog delayed by over a year
- 6:14 What is PEP 541?
- 7:01 What happens when users don't respond?
- 8:07 The edge case nobody thinks about: users who have passed away
- 8:30 How to open a ticket with the PyPI team
- 10:43 PyPI Organizations: what are they and who are they for?
- 13:17 Is PyPI going commercial? (No)
- 15:01 Nearly 1 million users, team of 4
- 15:38 How do you actually pronounce PyPI?
- 16:13 Where to find Maria online
Links & Resources
Full Transcript
So, hence the where the term wheel file came from. Uh the whole cheese shop thing came from the Monty Python sketch. Uh and Python Package Index was created
out of a need users, you know, there's a use case where of users have sadly passed away, but there are multiple people who probably want to, you know, maintain the project or replace the
project with something. So, those things uh take different kinds of courses of Wow. Yeah, yeah. I believe we are um yeah, I the last time I checked the ticker is around 945,000,
you know, plus or minus a couple hundred users. So, I'm pretty sure we'll be hitting 1 million users. >> Hi everyone. Have you ever wondered what does a PyPI specialist do?
Recently, I had a chance to talk to Maria Ashna. Maria is the PyPI support specialist at the Python Software Prior to PSF, she has worked at the Brain and Creativity Institute at the
USC working with the neuro science of creativity. Maria is also the founder of the Magic Light Bulb Attack and Product Consulting Firm. >> What does a PyPI support specialist do?
>> Oh, great question. So, uh a PyPI support specialist does a lot of different things. Uh but as I've done my role for a year now, uh I realized that it's not just
support in, quote unquote, what people think as tech support. Uh it's a lot more than that. If you uh create a Venn diagram of my role, uh a PyPI support specialist entails uh working with dev.
So, I would even argue that it's more dev rel advocate, dev rel relations. If you look at the other side of the Venn diagram of my role, uh you can see it's also uh you know,
what kind of features can we offer, what kind of other services can be offered our users through PyPI. So, I would even say it entails a bit of technical product. So, uh a whole gamut of things.
>> And can you tell us something about the history of PyPI and what is PyPI in >> So, PyPI stands for the Python Package Index and it was formerly known as the Cheese Shop. So, hence where the term
wheel file came from. Uh, the whole Cheese Shop thing came from the Monty Python sketch. Uh, and Python Package Index was created out of a need to better manage and
distribute Python packages. So, it was officially born in 2003 and I believe the first packages were hosted in 2005. So, PyPI has been around for almost 20 years.
>> And how many people do work on PyPI? Are you the only person employed to work on it or are there more people in your >> Uh, so prior to me, we had lots of generous volunteers
dedicating their time and expertise. Uh, but right now I'm part of the Python Software Foundation. So, I am a part of the PyPI support team along with Mike Fiedler who is a PyPI support
engineer and we also have our infra folks supporting PyPI on the infra side. Uh, side. Uh, E Durban, director of infrastructure and Jacob Coffee, infrastructure engineer. Yeah. So, it's
four of us. >> What are some most common issues that you're dealing with? >> So, uh, when I came on, we had a huge huge backlog of account recovery issues
which entailed, you know, people not signing up for 2FA or people losing access to the recovery codes or 2FA. >> is not mandatory, right? >> 2FA is now 100% mandatory.
Uh, so if you're a PyPI a and you've not signed up for Twilio yet, please do. Uh we also had a huge backlog of PEP 541 So, when I talk about backlog, the backlog was delayed account recovery
specifically by 5 months and PEP 541 requests by a year and 4 months. But, I'm happy to say that as of now, well, with the exception of this week since I'm at EuroPython, uh the backlog for
both account recovery and PEP 541 requests are current with an average triage time for account recovery taking between 1 and 1/2 to 2 days versus PEP 541 requests taking an average of 1 week
versus what it was before, which was a year and 4 months. >> Yeah. And how many tickets do you have in your backlog just to have some sort of idea?
>> When you said that it was delayed, how much of a work do you actually have? >> Oh, that's a great question. Uh if I have to go back and look at my my GitHub history,
uh I would say over 500 plus that I probably probably probably close. It's probably even bigger than that, but just to just to be on the conservative side, yeah.
>> And are those some very easy tasks that you can resolve immediately on your own or does it require lots of coordination, for example, with other teams or other team members?
>> Uh that's a great question. It actually depends on a lot of variables. It depends on, you know, how fast the user gets back to us because uh we do have a set of processes, which I'm in the
process of documenting and creating a uh to share with our users to for so that they know exactly what happens when they put in an issue, a ticket. Uh so, it really does depend on the user. If a
user gets back to us with the information we requested from them, uh you know, closing the issue is fast versus if the user has any other kind of um issues or lack of information.
Say we require our users to have a valid public repo of their project. So lots of times users may not have that for whatever reason. So those issues take a little bit more time in terms of account
For PEP 541 the process takes a little bit longer because you know, I see you to summarize what this PEP 541 is. Yeah, sure. So a very version of a PEP 541 is say you have a
project called snake rabbit and you created it. You had lots of hopes and dreams for it, but then you know life happened and then you kind of stepped away and then say I come in and
I really want to name my project snake rabbit, but you already own that space. You already own the name and the project. So again, depending on the variable if I want to continue to
maintain your project there's a different process versus if I want to completely replace your project, there's somewhat similar but also different process. So again, it's a nutshell a
TLDR version of what a PEP 541 request looks like. >> And what if you ask user for additional information but you're unable to reach out to them for any reason? What
happens? Do you just automatically close the issue after some time or what are the processes? >> I think that's also very context and issue dependent.
I make sure to over communicate with our users to make sure that no matter where in the world they are, they're hearing from us you know, we completely close the issue
due to you know, non response or things like that. Account recovery, it's a little easier to do because you know, if a user's no longer interested in getting their account back for whatever reason,
okay, they can always open a new ticket. For PEP 541 requests is a little bit more complicated because the timeline as stated in the PEP itself and listeners or viewers to this can
Google PEP 541 and the PEP will come up for some more detailed reading, but it it really depends on the context of the project and the communication because there are times where
you know, users you know, there's a use case where users have sadly passed away. But there multiple people who probably want to you know, maintain the project or replace the project with something.
So those things take different kinds of courses of processes and time then say two people who are amicable about oh, you can totally take over my project. So it's
really context dependent. >> Right. And you mentioned opening a ticket. How do you communicate with your users? Do you have a GitHub repository where they create a ticket or do you
have any sort of portal for users? >> We we have our own GitHub issue tracker and for confidential stuff, we also after say user opens a GitHub ticket for account
recovery or PEP 541 for any kind of sensitive information such as email or any other thing, we then our process includes you know, using our own in-house email
kind of internal email system that users can email us with more information and the process goes from there. >> And do you have any self-service there where users for example, they have any
issues that where they can go through some workflow on their own without having to communicate with you? >> I think it depends if they already say for example, they have
to a face set up, their account is you know, you know, they still have the recovery codes but they just need a password reset. I think that is pretty self-serving, but if for whatever
reason, you know, they did not sign up for 2FA, then our systems automatically unverified their email. And if your email is unverified, then you can't really do a self-serving password reset.
So, just as an example. So, those are some things that then a human being has to come in and do all the checks and make sure, you know, help them out. Yeah.
>> And you mentioned that most issues that now you're dealing with are related to account recovery and to an 2FA and PEP 501. 501. 501. [laughter] Are there any other issues that you're
also dealing with or are there any other new PEPs or new changes where you expect lots of issues incoming in the following weeks or months? >> Oh, that's a good question. I think
support request that I've been tackling are file and project limit requests. We get requests to increase the limit that folks can upload their files or projects. Regarding future
PEPs, I'm not aware of anything new that is coming up that might affect, but yeah, so I would say for now, I don't think so. >> One of new features is PyPI
What are they and how do they work? >> Yes, so PyPI orgs was actually introduced in 2023, but it went in a bit of a hibernation. But now it's back up again and it was
created to help larger communities or larger companies with big projects with multiple team members manage roles and manage projects better. we're looking into increasing some
features for people who are signed up with PyPI orgs because we want to know from the community what else can we do to make PyPI orgs exciting because right now the the big
feature is, you know, if you're part of a big community and you have several people who need access to the same project, you don't have to individually worry about, you know, somebody leaving,
you know, uh, the project or package and and everybody scrambling to get access to it. Now, it's you know, if you're part of PyPI orgs community or company, uh, you know, it's it's seamless in
terms of role and project management. >> Right. So, that means that you have an organization inside that organization, you have some users or some groups and admins and they can manage access
and everything on their own without having to contact you. >> Uh, I mean, yes, unless they have a >> And what are some existing features there except of just having this
organization? Are there any more features there? >> So, I'm glad you asked. So, I'm in the process of doing an outreach, a PyPI org outreach, and I want to hear from the
uh, what they would like to see uh, PyPI orgs offering because as you mentioned, that is kind of the only big feature we have right now, but I think PyPI orgs can be so much more.
Uh, and I don't want to uh, do any kind of leading questions or bias our users into what kind of features we can or cannot offer. So, that's why I'm not really going to
mention some things that we may offer or may not offer. Uh, that's why we're doing this outreach to make sure we want to hear from our users first and uh, the bigger buy-in we get, we see from the
data, oh, our users say, uh, want a bigger limit, uh, bigger increase in file limits or project size, just an example. Then, we can um, offer something there or users want some other
kind of features. So, we want to just get buy-in from the community before announcing or shipping out features. >> And is it meant to be used only by commercial entities, nonprofits?
>> No, so, um, I know when PyPI orgs, uh, came back on, there's some tiny chatter on discuss that, you know, oh, is uh pip it works going commercial? Blah blah blah. But no, you know, we're obviously
open source and our community orgs, uh I believe last time I checked we have over 2,000 community orgs. Community orgs, it's all way it's it's free. Uh we do have some company orgs and they pay a
tiny tiny tiny small fee uh for the service. Um you know, because it's open source and the resources that help run PyPI, um a lot of it comes from the generosity of sponsors. Uh so, we would
like to be at a place where we can still uh make sure PyPI is self-servicing and and continues to uh exist and help users. And uh we want to make sure the reason we have a
company specific org because companies, compared to say community orgs, they have a lot of funding and you know, uh if they yet they get the same kind of benefits as communities do and if they
have uh you know, more needs, I think it's fair for them to kind of chip in. It's it's really pennies, in my opinion, um for companies to contribute. So, uh but no,
the rumors about commercialization are just that, rumors and false. So, yeah. >> Yes, PyPI is a very important and big project and it's important to think about the sustain- sustainability of it.
How to make sure that it's still up and running because it's serving so many users across the globe. >> We are actually close to a million users. Wow. Yeah, yeah. I believe we are
uh yeah, I the last time I checked the ticker is around 945,000 you know, plus or minus couple hundred users. So, I'm pretty sure we'll be hitting 1 million users very soon.
>> maintained by a very small team of a few people who [laughter] are influenced. >> Exactly. And passionate about making sure that PyPI continues to exist and serve our community.
>> I wonder how often it happens that people makes PyPI, PyPA, and bye-bye. >> Oh my goodness. I mean uh during the talk that I gave, yeah, a lot of people, you know, don't even sadly still
pronounce PyPI correctly. Uh and the correct pronunciation, by the way, it's pi emoji, p emoji, and i emoji. Uh I believe we have it somewhere on our website. Uh so, yeah, PyPI obviously is
the Python Package Index, and PyPA, I believe, is the Python Packaging Authority, completely different thing, and I forget what PyPy is. So. >> It's a very different Python.
>> And if people would like to learn more or uh to communicate with you, do you have any public documentation? >> Yes, I'm glad you asked. So, uh people can always go on pypi.org to just learn
about everything about PyPI. Uh and uh if they want to uh know something about me or ask questions about PyPI directly, they can email me at maria@python.org.
Um I'm also at despy-brain at GitHub. Um uh something that I've been working on that I think our users will be excited is we did not previously have any kind of documentation or clear uh public
processes on what happens when a user submits a ticket for account recovery or PEP 541. So, I'm in the process of creating uh workflow and documentation that our users can see. Because I
believe in transparency in an open source, it's important to be transparent and let users know what we're up to. >> So, they know what to expect. >> Exactly. Yeah.
>> Thank you so much for coming. >> Yeah, thank you for having me.
Behind the Commit is a podcast hosted by Mia Bajić. All episodes.