r/Python • • Sep 30 '26

Discussion Suggesting ppl to go from unmaintainted library X to yours in github issues?

DISCLAIMER: not mentioning any explicit name to avoid framing myself as a useless slop dev advertising his useless slop wrapper that he wrote with sloppy AI because he can in the slop-era.

---

Is this acceptable?

Asking this here because, well the libraries in question are for python for one, but most importantly our ecosystem has various cases of seeing an already established lib slowly replaced by a newcomer, the first I could think of being pandas -> polars.

My situation is that I rewrote a popular library, who is now unfortunately unmaintained, from scratch.
I ported the full test suite as well, published it on Pypi, etc...

By design, my rewrite fixed some pre-existing documented issues, that are yet to be adressed in the original repo, because altought it's creator has done a phenomenal work, it's been years since the last release or even the last answer to an issue.

I thought about answering to the issues that I know with certainty are fixed with my project, inviting to use it/take a look, but I wonder if that's not a bit hostile?

Feel like If we were at an open air market instead of github, I'll just go to my concurrent's stands when he take a break to tell his waiting customers that my products are better lmao.

There's also the fact that even if almost all tests are passing except one very niche situation, ultimately my library is <1.0 and so a stable API is not yet guaranted.

On the other hand, the unmaintained repo is, has I said, respectably popular, and seeing ppl having problems that I know I solved but not telling them feels very dumb.

and ultimately I want my library to be more known to have more potential contributors, as it's scope is much larger than this rewrite and there's a lot more I want to do and any help is always welcome

soo, what do y'all think?

EDIT:

at first referred to my project as n_lib and the old one as o_lib, which ended up just confusing readers. Changed

8 Upvotes

35 comments sorted by

16

u/Training_Advantage21 Sep 30 '26

Pandas is very much maintained. There might be reasons for use cases to move to Polars but it's not a good example for your scenario.

2

u/Beginning-Fruit-1397 Sep 30 '26

Fair, but on the other hand if we did have simlar situations from which I could learn from I wouldn't have done this post

6

u/Training_Advantage21 Sep 30 '26

4

u/Beginning-Fruit-1397 Sep 30 '26

Great! Exactly the type of things I was looking for. Ty :)

1

u/ProsodySpeaks Oct 06 '26

No ty is the replacement for mypy

Sorry couldn't resist

10

u/jayroger Sep 30 '26

Or httpx and httpx2.

31

u/zzmej1987 Sep 30 '26

If your n_lib is a drop in replacement for o_lib, just declare it as a maintained fork of o_lib. Think like what Pillow is to PIL.

12

u/wRAR_ Sep 30 '26

This won't directly help with discovery.

6

u/Beginning-Fruit-1397 Sep 30 '26

Right. Moreover, it's not really true as the scope of my project is way broader than this 

1

u/zzmej1987 Oct 01 '26

Then it would be helpful to separate o_lib of your project into a separate one to make it a true replacement for o_lib.

2

u/Beginning-Fruit-1397 Oct 01 '26

Not really possible. 

All the code is compiled in rust, and my library (pyochain) re-implement collections.abc as well , which are then used as base classes everywhere, notably for my sortedcontainers reimplementation (the unmaintained library).

Pyochain abcs in turn depends on various internal rust packages (crates) , which means that if I splitted them in different repos, I would have to maintain a rust crate + 2 python packages, and each time I want to change something on the external rust crate and run my test suites for the python packages I'd have to compile the crate, run tests, publish,  update each package, run their   tests... won't go that route 

8

u/fnord123 Oct 01 '26

IMO, their GitHub issue tracker is a no-go for advertising your fork/reimpl. Maaaaybe if it's absolutely dead and there are loads of comments on issues like "hello? Is this still maintained???"

But let's see what Pydantic did this with httpx->httpx2 as they forked and took over maintenance.

  1. Acknowledge the great work the original devs did in the readme. You're not upset at them being slow or ignoring requests. You understand that they no longer have time in their life or their priorities changed and you respect it. 

Your work should come from love and a will to pick up where they left off. Based on your concern for how to do the advertising respectfully, this seems to be where you're coming from. That's great!

2. Run it in prod yourself first. Don't advertise a fork or reimplementation expecting others to be your testers.

There's also the fact that even if almost all tests are passing except one very niche situation, ultimately my library is <1.0 and so a stable API is not yet guaranted. 

So, you ran some tests but are you using the library in anger?

3. Build a community. You're asking people to trust that you will continue to maintain this library where others dropped off. Why should they? What if you do lose interest? 

The issue you're trying to solve isn't 'solution for problem X must exist. It already exists. You're trying to do 'solution for problem X must continue to be maintained'. You might do 1 release, but do you have the next five years of releases in you?

Pydantic is a company so they pay people to build and maintain software. Try to focus on organising people around your solution instead of just trying to get users.

1

u/Beginning-Fruit-1397 Oct 01 '26

I'm sorry but I'm not sure to understand some of your observations.

As I said, it IS dead, last release, commit, reaction to an issue or PR from the owner was yearS ago.

Yea I'm not angry lmao, the only Reason for why I did it is that it ticked all my boxes: unmaintained, popular, an API that I would rather design myself, a data structure both complex and fundamental enough that a rust rewrite could be both significantly faster AND truly useful, and integrable with my pre-existing abstractions in my (much) larger project. It's why I don't frame myself as a fork or successor, because it's only a part of my library.

I don't expect anyone else to be my testers?? As i said, I ported the FULL test suite from the original repo. I did CTRL C + CTRL V on the whole test folder and made sure everything (except aforementioned niche case) passed every commit. 

