I’m the author of sqlparse, which Django has been using for many years.
Today I’ve released version 0.6.1, and that will be the last release. There won’t be any further updates, including security fixes.
First things first: The packages will stay on PyPI, and the GitHub repository will remain available. There are no plans to transfer ownership or publishing rights, mainly because of supply chain security concerns. If so, I’d let you know before.
Django is a project I care about. So I thought I should mention it here as well. And I’d be happy to figure out a way forward. I can help review how Django currently uses sqlparse, look into alternatives, or contribute to a replacement.
Thanks for your post, and thank you for all your efforts over the years. sqlparse has been rock solid.
The @steering_council discussed this today (your post was timely for the meeting :). Since you’ve just done a release, we think Django is fine for the upcoming Django 6.2 cycle, and that gives a good window to address what we’ll do longer term before Django 2028, due Jan 2028.
That sounds amazing. Above and beyond the call of duty! We didn’t have an immediate let’s do that, but having your perspective available will be of great value.
Some half-ideas that came up were taking the project up, or making a fork, or whether there’s a smaller rewrite available, just for the bits we use. A Rust crate was mentioned, that maybe we can lean on, … — etc.
The usages for sqlparse are limited in Django: in RunSQL migrations, in inspectdb, and for outputting SQL in the test runner. None of these are what we might classify as plausible production attack vectors, so one thought we had on any continuation or replacement is to clearly state a reduced security boundary, explicitly rejecting usage in more risky cases. As you state in the discussion you linked: it was never the intent to safely handle arbitrary untrusted input.
Early days, but again we have time, and your stewardship is to thank for that. Enjoy stepping back!
Good to hear that there’s no immediate pressure, and it’s good to hear that we’re on the same page about the security boundaries and intended use cases.
And of course, my offer to help stands. I’d be happy to contribute whatever direction the discussion takes.