pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/finance py-bitcoinrpc: added version 1.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a4e4dc44a377
branches:  trunk
changeset: 418763:a4e4dc44a377
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue Dec 03 16:32:16 2019 +0000

description:
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:

 finance/Makefile               |   3 ++-
 finance/py-bitcoinrpc/DESCR    |  14 ++++++++++++++
 finance/py-bitcoinrpc/Makefile |  16 ++++++++++++++++
 finance/py-bitcoinrpc/PLIST    |   8 ++++++++
 finance/py-bitcoinrpc/distinfo |   6 ++++++
 5 files changed, 46 insertions(+), 1 deletions(-)

diffs (77 lines):

diff -r 14035e77d852 -r a4e4dc44a377 finance/Makefile
--- a/finance/Makefile  Tue Dec 03 16:30:35 2019 +0000
+++ b/finance/Makefile  Tue Dec 03 16:32:16 2019 +0000
@@ -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-alphalens
 SUBDIR+=       py-backtrader
 SUBDIR+=       py-bitcoinlib
+SUBDIR+=       py-bitcoinrpc
 SUBDIR+=       py-braintree
 SUBDIR+=       py-empyrical
 SUBDIR+=       py-fecon235
diff -r 14035e77d852 -r a4e4dc44a377 finance/py-bitcoinrpc/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/finance/py-bitcoinrpc/DESCR       Tue Dec 03 16:32:16 2019 +0000
@@ -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 -r 14035e77d852 -r a4e4dc44a377 finance/py-bitcoinrpc/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/finance/py-bitcoinrpc/Makefile    Tue Dec 03 16:32:16 2019 +0000
@@ -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@localhost
+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 -r 14035e77d852 -r a4e4dc44a377 finance/py-bitcoinrpc/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/finance/py-bitcoinrpc/PLIST       Tue Dec 03 16:32:16 2019 +0000
@@ -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 -r 14035e77d852 -r a4e4dc44a377 finance/py-bitcoinrpc/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/finance/py-bitcoinrpc/distinfo    Tue Dec 03 16:32:16 2019 +0000
@@ -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



Home | Main Index | Thread Index | Old Index