Federico Fissore · @ffissore
55 followers · 104 posts · Server hachyderm.io

Is pypi.org/project/uvloop still faster than the built-in ?

There were lots of speed improvements in latest python: did they affect the event loop?

#python #asyncio #event #loop

Last updated 2 years ago

Great overview of frameworks. I still like the framework as works with minimal code changes and no need for additional libs (just run 'apt search python3-aio' to see what I mean). The monkey patching still feels like magic fairy dust to me.

bitecode.dev/p/asyncio-twisted

#python #async #Gevent #asyncio

Last updated 2 years ago

Luciano Ramalho · @ramgarlic
258 followers · 162 posts · Server fosstodon.org

@pamelafox I wrote "coroutine" 469 times in Fluent Python Second Edition.

The main chapter about asynchronous programming is framework-agnostic.

The examples use , , and , to show that `async/await` are not tied to a specific runtime event loop or library.

oreilly.com/library/view/fluen

#asyncio #fastapi #curio

Last updated 2 years ago

Peng Qian · @qtalen
2 followers · 3 posts · Server me.dm

๐Ÿš€ Supercharge your projects with Aiomultiprocess! Easily integrate & with this powerful library. Learn how through a real-world web scraping example. ๐Ÿ”ฅ

๐Ÿ“– Read more:
qtalen.medium.com/aiomultiproc

#python #multiprocessing #asyncio #aiomultiprocess #webdevelopment #webdev #programming #coding

Last updated 2 years ago

gram · @orsinium
1 followers · 15 posts · Server fosstodon.org

Some preliminary results of making 1k TCP requests (connect, send 1 kB, receive 1 kB back) on Linux and Python 3.10.6 using thread pool, process pool, asyncio, and uvloop. No CPU-bound work, the server delay is 20 ms.

The conclusion so far is that threads and processes are faster in this specific scenario. More graphs and numbers to come, stay tuned.

#python #linux #asyncio

Last updated 2 years ago

> My opinion is that asyncio does not meet any of these criteria.

The ever awesome Charles Leifer, offering some doubts on Python's choice of cooperative multitasking with asyncio.

Food for thought ๐Ÿฅช

charlesleifer.com/blog/asyncio

#python #asyncio

Last updated 2 years ago

Peng Qian · @qtalen
2 followers · 2 posts · Server me.dm

๐Ÿ Just published an article on asyncio.Queue & asyncio.PriorityQueue best practices! Explore producer-consumer patterns with real-world examples. Check it out on ๐Ÿ‘‰ towardsdatascience.com/unleash

#python #asyncio #datascience #programming #coding

Last updated 2 years ago

Harshad Sharma · @harshad
1204 followers · 6175 posts · Server mastodon.sharma.io

Fixed the slowness by borrowing from Curio's implementation.

Python Asyncgnostic is a real library now!

Source: github.com/hiway/asyncgnostic

PyPI: pypi.org/project/asyncgnostic/

Curio: github.com/dabeaz/curio

#python #asyncio

Last updated 2 years ago

Paolo Melchiorre #PyConDE 2023 · @paulox
939 followers · 1293 posts · Server fosstodon.org

ลukasz Langa, the CPython Developer in Residence, is speaking about "Working Around the GIL with asyncio" at PyCon US 2023 in Salt Lake City ๐Ÿ‡บ๐Ÿ‡ฒ๐Ÿ

He's going through two examples of data processing with Python 3.11 and how asyncio with shared memory helps speed things up โšก

โ€‹

CC @pycon @PyConUS @ambv

#python #gil #sharedmemory #asyncio #cpython #pycon #pyconus #pycon2023 #pyconus2023 #pythonspeakingtour

Last updated 2 years ago

Steady State Sounds (Brian) · @SteadyState
101 followers · 165 posts · Server mas.to

I was documenting some asynchronous code I wrote, and after typing the sentence "Then cancel the future", I had to stop.

Free band name!

#asyncio #CALLBACK #Python #cancelthefuture

Last updated 2 years ago

