[ANN] DOPAL 0.54 - Python library for Azureus

Allan Crooks dopal-annmail at sixtyten.org
Sat Jan 7 18:18:19 CET 2006

DOPAL is a library to allow programs written in Python to easily
communicate the Java BitTorrent client Azureus, via the XML/HTTP plugin
(allowing communication over a network).

Version 0.54 is the first public release of DOPAL - which I've been
working on (on and off) for the last 18 months. It provides a very
Pythonic way of interacting with the objects available in Azureus's
Plugin API - you can interact with remote objects and invoke methods on
them as easily as any normal Python object (while all the connection
handling and XML generation and parsing is done behind the scenes). It
also allows you to write code which can do just the same things as Java
plugins for Azureus can (well, almost).

Please give it a try, let me know what you think...

Here's some sample output of DOPAL being used -  a more elaborate
example can be found here: http://dopal.sourceforge.net/examples.html


Python 2.3.5 (#62, Feb  8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)] on
Type "help", "copyright", "credits" or "license" for more information.

>>> import dopal.main
>>> connection = dopal.main.make_connection(host='')
>>> plugin_interface = connection.getPluginInterface()
>>> print connection
AzureusObjectConnection for [Azureus]

>>> downloads = plugin_interface.getDownloadManager().getDownloads()
>>> len(downloads)

>>> example_download = downloads[0]
>>> print example_download
Download: Rarities [Stopped, 0.0%]

>>> print example_download.scrape_result
DownloadScrapeResult: Seeds: 272, Peers: 123

>>> example_download.restart() # Starts the download
>>> # Let a little time elapse...
>>> example_download.refresh_object()
>>> print example_download
Download: Rarities [Downloading, 23.3%]

More information about the Python-announce-list mailing list