PyAPNs2: hyper dependency is no longer maintained

As of January, hyper is no longer maintained: https://github.com/python-hyper/hyper/commit/b77e758f472f00b098481e3aa8651b0808524d84

The readme recommends switching to httpx

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 9
  • Comments: 24

Most upvoted comments

also hyper requires h2 <3.0, which causes problems using other libraries that need h2>=3.0. I’m facing an issue using hypercorn.

Any chance of a release?

Also bothered by this…

This is still an issue

FYI, found 2 forks where hyper was replaced with httpx: https://github.com/pocketlabs/PyAPNs2

https://github.com/pocketlabs/PyAPNs2/commit/f1220b8e0b87caf08f3f3d6d3ab9146e75c90543 doesn’t let PyAPNs2 pass its test suite.

https://github.com/karlwnw/PyAPNs2

https://github.com/karlwnw/PyAPNs2/tree/feature/httpx seems like MUCH more invasive and the last commit is still marked as WIP.

Don’t expect much to happen when you announce it’s still an issue on a stale issue of an unmaintained package.

You’re welcome to use my PR, which works on modern versions of Python. (I suggest forking it because I can’t guarantee my branch will live forever) https://github.com/Pr0Ger/PyAPNs2/pull/149

And we replaced PyAPNs2 with aioapns, which required a bit of extra work to make sure threads are properly initialised but works really well with python >= 3.8