Added packaging and python3

This commit is contained in:
Ben Wilson 2019-10-14 16:09:04 -04:00
parent 24cb60b7d8
commit b85ff84035
3 changed files with 18 additions and 2 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*/__pycache__
*.pyc

View File

@ -29,7 +29,7 @@ class ZDaemon(object):
#TODO: deal with errors better.
error = resp['error']
if error:
print error
print('Error calling {}:{}'.format(method, error))
return resp['result']
@ -109,7 +109,7 @@ class ZDaemon(object):
addrs.append(utxo['address'])
for addr in addrs:
res = self._call('z_shieldcoinbase', addr, zaddr)
print res
print('{}'.format(res))
# zaddr methods
def z_gettotalbalance(self):

14
setup.py Normal file
View File

@ -0,0 +1,14 @@
from setuptools import setup
setup(name='pyZcash',
version='0.1',
description='Python wrapper for Zcash cli',
url='https://github.com/zcash-hackworks/pyZcash',
author='ECC sysadmin',
author_email='sysadmin@electriccoin.co',
license='MIT',
packages=setuptools.find_packages(),
python_requires='>=3.6',
install_requires=[
'requests',
])