mpcontribs-client 5.8.3__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.
@@ -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 1500 characters)
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
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,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: setuptools (70.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,6 +0,0 @@
1
- mpcontribs/client/__init__.py,sha256=jCx5MiBycIWR8yD-q5d3MmreaDOal91IcLrWgjZE7c4,96703
2
- mpcontribs_client-5.8.3.dist-info/LICENSE,sha256=5tG0Niaqw2hnuyZZYkRXLSnfVrZA47COwduU_6caPLM,1074
3
- mpcontribs_client-5.8.3.dist-info/METADATA,sha256=V0m6nTJ6Dp7bPFvtACVKBc9TLW4oubTnWPUQ6gA7Y1M,2548
4
- mpcontribs_client-5.8.3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
5
- mpcontribs_client-5.8.3.dist-info/top_level.txt,sha256=t8R5L_Dg9oDQMh2gyRFdZGnrzZsr7OjCBTrhTcmimC8,11
6
- mpcontribs_client-5.8.3.dist-info/RECORD,,