On the one hand, I do projects like to learn new things. On the other hand, that means I spend a l o t of time on sidequests.

Finally learning so my [1] concept has a fighting chance to work right in (still not willing to go to C for this...)

[1]There's surely already a name for this pretty obvious concept, but I haven't come across it yet. "chordal synth" might be more descriptive but also less accurate, at least how I'm doing it.

#muvco #python #asyncio #multisynth #micropython #synth

Last updated 2 years ago

Jori · @polarcoder
5 followers · 25 posts · Server mstdn.dk
peter · @volfpeter
2 followers · 34 posts · Server mastodon.social

New version (0.2) of fastapi-motor-oil (github.com/volfpeter/fastapi-m) is available on . New features include: delete rules, validators, multi-document transaction support, a couple of new service methods, extra hooks for customization, typing improvements, etc.

Still a lot to do, e.g. testing, and more documentation, but it's in good shape.

#pypi #python #mongodb #asyncio

Last updated 3 years ago

Linus Groh (SerenityOS) · @linusg
203 followers · 214 posts · Server serenityos.social

Just noticed this PR from a month ago by @hjalves that makes work in the port - exciting to see!

Kernel+LibC: Support monotonic clock in clock_getres()
github.com/SerenityOS/serenity

#asyncio #serenityos #python

Last updated 3 years ago

Andrew Baldwin · @baldand
174 followers · 437 posts · Server mstdn.thndl.com

Playing around a bit with a bunch of asyncio-based python libraries to try and index and browse our family photo collection (currently 60k images from many devices)

Most camera jpegs have embedded jpeg thumbnails which can be easily extracted - just need start/end index.

- aiohttp for the UI on phone/ipad/laptop
- aiosqlite for the index
- aiofile for non blocking file reads
- exif
- turbojpeg to check thumbnails

#python #asyncio #jpeg

Last updated 3 years ago

Debacle · @debacle
336 followers · 36 posts · Server framapiaf.org

Good-bye, , the library, well-known from the book "XMPP: The Definitive Guide" by Peter Saint-Andre, Kevin Smith, and Remko Tronรงon.

This month it has been removed from unstable and testing. There was no active development anymore, so it was time for it to go.

Say hello to , its successor, which embraces and is well-maintained. Porting software from SleekXMPP to slixmpp is trivial most of the time, sometimes only the import name must be changed.

#asyncio #slixmpp #debian #xmpp #python #sleekxmpp

Last updated 3 years ago

It took me an age to track down the `python -m asyncio` example, that gives you a concurrent context in the REPL. It was (only) in the What's new in Python 3.8 section, from when it was added.

I thought I'd propose having it on the asyncio intro page too:

github.com/python/cpython/pull

#python #asyncio

Last updated 3 years ago

Dave Marquardt · @davemq
39 followers · 171 posts · Server fosstodon.org

Last month I picked up a copy of Mike Driscoll's 201: Intermediate Python. I read up on and decided to rework some code of mine that used taskflow with the process executor. I achieved a 2-3x time improvement. Not scientifically measured, but I was delighted with the results, and now I feel a bit more modern ๐Ÿ˜€

#python #asyncio

Last updated 3 years ago

Sophia Yang · @sophiamyang
105 followers · 119 posts · Server fosstodon.org

RT @MarcSkovMadsen
@Panel_org is a very powerful framework for the . For the pros it has a lot of extras like viz, streaming and support for .

Please support the framework by giving it a starโญ๏ธon github github.com/holoviz/panel.

Thanks ๐Ÿคฉ

#dataapp #datasciencist #datascience #bigdata #asyncio

Last updated 3 years ago

Joachim Wiberg :verified: · @troglobit
132 followers · 835 posts · Server mastodon.nu

@jorgen not a clue, is not my cup of tea. I'd definitely just use my goto trick, an event loop for all my (blocking) sockets. It scales super well actually, at least on with epoll(), which I wrapped in libuev

github.com/troglobit/libuev

#opensource #linux #asyncio

Last updated 3 years ago