mpcontribs-client 5.9.0__py3-none-any.whl → 5.10.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.
@@ -54,8 +54,6 @@ from urllib3.util.retry import Retry
54
54
  from filetype.types.archive import Gz
55
55
  from filetype.types.image import Jpeg, Png, Gif, Tiff
56
56
  from pint import UnitRegistry
57
- from pint.unit import UnitDefinition
58
- from pint.converters import ScaleConverter
59
57
  from pint.errors import DimensionalityError
60
58
  from tempfile import gettempdir
61
59
  from plotly.express._chart_types import line as line_chart
@@ -104,10 +102,16 @@ ureg = UnitRegistry(
104
102
  lambda s: s.replace("%", " percent "),
105
103
  ],
106
104
  )
107
- ureg.define(UnitDefinition("percent", "%", (), ScaleConverter(0.01)))
108
- ureg.define(UnitDefinition("permille", "%%", (), ScaleConverter(0.001)))
109
- ureg.define(UnitDefinition("ppm", "ppm", (), ScaleConverter(1e-6)))
110
- ureg.define(UnitDefinition("ppb", "ppb", (), ScaleConverter(1e-9)))
105
+ if "percent" not in ureg:
106
+ # percent is native in pint >= 0.21
107
+ ureg.define("percent = 0.01 = %")
108
+ if "permille" not in ureg:
109
+ # permille is native in pint >= 0.24.2
110
+ ureg.define("permille = 0.001 = ‰ = %%")
111
+ if "ppm" not in ureg:
112
+ # ppm is native in pint >= 0.21
113
+ ureg.define("ppm = 1e-6")
114
+ ureg.define("ppb = 1e-9")
111
115
  ureg.define("atom = 1")
112
116
  ureg.define("bohr_magneton = e * hbar / (2 * m_e) = µᵇ = µ_B = mu_B")
113
117
  ureg.define("electron_mass = 9.1093837015e-31 kg = mₑ = m_e")
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: mpcontribs-client
3
- Version: 5.9.0
3
+ Version: 5.10.0
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,7 +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
+ Requires-Dist: numpy
13
13
  Requires-Dist: boltons
14
14
  Requires-Dist: bravado
15
15
  Requires-Dist: filetype
@@ -17,7 +17,7 @@ Requires-Dist: flatten-dict
17
17
  Requires-Dist: ipython
18
18
  Requires-Dist: json2html
19
19
  Requires-Dist: pandas
20
- Requires-Dist: pint <0.20
20
+ Requires-Dist: pint
21
21
  Requires-Dist: plotly
22
22
  Requires-Dist: pyIsEmail
23
23
  Requires-Dist: pymatgen
@@ -29,12 +29,22 @@ Requires-Dist: ujson
29
29
  Requires-Dist: semantic-version
30
30
  Requires-Dist: cachetools
31
31
  Provides-Extra: dev
32
- Requires-Dist: flake8 ; extra == 'dev'
33
- Requires-Dist: pytest ; extra == 'dev'
34
- Requires-Dist: pytest-flake8 ; extra == 'dev'
35
- Requires-Dist: pytest-pycodestyle ; extra == 'dev'
36
- Requires-Dist: pytest-cov ; extra == 'dev'
37
- Requires-Dist: py ; extra == 'dev'
32
+ Requires-Dist: flake8; extra == "dev"
33
+ Requires-Dist: pytest; extra == "dev"
34
+ Requires-Dist: pytest-flake8; extra == "dev"
35
+ Requires-Dist: pytest-pycodestyle; extra == "dev"
36
+ Requires-Dist: pytest-cov; extra == "dev"
37
+ Requires-Dist: py; extra == "dev"
38
+ Dynamic: author
39
+ Dynamic: author-email
40
+ Dynamic: description
41
+ Dynamic: description-content-type
42
+ Dynamic: home-page
43
+ Dynamic: license
44
+ Dynamic: provides-extra
45
+ Dynamic: requires-dist
46
+ Dynamic: requires-python
47
+ Dynamic: summary
38
48
 
39
49
  ![PyPI](https://img.shields.io/pypi/v/mpcontribs-client?style=flat-square)
40
50
  ![Libraries.io dependency status for latest release](https://img.shields.io/librariesio/release/pypi/mpcontribs-client?style=flat-square)
@@ -0,0 +1,6 @@
1
+ mpcontribs/client/__init__.py,sha256=0orUhfmCeQN9Qt6dIWl3kWhTye81zLIg1Kvb9EOhvys,96959
2
+ mpcontribs_client-5.10.0.dist-info/LICENSE,sha256=5tG0Niaqw2hnuyZZYkRXLSnfVrZA47COwduU_6caPLM,1074
3
+ mpcontribs_client-5.10.0.dist-info/METADATA,sha256=29GsT_gTk4wQk_bem_5bwUHkeWsGbPyqdKapniQ_VV4,2776
4
+ mpcontribs_client-5.10.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
5
+ mpcontribs_client-5.10.0.dist-info/top_level.txt,sha256=t8R5L_Dg9oDQMh2gyRFdZGnrzZsr7OjCBTrhTcmimC8,11
6
+ mpcontribs_client-5.10.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.2.0)
2
+ Generator: setuptools (75.8.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=K4OCUoMpwJvkAbJvM03-TPd5wzQi0RkBpjd8WJBwP7w,96983
2
- mpcontribs_client-5.9.0.dist-info/LICENSE,sha256=5tG0Niaqw2hnuyZZYkRXLSnfVrZA47COwduU_6caPLM,1074
3
- mpcontribs_client-5.9.0.dist-info/METADATA,sha256=5zIrQcDW0whyINa0Vnq8PnRIlHvd8tdvyDjPt05p7LE,2572
4
- mpcontribs_client-5.9.0.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
5
- mpcontribs_client-5.9.0.dist-info/top_level.txt,sha256=t8R5L_Dg9oDQMh2gyRFdZGnrzZsr7OjCBTrhTcmimC8,11
6
- mpcontribs_client-5.9.0.dist-info/RECORD,,