Presentation and examples for using Python to interact with Bitcoin
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
data
jsonrpc
payme
.gitignore
README.rst
bitcoincli.py
bitcoinclishort.py
bitcoinwatch.py
ircbot.py

README.rst

Exchange Digital Money using Bitcoin

The Presentation for this talk is at http://davesteele.github.com/python-bitcoin-talk/

For Linux, you will want to install the following packages to use these demos:
  • git
  • python-simplejson
  • python-irclib
  • pygame
  • Django

Make a local copy of this repository with:

git clone git://github.com/davesteele/python-bitcoin-talk.git

Simple JSON-RPC Demo

bitcoincli.py bitcoinclishort.py

The demo uses a local snapshot of the bitcoin-targeted jsonrpc package. It requires python-simplejson.

The Bitcoin JSON-RPC API and the RPC Calls are documented in the Bitcoin Wiki.

Web Application

payme

A simple Django web application which demonstrates working with Bitcoin. The Bitcoin wallet is used to hold the data model. See the README in the payme directory for details.

The demo requires Django.

Bitcoin Transaction Monitor

bitcoinwatch.py

Defines a module that Watches the BitcoinWatch IRC channel and uses registered callback functions to flag every transaction seen there.

This demo uses a local snapshot of the ircbot library. It requires python-irclib, and pygame for the demo mode.