Comments (10)
Hi @thedrow - I've taken a look and I don't think there's too much work involved.
However we're are currently discussing internally whether we want to invest further in the C-binding-based project, or whether we want to remove the C layer and replace with a pure-python based implementation (prototype currently ongoing in the pyproto branch).
If we opt for the latter - we could build in AnyIO support from the ground-up.
We are also cautious about taking a direct dependency on the lib - so we we're working through what the implementation look like if it were both fully-compatible with AnyIO as well as standalone.
Will keep this thread updated :)
from azure-uamqp-python.
Thanks @thedrow - yes it is likely we will refactor this imminently.
We're already seeing warnings about the passing around of loop
, so I would like to get that cleaned up - although we may not get to it within a given timeframe.
I will do my best to scope out the needed work within the next few days.
from azure-uamqp-python.
Hi @JonasKs!
We are currently rewriting this library in pure Python, with the first preview targeted for early 2022.
Development is progressing in this branch: https://github.com/Azure/azure-uamqp-python/tree/pyproto
Given that we are currently rebuilding from scratch - we will not be making these changes to the C-based implementation of uamqp.
So then the question becomes, will the pure Python version of the library use AnyIO. The first preview will not unfortunately - we wanted to focus our efforts on correct end-to-end implementation of the protocol. In subsequent releases we plan to drop the hard dependency on AsyncIO to allow more flexibility here.
My earlier tests with AnyIO (albeit 2 years ago now) introduced a significant perf regression that prevented us from quickly making the shift earlier and needed deeper investigation.
from azure-uamqp-python.
Awesome! Thanks for the quick reply. Good luck with the release 🚀
from azure-uamqp-python.
I'm not going to work on this until we have a consensus on what needs to be done.
Please address this issue as quickly as possible. Thanks :).
from azure-uamqp-python.
Thanks @thedrow!
We wanted to make these changes about a year ago, but at the time it wasn't easy because we were using some very asyncio-specific features like run_in_executor for which we needed to pass through the event loop.
However I think our dependency on the asyncio loop has now been refactored out, in which case it would be awesome to make this change as you've proposed.
Though I know we're using asyncio.sleep
- is trio compatible with that?
from azure-uamqp-python.
Of course it does. Trio also supports running tasks in threads.
AnyIO abstracts sleep
as well as most other mechanisms.
Is there any chance you'll refactor this on your own?
If not, where are the tests for the asynchronous code?
from azure-uamqp-python.
@annatisch Any updates?
from azure-uamqp-python.
@annatisch Pinging you once more, with feeling ;)
from azure-uamqp-python.
Hi @annatisch, did you land on anything? 😊
from azure-uamqp-python.
Related Issues (20)
- This repo is missing important files HOT 1
- Python 3.11 issues for uaqmp HOT 8
- 1.6.0 tag missing in git repository HOT 2
- Update Ubuntu VM to 20.04
- Disable pipeline in Github Actions
- six usage is redundant HOT 2
- Build arm64 wheels HOT 1
- LinkDetach Idle timeout after 10 minutes is printed as log warning HOT 1
- Amqp over websocket is not working and leeds to a connection error HOT 2
- Add PyPy support HOT 5
- uamqp 1.6.4 on PyPi, but not in a GitHub release HOT 2
- Version tags on Github are broken HOT 5
- Provide Python 3.12 wheels HOT 2
- Can't build on Mac OS error: command '/usr/bin/clang' failed with exit code 1 HOT 7
- Vulnerable to CVE-2024-21646? HOT 4
- Python Based AQMP Library & uAMQP Repo Status HOT 2
- Fails to build with Python 3.12
- Vulnerable to CVE-2024-25110? HOT 5
- [1.6.9] Failed building wheel for uamqp HOT 9
- Backport CVE-2024-29195 fix here as well?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-uamqp-python.