3
votes
1answer
114 views

asyncio - How can coroutines be used in signal handlers?

I am developing an application that uses asyncio from python3.4 for networking. When this application shuts down cleanly, a node needs to "disconnect" from the hub. This disconnect is an active ...
3
votes
1answer
292 views

Python 3.4 asyncio task doesn't get fully executed

I'm experimenting with Python 3.4's asyncio module. Since there's no production ready package for MongoDB using asyncio, I have written a small wrapper class that execute all mongo queries in an ...
1
vote
1answer
144 views

using serial port in python3 asyncio

i'm trying and, so far, failing to use python asyncio to access a serial port. i'd really appreciate any tips on using the new python async framework on a simple fd. Cheers! James
0
votes
1answer
71 views

Background task for web socket server

I'd like to run a web socket server to provide an interface to a raspberry pi board. Specifically, I'd like to continuously poll a sensor, process input from a web socket with reference to a variable ...
3
votes
0answers
77 views

Does the aiohttp Python library in Windows support HTTPS?

When I make an HTTPS request using the aiohttp library with asyncio and Python 3.4 in Windows 7, the request fails with a NotImplementedError in the _make_ssl_transport function in base_events.py as ...
2
votes
0answers
155 views

Tornado and Autobahn-python listening on the same port

Recently I started a small personal project. It's a realtime web system based on asyncio and autobahn-python. However I also would like to serve some static files via HTTP and do it from the same ...
1
vote
0answers
35 views

Scope in Python standard library code: How is it even possible that these variables exist?

I took a look at the asyncio package's __init__.py file (in Python 3.4.1) and stumbled over the last few lines: """The asyncio package, tracking PEP 3156.""" import sys # The selectors module is in ...
0
votes
0answers
33 views

Python3: asyncio + SOCKS proxy

I want to use asyncio in Python3 and route connections through a SOCKS proxy. Luckily, it is simple to route data through a SOCKSS proxy using Anorov's PySocks library. After trying to manually ...