Index: head/net/Makefile =================================================================== --- head/net/Makefile +++ head/net/Makefile @@ -950,6 +950,7 @@ SUBDIR += py-pysendfile SUBDIR += py-pysocks SUBDIR += py-pysphere + SUBDIR += py-python-bitcoinrpc SUBDIR += py-pyvmomi SUBDIR += py-pyzmq SUBDIR += py-qt4-network Index: head/net/py-python-bitcoinrpc/Makefile =================================================================== --- head/net/py-python-bitcoinrpc/Makefile +++ head/net/py-python-bitcoinrpc/Makefile @@ -0,0 +1,21 @@ +# Created by: loader +# $FreeBSD$ + +PORTNAME= python-bitcoinrpc +PORTVERSION= 0.3.0.20150403 +CATEGORIES= net finance python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= loader@FreeBSD.org +COMMENT= Enhanced version of python-jsonrpc for use with Bitcoin + +LICENSE= LGPL20 + +USE_GITHUB= yes +GH_ACCOUNT= jgarzik +GH_TAGNAME= f607fe7 + +USES= python +USE_PYTHON= autoplist distutils + +.include Index: head/net/py-python-bitcoinrpc/distinfo =================================================================== --- head/net/py-python-bitcoinrpc/distinfo +++ head/net/py-python-bitcoinrpc/distinfo @@ -0,0 +1,2 @@ +SHA256 (jgarzik-python-bitcoinrpc-0.3.0.20150403-f607fe7_GH0.tar.gz) = f8ea6c2b33bdf70b6dcc25a915f6a81241be0869ae612b24036b503f3f52a2ed +SIZE (jgarzik-python-bitcoinrpc-0.3.0.20150403-f607fe7_GH0.tar.gz) = 3942 Index: head/net/py-python-bitcoinrpc/pkg-descr =================================================================== --- head/net/py-python-bitcoinrpc/pkg-descr +++ head/net/py-python-bitcoinrpc/pkg-descr @@ -0,0 +1,18 @@ +AuthServiceProxy is an improved version of python-jsonrpc. + +It includes the following generic improvements: + +- HTTP connections persist for the life of the AuthServiceProxy object +- sends protocol 'version', per JSON-RPC 1.1 +- sends proper, incrementing 'id' +- uses standard Python json lib +- can optionally log all RPC calls and results +- JSON-2.0 batch support + +It also includes the following bitcoin-specific details: + +- sends Basic HTTP authentication headers +- parses all JSON numbers that look like floats as Decimal, + and serializes Decimal values to JSON-RPC connections. + +WWW: https://github.com/jgarzik/python-bitcoinrpc