diff options
author | adam <adam@pkgsrc.org> | 2019-12-03 16:32:16 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2019-12-03 16:32:16 +0000 |
commit | 66a9d0318565e0b7ca533b0ee1e48b0fdc4ae590 (patch) | |
tree | 3a4952b86de1d160f7032698d70f61e802b473be /finance | |
parent | c237350ffc897d9fad29d2f3057ee63de55d1c81 (diff) | |
download | pkgsrc-66a9d0318565e0b7ca533b0ee1e48b0fdc4ae590.tar.gz |
py-bitcoinrpc: added version 1.0
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.
Diffstat (limited to 'finance')
-rw-r--r-- | finance/Makefile | 3 | ||||
-rw-r--r-- | finance/py-bitcoinrpc/DESCR | 14 | ||||
-rw-r--r-- | finance/py-bitcoinrpc/Makefile | 16 | ||||
-rw-r--r-- | finance/py-bitcoinrpc/PLIST | 8 | ||||
-rw-r--r-- | finance/py-bitcoinrpc/distinfo | 6 |
5 files changed, 46 insertions, 1 deletions
diff --git a/finance/Makefile b/finance/Makefile index a4d896523f3..7554367a49a 100644 --- a/finance/Makefile +++ b/finance/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.69 2019/11/25 18:24:49 adam Exp $ +# $NetBSD: Makefile,v 1.70 2019/12/03 16:32:16 adam Exp $ # COMMENT= Monetary, financial and related applications @@ -31,6 +31,7 @@ SUBDIR+= py-alpha_vantage SUBDIR+= py-alphalens SUBDIR+= py-backtrader SUBDIR+= py-bitcoinlib +SUBDIR+= py-bitcoinrpc SUBDIR+= py-braintree SUBDIR+= py-empyrical SUBDIR+= py-fecon235 diff --git a/finance/py-bitcoinrpc/DESCR b/finance/py-bitcoinrpc/DESCR new file mode 100644 index 00000000000..7dce4644e96 --- /dev/null +++ b/finance/py-bitcoinrpc/DESCR @@ -0,0 +1,14 @@ +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. diff --git a/finance/py-bitcoinrpc/Makefile b/finance/py-bitcoinrpc/Makefile new file mode 100644 index 00000000000..28af0c1cd9d --- /dev/null +++ b/finance/py-bitcoinrpc/Makefile @@ -0,0 +1,16 @@ +# $NetBSD: Makefile,v 1.1 2019/12/03 16:32:16 adam Exp $ + +DISTNAME= python-bitcoinrpc-1.0 +PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/^python-//} +CATEGORIES= finance python +MASTER_SITES= ${MASTER_SITE_PYPI:=p/python-bitcoinrpc/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/jgarzik/python-bitcoinrpc +COMMENT= Enhanced version of python-jsonrpc for use with Bitcoin +LICENSE= gnu-lgpl-v2.1 + +USE_LANGUAGES= # none + +.include "../../lang/python/distutils.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/finance/py-bitcoinrpc/PLIST b/finance/py-bitcoinrpc/PLIST new file mode 100644 index 00000000000..27e48384dcd --- /dev/null +++ b/finance/py-bitcoinrpc/PLIST @@ -0,0 +1,8 @@ +@comment $NetBSD: PLIST,v 1.1 2019/12/03 16:32:16 adam Exp $ +${PYSITELIB}/${EGG_FILE} +${PYSITELIB}/bitcoinrpc/__init__.py +${PYSITELIB}/bitcoinrpc/__init__.pyc +${PYSITELIB}/bitcoinrpc/__init__.pyo +${PYSITELIB}/bitcoinrpc/authproxy.py +${PYSITELIB}/bitcoinrpc/authproxy.pyc +${PYSITELIB}/bitcoinrpc/authproxy.pyo diff --git a/finance/py-bitcoinrpc/distinfo b/finance/py-bitcoinrpc/distinfo new file mode 100644 index 00000000000..0a2ffa91feb --- /dev/null +++ b/finance/py-bitcoinrpc/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2019/12/03 16:32:16 adam Exp $ + +SHA1 (python-bitcoinrpc-1.0.tar.gz) = c345fbf5a98f77d940fa58bad664211124899a63 +RMD160 (python-bitcoinrpc-1.0.tar.gz) = fc396d742c86b72d87d3e44f810a97e9ae38bfbf +SHA512 (python-bitcoinrpc-1.0.tar.gz) = 75e6fe804b3e6340164030a25fde0ebee1fe573d590745d4f5634e2d850d35bdd20956b3a8523aabb55441eb6486f601d3cdb48564a8469df7656e7468b43608 +Size (python-bitcoinrpc-1.0.tar.gz) = 13146 bytes |