Permalink
Browse files

#4 make Savoir py3 compatible

  • Loading branch information...
Federico Cardoso
Federico Cardoso committed May 16, 2017
1 parent 2770141 commit b8e5dd336653c2899b8e9c07895ebf06dec16602
Showing with 9 additions and 7 deletions.
  1. +2 −0 .gitignore
  2. +4 −4 Savoir/Savoir.py
  3. +1 −1 requirements.txt
  4. +2 −2 setup.py
View
@@ -0,0 +1,2 @@
*.pyc
dist/
View
@@ -17,14 +17,14 @@ def __init__(self,
chainname,
rpc_call=None
):
self.__rpcuser = rpcuser.encode('utf-8')
self.__rpcpasswd = rpcpasswd.encode('utf-8')
self.__rpcuser = rpcuser
self.__rpcpasswd = rpcpasswd
self.__rpchost = rpchost
self.__rpcport = rpcport
self.__chainname = chainname
self.__auth_header = ' '.join(
['Basic', b64encode(':'.join([self.__rpcuser, self.__rpcpasswd]))]
)
['Basic', b64encode(':'.join([rpcuser, rpcpasswd]).encode()).decode()]
)
self.__headers = {'Host': self.__rpchost,
'User-Agent': 'Savoir v0.1',
'Authorization': self.__auth_header,
View
@@ -1 +1 @@
requests==2.12.4
requests==2.14.2
View
@@ -13,14 +13,14 @@ def read(fname):
setup(name='Savoir',
version='1.0.3',
version='1.0.5',
description='A python wrapper for Multichain Json-RPC API ',
long_description=read('README.mkdn'),
license="BSD",
author='Federico Cardoso',
author_email='federico.cardoso@dxmarkets.com',
url='https://github.com/DXMarkets/Savoir',
keywords='multichain python blockchain',
keywords='multichain python blockchain jsonrpc',
packages=find_packages(),
install_requires=[
'requests',

0 comments on commit b8e5dd3

Please sign in to comment.