Skip to content

Commit c0af7ee

Browse files
authored
Upgrade to v0.1.3
Requirements update.
2 parents da8cc33 + 4018e6c commit c0af7ee

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

feClient/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.1.2"
1+
__version__ = "0.1.3"
22
__doc__ = """
33
Python client for Fusion Explorer API v{}
44
Copyright (C) 2021 Fusion Solutions KFT <contact@fusionsolutions.io>

feClient/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ def __setstate__(self, states:Dict[str, Any]) -> None:
8181
self.pubkey = states["pubkey"]
8282
self.seckey = states["seckey"]
8383
self.timeWindow = states["timeWindow"]
84-
def _sendToSocket(self, payload:bytes, path:str="/", extraHttpHeaders:Dict[str, str]={}) -> None:
84+
def _sendToSocket(self, payload:bytes, httpMethod:str="POST", path:str="/", httpHeaders:Dict[str, str]={}) -> None:
8585
if self.seckey:
8686
ts = int(time()+self.timeWindow).to_bytes(4, "big")
87-
extraHttpHeaders["X-Auth"] = b"".join((
87+
httpHeaders["X-Auth"] = b"".join((
8888
ts,
8989
self.pubkey,
9090
hmac.digest(
@@ -97,7 +97,7 @@ def _sendToSocket(self, payload:bytes, path:str="/", extraHttpHeaders:Dict[str,
9797
"SHA256"
9898
)
9999
)).hex()
100-
super()._sendToSocket(payload, path, extraHttpHeaders)
100+
super()._sendToSocket(payload, httpMethod, path, httpHeaders)
101101
def clone(self, **kwargs:Any) -> Client:
102102
opts:Dict[str, Any] = {
103103
"projectPublicKey": self.pubkey,

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
python-fsrpcclient>=0.1.1
1+
python-fsrpcclient~=0.3.0

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
setup(
1111
name = "python-feclient",
12-
version = "0.1.2",
12+
version = "0.1.3",
1313
description = "Client for Fusion Explorer",
1414
keywords = "explorer client fusion solutions fusionsolutions fusionexplorer",
1515
author = "Andor `iFA` Rajci - Fusions Solutions KFT",
@@ -22,7 +22,7 @@
2222
zip_safe = False,
2323
scripts = ["feClient/fexplorer-cli"],
2424
python_requires = ">=3.8.0",
25-
install_requires = ["python-fsrpcclient~=0.2.0"],
25+
install_requires = ["python-fsrpcclient~=0.3.0"],
2626
test_suite = "feClient.test",
2727
package_data = { "":["py.typed"] },
2828
classifiers = [ # https://pypi.org/pypi?%3Aaction=list_classifiers

0 commit comments

Comments
 (0)