Wdym by using the library in anger?

And the third point is exactly my last paragraph: I want other contributors. Idgaf about users, because I wrote this library for ME. The more brains/eyes/keyboard on this project, the more cool stuff can be done.

Unfortunately, nowadays with the slop-flood we lives in, it's the biggest challenge, much more than code itself. I can't even showcase it on this repo anymore in a dedicated post, th e monthly thread is a shadow of it,  I got like 3-4 stars in total even tough I was top comment (!).

2

u/fnord123 Oct 01 '26

Wdym by using the library in anger? 

https://en.wiktionary.org/wiki/use_in_anger

1

u/Wurstinator Oct 02 '26

Unit tests are not the same as "running in production".

5

u/nicholashairs Sep 30 '26

This post is a bit hard to read so forgive me if I've got details wrong.

It sounds like you've rewritten an existing package in rust opposed to simply forking and improving the existing library - i.e. there is potentially some merit to keeping the two as separate entities.

I would first work on attempting to contact the maintainer of the original package to check on it's status. I would first do this on the project as a new issue. Obviously you should approach it respectfully but also it's okay to mention your fork - especially in the context of trying to do what's best for the community rather than competing.

If there's no response I would find other means if contacting them, for example through email addresses associated with their git commits, LinkedIn, etc. I strongly recommend using alternate means as sometimes GitHub emails may just not be read by the maintainer as had happened with some packages I've done this to.

Here's one exampe of mine where I ended up taking over the package: https://github.com/madzak/python-json-logger/issues/187

Here's another example where I started the discussion on the fork, albeit it never got merged back in due to time: https://github.com/nhairs/parsedmarc-fork/issues/1

I don't have an example of the discussion, but it's worth noting that some libraries are quite happy to have a better successor that they link to, for example https://github.com/ultrajson/ultrajson

2

u/Beginning-Fruit-1397 Sep 30 '26

Thank you for the links and your advice! Exactly the type of real situations I wanted to take a look at.

You mostly got  It right (I edited the post to make it clearer), but to make it 100% clear, my project is pyochain (see my pinned post for details) and I basically ported sortedcontainers to rust as a part of pyochain.

Since this rewrite is just a portion of a larger scope, a merge can't and should not happen. 

I'll think about contacting the original author, I still haven't tought much about the possibility of framing myself as the "true" successor of sortedcontainers, because otherwise I might as well do the same for cytoolz/toolz. Anyway, thanks again!

2

u/nicholashairs Oct 01 '26

No problem 🙂

Here's an example of how I "cross pollinated" the two projects; note that this was a while after my first issue where I tried to find out the status of the project.

https://github.com/nhairs/python-json-logger/issues/7 https://github.com/madzak/python-json-logger/issues/169

16

u/thicket Sep 30 '26

Good on you for bringing this up— it’s a sign of a conscientious developer. Nothing really useful to add — as others mentioned, tone is really important, and this kind of substitution & self-marketing can be really annoying or really helpful with no clear line between them. 

I think the Pandas/Polars situation is informative. Polars was clearly a superior solution in the problem space, and also took years to really get buy-in. One way to signal that your project has legs is just to stick around for a long time and stay engaged with the community. 

I maintained a library for years until a guy who was frankly a much better developer came along and rewrote most of it. He was engaged, answering issues on my GH before I could get to them, and just doing a better job than I was ready to do. Ultimately I closed up shop and pointed my repo at his fork. He did some things differently than I would have, but on the whole his package is an improvement. You want to be that guy!

2

u/Beginning-Fruit-1397 Sep 30 '26

Haha yea the annoying/useful balance is what prompted me to write this at first. Thanks for sharing your experience, I'll try to be that guy :)

3

u/Careful-Ad2500 Sep 30 '26

Upvoting for disclaimer alone haha

8

u/WallyMetropolis Sep 30 '26

  let's call the Original o_lib, and my New work n_lib

This kind of thing makes a post harder to read, not easier. Just speak in words: "the unmaintained library" and "my library."

3

u/Beginning-Fruit-1397 Sep 30 '26

Yea re-reading the post I agree, editing this right now

2

u/lanzeroth Sep 30 '26

yes! Thank you!

36

u/wRAR_ Sep 30 '26

I don't have any good advice, because it's indeed at the same time a bit hostile to the original software authors, looks like an ad to potential users, and may be really useful to pottential users :-/

1

u/RevRagnarok Sep 30 '26

that he wrote with sloppy AI because he can

But... did you? Or did you write n_lib yourself?

3

u/Beginning-Fruit-1397 Sep 30 '26

Myself. I use it very eagerly for debugging, implementations drafts, learning a new dependency quickly and finding ways to optimize performance, but everything else (public API, abstractions, control flow, iterations) is me, because the code it writes absolutely disgusts me most of the time

1

u/max_465 Sep 30 '26

I've seen people solve similar problems by adding "-ng" at the end of the name to indicate "next generation".

3

u/Trang0ul Sep 30 '26

And in a few years: "-ng-ng".

1

u/Local_Transition946 Oct 04 '26

Is it easy to migrate to your version of the library?

If so, consider making an Ai agent that finds github repos that use the old library and publish a PR for them that migrates the codename to your library.

The description can contain the advertising / marketing for why it's better. Less work for the users of the old library

1

u/[deleted] Oct 01 '26

[removed] — view removed comment

1

u/Stijndcl Oct 01 '26

… did you look? The Pydantic maintainers did fork httpx because it’s unmaintained, they did call it httpx2, and it’s literally the first result on both google and github.

https://github.com/pydantic/httpx2

Bot with outdated training data?