This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!
Project Description

asyncdgt uses asyncio to communicate asynchronously with a DGT electronic chess board. View reference documentation.


Create an event loop and a connection to the DGT board.

import asyncio

loop = asyncio.get_event_loop()
dgt = asyncdgt.auto_connect(["/dev/ttyACM*"], loop)

Register some pyee event handlers. They will be called whenever a board gets connected, disconnected or the position changed.

def on_connected(port):
    print("Board connected to {0}!".format(port))

def on_disconnected():
    print("Board disconnected!")

def on_board(board):
    print("Position changed:")

Get some information outside of an event handler using the coroutine get_version().

print("Version:", loop.run_until_complete(dgt.get_version()))

Run the event loop.

except KeyboardInterrupt:

See asyncdgt/ for the complete example. Run with python -m asyncdgt /dev/ttyACM0.


Tested with the following boards:

  • DGT e-Board 3.1
  • DGT e-Board 3.1 Bluetooth


  • DGT Clock 3000


pip install -r requirements.txt


python-asyncdtg is licensed under the GPL3. See the LICENSE.txt file for the full license text.

Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting