erioon 0.0.6__py3-none-any.whl → 0.0.7__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.
- erioon/client.py +1 -2
- erioon/collection.py +0 -2
- {erioon-0.0.6.dist-info → erioon-0.0.7.dist-info}/METADATA +1 -1
- erioon-0.0.7.dist-info/RECORD +9 -0
- erioon-0.0.6.dist-info/RECORD +0 -9
- {erioon-0.0.6.dist-info → erioon-0.0.7.dist-info}/LICENSE +0 -0
- {erioon-0.0.6.dist-info → erioon-0.0.7.dist-info}/WHEEL +0 -0
- {erioon-0.0.6.dist-info → erioon-0.0.7.dist-info}/top_level.txt +0 -0
erioon/client.py
CHANGED
@@ -92,8 +92,7 @@ class ErioonClient:
|
|
92
92
|
dict: Metadata with user_id, database, cluster, etc.
|
93
93
|
"""
|
94
94
|
url = f"{self.base_url}/login_with_credentials"
|
95
|
-
|
96
|
-
payload = {"api_key": hashed_key,"email": self.email, "password": self.password}
|
95
|
+
payload = {"api_key": self.api,"email": self.email, "password": self.password}
|
97
96
|
headers = {"Content-Type": "application/json"}
|
98
97
|
|
99
98
|
response = requests.post(url, json=payload, headers=headers)
|
erioon/collection.py
CHANGED
@@ -94,7 +94,6 @@ class Collection:
|
|
94
94
|
new_doc = {"name": "Alice", "age": 25}
|
95
95
|
result = collection.insert_one(new_doc)
|
96
96
|
"""
|
97
|
-
self._print_loading()
|
98
97
|
if self._is_read_only():
|
99
98
|
return {"status": "KO", "error": "Method not allowed. Access is only read."}
|
100
99
|
|
@@ -140,7 +139,6 @@ class Collection:
|
|
140
139
|
Usage:
|
141
140
|
result = collection.delete_one({"name": "John"})
|
142
141
|
"""
|
143
|
-
self._print_loading()
|
144
142
|
if self._is_read_only():
|
145
143
|
return {"status": "KO", "error": "Method not allowed. Access is only read."}
|
146
144
|
|
@@ -0,0 +1,9 @@
|
|
1
|
+
erioon/auth.py,sha256=zSMRnkoU2-5khZNYhcWb48PtYTbtYYbAI--ydrFeMbo,714
|
2
|
+
erioon/client.py,sha256=AURUVA6pkTZf2NfK0oA9oL6t6f5ULGHqJe7tcRVOhmQ,6759
|
3
|
+
erioon/collection.py,sha256=xCeFaJ9mN6lC65M0H2k1_9Z5KLqyJrQaU597eGOujIs,7624
|
4
|
+
erioon/database.py,sha256=IjtZYJtQ-8shojxYwNKnN1ZaRwwWZfOhw3PDAgapE8w,1185
|
5
|
+
erioon-0.0.7.dist-info/LICENSE,sha256=xwnq3DNlZpQyteOK9HvtHRhMdYviXTTaCDljEodFRnQ,569
|
6
|
+
erioon-0.0.7.dist-info/METADATA,sha256=nK9brNhMQtYryCckTebzGlbCYZoelfoqRW-EWfZHlcg,715
|
7
|
+
erioon-0.0.7.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
8
|
+
erioon-0.0.7.dist-info/top_level.txt,sha256=yjKEg85X5Q5ot46IMML_xukvIGG5YfdrLWcemjalItc,7
|
9
|
+
erioon-0.0.7.dist-info/RECORD,,
|
erioon-0.0.6.dist-info/RECORD
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
erioon/auth.py,sha256=zSMRnkoU2-5khZNYhcWb48PtYTbtYYbAI--ydrFeMbo,714
|
2
|
-
erioon/client.py,sha256=xFdzTJgZNo3RU7FStEqXVCKI8EjmOxlQG5HXjKm6nMU,6816
|
3
|
-
erioon/collection.py,sha256=i0mmOj79D02suXhTtfJA8yH-oM7JiHyehh574JHlJn0,7686
|
4
|
-
erioon/database.py,sha256=IjtZYJtQ-8shojxYwNKnN1ZaRwwWZfOhw3PDAgapE8w,1185
|
5
|
-
erioon-0.0.6.dist-info/LICENSE,sha256=xwnq3DNlZpQyteOK9HvtHRhMdYviXTTaCDljEodFRnQ,569
|
6
|
-
erioon-0.0.6.dist-info/METADATA,sha256=sJILmB27Ztfcpzt7cj0RFF1e6QBe9WrLpCGD6V58Sc4,715
|
7
|
-
erioon-0.0.6.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
8
|
-
erioon-0.0.6.dist-info/top_level.txt,sha256=yjKEg85X5Q5ot46IMML_xukvIGG5YfdrLWcemjalItc,7
|
9
|
-
erioon-0.0.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|