[NEW] net/py-python-bitcoinrpc: Enhanced version of python-jsonrpc

for use with Bitcoin

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

Approved by: koobs
Differential Revision: https://reviews.freebsd.org/D3317
This commit is contained in:
Fukang Chen 2015-08-07 05:22:00 +00:00
parent a784ad0826
commit ea1d74dac9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=393682
4 changed files with 42 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,21 @@
# Created by: loader <loader@FreeBSD.org>
# $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 <bsd.port.mk>

View File

@ -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

View File

@ -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