mpcontribs-client 5.8.2__py3-none-any.whl → 5.8.4__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.
- mpcontribs/client/__init__.py +5 -3
- {mpcontribs_client-5.8.2.dist-info → mpcontribs_client-5.8.4.dist-info}/METADATA +2 -1
- mpcontribs_client-5.8.4.dist-info/RECORD +6 -0
- {mpcontribs_client-5.8.2.dist-info → mpcontribs_client-5.8.4.dist-info}/WHEEL +1 -1
- mpcontribs_client-5.8.2.dist-info/RECORD +0 -6
- {mpcontribs_client-5.8.2.dist-info → mpcontribs_client-5.8.4.dist-info}/LICENSE +0 -0
- {mpcontribs_client-5.8.2.dist-info → mpcontribs_client-5.8.4.dist-info}/top_level.txt +0 -0
mpcontribs/client/__init__.py
CHANGED
|
@@ -75,7 +75,7 @@ BULMA = "is-narrow is-fullwidth has-background-light"
|
|
|
75
75
|
PROVIDERS = {"github", "google", "facebook", "microsoft", "amazon"}
|
|
76
76
|
COMPONENTS = ["structures", "tables", "attachments"] # using list to maintain order
|
|
77
77
|
SUBDOMAINS = ["contribs", "ml", "micro"]
|
|
78
|
-
PORTS = [5000, 5002, 5003, 5005, 10000, 10002, 10003, 10005, 20000]
|
|
78
|
+
PORTS = [5000, 5002, 5003, 5005, 10000, 10002, 10003, 10005, 20000, 20005]
|
|
79
79
|
HOSTS = ["localhost", "contribs-apis"]
|
|
80
80
|
HOSTS += [f"192.168.0.{i}" for i in range(36, 47)] # PrivateSubnetOne
|
|
81
81
|
HOSTS += [f"192.168.0.{i}" for i in range(52, 63)] # PrivateSubnetTwo
|
|
@@ -1174,7 +1174,7 @@ class Client(SwaggerClient):
|
|
|
1174
1174
|
name (str): unique name matching `^[a-zA-Z0-9_]{3,31}$`
|
|
1175
1175
|
title (str): unique title with 5-30 characters
|
|
1176
1176
|
authors (str): comma-separated list of authors
|
|
1177
|
-
description (str): brief description (max
|
|
1177
|
+
description (str): brief description (max 2000 characters)
|
|
1178
1178
|
url (str): URL for primary reference (paper/website/...)
|
|
1179
1179
|
"""
|
|
1180
1180
|
queries = [{"name": name}, {"title": title}]
|
|
@@ -2171,7 +2171,9 @@ class Client(SwaggerClient):
|
|
|
2171
2171
|
for kk, vv in flatten(contrib[k], reducer="dot").items():
|
|
2172
2172
|
if isinstance(vv, bool):
|
|
2173
2173
|
flat[kk] = "Yes" if vv else "No"
|
|
2174
|
-
elif isinstance(vv, str) and vv
|
|
2174
|
+
elif (isinstance(vv, str) and vv) or isinstance(
|
|
2175
|
+
vv, (float, int)
|
|
2176
|
+
):
|
|
2175
2177
|
flat[kk] = vv
|
|
2176
2178
|
contrib_copy[k] = deepcopy(unflatten(flat, splitter="dot"))
|
|
2177
2179
|
else:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mpcontribs-client
|
|
3
|
-
Version: 5.8.
|
|
3
|
+
Version: 5.8.4
|
|
4
4
|
Summary: client library for MPContribs API
|
|
5
5
|
Home-page: https://github.com/materialsproject/MPContribs/tree/master/mpcontribs-client
|
|
6
6
|
Author: Patrick Huck
|
|
@@ -9,6 +9,7 @@ License: MIT
|
|
|
9
9
|
Requires-Python: >=3.8
|
|
10
10
|
Description-Content-Type: text/markdown
|
|
11
11
|
License-File: LICENSE
|
|
12
|
+
Requires-Dist: numpy <2
|
|
12
13
|
Requires-Dist: boltons
|
|
13
14
|
Requires-Dist: bravado
|
|
14
15
|
Requires-Dist: filetype
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
mpcontribs/client/__init__.py,sha256=xvHBjJnbIEwA9Ubg9a_sbqp0zbG8rVCoKutiY_cA5M4,96799
|
|
2
|
+
mpcontribs_client-5.8.4.dist-info/LICENSE,sha256=5tG0Niaqw2hnuyZZYkRXLSnfVrZA47COwduU_6caPLM,1074
|
|
3
|
+
mpcontribs_client-5.8.4.dist-info/METADATA,sha256=L9NNJo4IpeKVPQoRnETAc0XuJgYHSA5wEzcPwhhe-gw,2572
|
|
4
|
+
mpcontribs_client-5.8.4.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
|
|
5
|
+
mpcontribs_client-5.8.4.dist-info/top_level.txt,sha256=t8R5L_Dg9oDQMh2gyRFdZGnrzZsr7OjCBTrhTcmimC8,11
|
|
6
|
+
mpcontribs_client-5.8.4.dist-info/RECORD,,
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
mpcontribs/client/__init__.py,sha256=rAVHL5OI-bFtXonrY8HfP4dvfaVI0tluENiVd7pAjyk,96696
|
|
2
|
-
mpcontribs_client-5.8.2.dist-info/LICENSE,sha256=5tG0Niaqw2hnuyZZYkRXLSnfVrZA47COwduU_6caPLM,1074
|
|
3
|
-
mpcontribs_client-5.8.2.dist-info/METADATA,sha256=WyvK_nI_Wmh3TnH_EzREcsvxiNT7-3SSD_H2HHMKyJ8,2548
|
|
4
|
-
mpcontribs_client-5.8.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
5
|
-
mpcontribs_client-5.8.2.dist-info/top_level.txt,sha256=t8R5L_Dg9oDQMh2gyRFdZGnrzZsr7OjCBTrhTcmimC8,11
|
|
6
|
-
mpcontribs_client-5.8.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|