Metadata-Version: 2.1
Name: pycodata
Version: 2.0.1
Summary: pycodata: CODATA constants for python.
Author-email: Milan Skocic <milan.skocic@icloud.com>
License: License :: OSI Approved :: MIT License
Project-URL: Documentation, https://milanskocic.github.io/codata/index.html
Project-URL: Source, https://github.com/MilanSkocic/codata
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE

# Introduction

`pycodata` is a library providing the latest codata constants (2022) and 
older values (2018, 2014 and 2010). 
The raw codata are taken from http://physics.nist.gov/constants.
The constants (values and uncertainties) are implemented as dictionnaries.

# Installation

In a terminal, enter:

```python
pip install pycodata
```

# Usage

The latest values (2022) do not have the year as a suffix in their name. Older values can be used and they feature the year as a suffix in their name.

The latest values are available at the top level and older values are available in dedicated modules.

```python
import pycodata

print("########## VERSION ##########")
print(f"version = {pycodata.__version__}")

print("########## constants ##########")
print(f"c =", pycodata.SPEED_OF_LIGHT_IN_VACUUM["value"])

print("########## UNCERTAINTY ##########")
print(f"u(c) = ", pycodata.SPEED_OF_LIGHT_IN_VACUUM["uncertainty"])

print("########## OLDER VALUES ##########")
print(f"Mu_2022 = ", pycodata.MOLAR_MASS_CONSTANT["value"])
print(f"Mu_2018 = ", pycodata.codata_constants_2018.MOLAR_MASS_CONSTANT_2018["value"])
print(f"Mu_2014 = ", pycodata.codata_constants_2014.MOLAR_MASS_CONSTANT_2014["value"])
print(f"Mu_2010 = ", pycodata.codata_constants_2010.MOLAR_MASS_CONSTANT_2010["value"])
```

# License

MIT
