neuronum 0.7.0__py3-none-any.whl → 0.8.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of neuronum might be problematic. Click here for more details.
- neuronum/neuronum.py +8 -8
- neuronum-0.8.0.dist-info/METADATA +9 -0
- neuronum-0.8.0.dist-info/RECORD +6 -0
- {neuronum-0.7.0.dist-info → neuronum-0.8.0.dist-info}/WHEEL +1 -1
- neuronum-0.7.0.dist-info/METADATA +0 -13
- neuronum-0.7.0.dist-info/RECORD +0 -6
- {neuronum-0.7.0.dist-info → neuronum-0.8.0.dist-info}/top_level.txt +0 -0
neuronum/neuronum.py
CHANGED
|
@@ -19,7 +19,7 @@ class Cell:
|
|
|
19
19
|
def __repr__(self) -> str:
|
|
20
20
|
return f"Cell(host={self.host}, password={self.password}, network={self.network}, synapse={self.synapse})"
|
|
21
21
|
|
|
22
|
-
def activate(self, txID: str, data: dict, base_url: str = "http://{network}
|
|
22
|
+
def activate(self, txID: str, data: dict, base_url: str = "http://{network}/activateTX"):
|
|
23
23
|
full_url = base_url.format(network=self.network) + f"/{txID}"
|
|
24
24
|
|
|
25
25
|
TX = {
|
|
@@ -44,7 +44,7 @@ class Cell:
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
|
|
47
|
-
def test_connection(self, base_url: str = "http://{network}
|
|
47
|
+
def test_connection(self, base_url: str = "http://{network}/testConnection"):
|
|
48
48
|
full_url = base_url.format(network=self.network)
|
|
49
49
|
|
|
50
50
|
TX = {
|
|
@@ -74,9 +74,9 @@ class Cell:
|
|
|
74
74
|
|
|
75
75
|
def store(self, label: str, data: dict, ctx: Optional[str] = None):
|
|
76
76
|
if ctx:
|
|
77
|
-
full_url = f"http://{self.network}
|
|
77
|
+
full_url = f"http://{self.network}/store_ctx/{ctx}"
|
|
78
78
|
else:
|
|
79
|
-
full_url = f"http://{self.network}
|
|
79
|
+
full_url = f"http://{self.network}/store"
|
|
80
80
|
|
|
81
81
|
store = {
|
|
82
82
|
"label": label,
|
|
@@ -97,9 +97,9 @@ class Cell:
|
|
|
97
97
|
|
|
98
98
|
def load(self, label: str, ctx: Optional[str] = None):
|
|
99
99
|
if ctx:
|
|
100
|
-
full_url = f"http://{self.network}
|
|
100
|
+
full_url = f"http://{self.network}/load_ctx/{ctx}"
|
|
101
101
|
else:
|
|
102
|
-
full_url = f"http://{self.network}
|
|
102
|
+
full_url = f"http://{self.network}/load"
|
|
103
103
|
|
|
104
104
|
print(f"Full URL: {full_url}")
|
|
105
105
|
|
|
@@ -121,9 +121,9 @@ class Cell:
|
|
|
121
121
|
|
|
122
122
|
def delete(self, label: str, ctx: Optional[str] = None):
|
|
123
123
|
if ctx:
|
|
124
|
-
full_url = f"http://{self.network}
|
|
124
|
+
full_url = f"http://{self.network}/delete_ctx/{ctx}"
|
|
125
125
|
else:
|
|
126
|
-
full_url = f"http://{self.network}
|
|
126
|
+
full_url = f"http://{self.network}/delete"
|
|
127
127
|
|
|
128
128
|
print(f"Full URL: {full_url}")
|
|
129
129
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: neuronum
|
|
3
|
+
Version: 0.8.0
|
|
4
|
+
Summary: A high-level coding library to build & automate economic data streams - The Neuronum Team
|
|
5
|
+
Author: Neuronum Cybernetics
|
|
6
|
+
Author-email: welcome@neuronum.net
|
|
7
|
+
Requires-Python: >=3.6
|
|
8
|
+
Requires-Dist: requests
|
|
9
|
+
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
neuronum/__init__.py,sha256=P0KTJMGY_eT3l5YzR4LHfl64KH5Qt_qhcrqf9Ld2G00,74
|
|
2
|
+
neuronum/neuronum.py,sha256=Qpcal4FhbUFpZoVaEJxVD_qM9X-Eq4Lw-vYqr_JbEGU,4259
|
|
3
|
+
neuronum-0.8.0.dist-info/METADATA,sha256=_xpsILXcEZPifvSdtpUoRTFHgXbMwQKcrTrC5k2qnLc,272
|
|
4
|
+
neuronum-0.8.0.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
|
5
|
+
neuronum-0.8.0.dist-info/top_level.txt,sha256=73zXVVO9UTTiwEcSaXytsJ8n0q47OCwAqPlIh-hzWJU,9
|
|
6
|
+
neuronum-0.8.0.dist-info/RECORD,,
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.2
|
|
2
|
-
Name: neuronum
|
|
3
|
-
Version: 0.7.0
|
|
4
|
-
Summary: A high-level coding library to interact with the Neuronum network.
|
|
5
|
-
Author: Neuronum Cybernetics
|
|
6
|
-
Author-email: welcome@neuronum.net
|
|
7
|
-
Requires-Python: >=3.6
|
|
8
|
-
Requires-Dist: requests
|
|
9
|
-
Dynamic: author
|
|
10
|
-
Dynamic: author-email
|
|
11
|
-
Dynamic: requires-dist
|
|
12
|
-
Dynamic: requires-python
|
|
13
|
-
Dynamic: summary
|
neuronum-0.7.0.dist-info/RECORD
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
neuronum/__init__.py,sha256=P0KTJMGY_eT3l5YzR4LHfl64KH5Qt_qhcrqf9Ld2G00,74
|
|
2
|
-
neuronum/neuronum.py,sha256=0ca2qdduBk-X6tIwln4-LMz-BLbhQHbZM6zUd9gM5cs,4299
|
|
3
|
-
neuronum-0.7.0.dist-info/METADATA,sha256=lorcVD9ZFpDlfmxyFg-2M0LVtF3rERv9lmHebyo3WzQ,355
|
|
4
|
-
neuronum-0.7.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
5
|
-
neuronum-0.7.0.dist-info/top_level.txt,sha256=73zXVVO9UTTiwEcSaXytsJ8n0q47OCwAqPlIh-hzWJU,9
|
|
6
|
-
neuronum-0.7.0.dist-info/RECORD,,
|
|
File without changes
|