Questions tagged [python-trio]

Trio is a Python package for async concurrency and I/O that's obsessed with usability and correctness

Official web site

52 questions
0
votes
1 answer

trio.open_process and trio.run_process give attribute errors

I'm trying to create an async subprocess and pass a variable to stdin but trio.run_process and trio.open_process both give an attribute error. It doesn't specify what is causing the error. Traceback (most recent call last): File "./update.py",…
Hussar
  • 53
  • 5
0
votes
1 answer

Python Trio set up a decimal number of workers

I'm working with trio to run asynchronous concurrent task that will do some web scraping on different websites. I'd like to be able to chose how many concurrent workers I'll divide the tasks with. To do so I've written this code async def…
Tom
  • 454
  • 6
  • 24
0
votes
1 answer

Proper way to start a Trio server that manages multiple TCP Connections

I recently finished a project using a mix of Django and Twisted and realized it's overkill for what I need which is basically just a way for my servers to communicate via TCP sockets. I turned to Trio and so far I'm liking what I see as it's way…
Lorenzo Ang
  • 998
  • 3
  • 7
  • 28
0
votes
1 answer

Any advice on how to tune parameters to download urls faster with less errors? (trio + asks)

I'am writing simple program that downloads list of urls. prepare list of urls !curl -LO https://github.com/mozilla/cipherscan/raw/master/top1m/top-1m.csv !head -5 top-1m.csv …
tandav
  • 614
  • 1
  • 8
  • 12
0
votes
1 answer

TRIO Lib queue get and put

Hello I'm trying to use trio with two asyncronous functions and a message in between. but it doesn't launch the consumer and I don't really understand why . The producer sends well in the'queue' and does not send anything once it is saturated. But…
0
votes
4 answers

Combining semaphore and time limiting in python-trio with asks http request

I'm trying to use Python in an async manner in order to speed up my requests to a server. The server has a slow response time (often several seconds, but also sometimes faster than a second), but works well in parallel. I have no access to this…
Manu CJ
  • 1,839
  • 11
  • 22
0
votes
1 answer

python-trio: AttributeError: sendall

I'm just trying to run the echo-client-low-level.py from the python-trio docs: # echo-client-low-level.py import sys import trio # arbitrary, but: # - must be in between 1024 and 65535 # - can't be in use by some other program on your computer # -…
NarūnasK
  • 3,528
  • 5
  • 33
  • 65
1 2 3
4