pycodata: CODATA constants for python.
Project description
Introduction
Python wrapper around the
Fortran codata library.
The Fortran library does not need to be installed, the python wrapper embeds all needed fortran dependencies
for Windows and MacOS.
On linux, you might have to install libgfortran
if it is not distributed with your linux distribution.
Installation
In a terminal, enter:
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.
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.constants_2018.MOLAR_MASS_CONSTANT_2018["value"])
print(f"Mu_2014 = ", pycodata.constants_2014.MOLAR_MASS_CONSTANT_2014["value"])
print(f"Mu_2010 = ", pycodata.constants_2010.MOLAR_MASS_CONSTANT_2010["value"])
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pycodata-1.2.0.tar.gz
(242.3 kB
view hashes)
Built Distributions
Close
Hashes for pycodata-1.2.0-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f101fd5318a1041f097c81b2313d6a47b696ff09599fe73cb364bc7b50dd9ed |
|
MD5 | 07206eccef270e91ba76e7ebe1eb7dab |
|
BLAKE2b-256 | bae514ec540aac35f4742cd5194a079145fe381a9fe6b5c7142d3d88dc834635 |
Close
Hashes for pycodata-1.2.0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae7db30205486757214df2532bb93344ecc4c70ba43e96665c4625a39ff3a68a |
|
MD5 | 4e43a269165f895ca84f4084fd2281de |
|
BLAKE2b-256 | dcecb5f5d8ee84b0f0f135f6bbf81417770921d5fdeff9d7fdbc913735c2befe |
Close
Hashes for pycodata-1.2.0-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53b6dfa5f00b0f87645347fbeec227a143e2350d6cddd4931e8d701fd8990610 |
|
MD5 | 85df71b38e57acaffa034f96e76b1c67 |
|
BLAKE2b-256 | 48f4f353f19534c803090b3c278a91897247b2881e0d8c53b00f1b599a1f422b |
Close
Hashes for pycodata-1.2.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21ef19c2af5e626254219c8e22f97b864fedb4922ddbebb904badbafff0a0c4c |
|
MD5 | 1d093d8d2c01eb9c7dceec431c44a465 |
|
BLAKE2b-256 | ae4e009791b58d2330644a04fcfde2056845f63677d5d29e9ea700f9b1f8b373 |
Close
Hashes for pycodata-1.2.0-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4992c839d27e5cc1b09e859d4121588a7066e12735b9ab155b6da8c20b012d64 |
|
MD5 | 8ca2f7a2441269f7c7357d6cd394e51a |
|
BLAKE2b-256 | 7d34a96bf3f3e45bb46d9b4d2b81d062638bdea438a34d6cf9090aacd4a7b1c7 |
Close
Hashes for pycodata-1.2.0-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6c9ea0282b38891f7f6de17b5a5782998aa5429506872359092394e6dd7ab62 |
|
MD5 | 2548104fb1a484df938d1a636bd67538 |
|
BLAKE2b-256 | 09a3f2c5132a09025ed4abc5041e19d5cf3990f5504531ca9f4095eb0f977540 |
Close
Hashes for pycodata-1.2.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dec7ca4fa05d20b75f4f338f117a30b98c8fbf9cb43bb42d1c1fd1ea40ac7cde |
|
MD5 | 236e7bc004e52ff1813a18555e065a6b |
|
BLAKE2b-256 | a3831db87a2c48accaa80adbd873332836007df891fb0b2111d0195e3ae06c98 |
Close
Hashes for pycodata-1.2.0-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56771650fa01d13c1e388bca4dc2caf84d0c09fac287cb2da58aa546f0ad6c97 |
|
MD5 | 9bd2888cd19614bc39091eed578310be |
|
BLAKE2b-256 | cdd20ab164b9fa9ac8d4277193f45824ec2ac1ec6252157cf414d0c986e13cc9 |
Close
Hashes for pycodata-1.2.0-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57c2e11911eceaa9193a74d17404569bb3b7d5b77f6d909f0cd805dfef80ab52 |
|
MD5 | 423e2e70833ca3c6bfb940d1acd676d8 |
|
BLAKE2b-256 | 752640e1fb57eb3ba8afaf2df4aeae6a01d123a4ec3e3f861247422a8e20f398 |
Close
Hashes for pycodata-1.2.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c40711d12e5ce36b579a7be9b4679d7c7aba935a235871fa96da349cd346c30 |
|
MD5 | 33a029909b23638697139e85354cdaf8 |
|
BLAKE2b-256 | 708427f26062d87b7948998b29f14584170c2aa42ee43b0844ac65d14fe06855 |
Close
Hashes for pycodata-1.2.0-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03aad3ca7864bec757cc1e1e85ef05ca70d097817e11a1d51984fb617e4781c3 |
|
MD5 | 3acb952acde43f8b85b01b3a1cee9046 |
|
BLAKE2b-256 | c90f12ddc7caa3899ccc54d641ab10cb6d404d6e5a2495759b6fc13f843527fc |
Close
Hashes for pycodata-1.2.0-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 825ec372e85685c2c33d1175f38bb0858f9866365f456897dd10b6350238e471 |
|
MD5 | 57ab90b1736866f00602f8630eea091f |
|
BLAKE2b-256 | 61bce1ccd923ff7eac31fc146d66315791620a4bdbc1f5436b68bdfcc7b5781a |
Close
Hashes for pycodata-1.2.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8b8a02bd1823fc830172bbd8fa50f357e887defcb5e22b297e5923bbe946cab |
|
MD5 | 5a9c2cbcee295d088c5b8946c2eee936 |
|
BLAKE2b-256 | d93c61a2858effd0fdc99923fb6af5b1b3e3b77735cc8e10b3f9963e90064b3d |
Close
Hashes for pycodata-1.2.0-cp38-cp38-manylinux_2_34_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca9cbb9809588d556d0a8b4081a1ad7e27c316adb731871b30b7e635cbbd19e6 |
|
MD5 | 9dac2f15abb31f50959a3aaf917f24a2 |
|
BLAKE2b-256 | b52fdd98d79ba650718977049a3d15fdf575a2518c9bcb793b160745e81c5b84 |
Close
Hashes for pycodata-1.2.0-cp38-cp38-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4449779918d877373f32f23658233b142afbe13d7ec68174a9f03fe8f820f77 |
|
MD5 | 7a97622e085621df26b3253cb90edfaf |
|
BLAKE2b-256 | 87f7943dd49c7a73411eb56af8ab935f682fcaff81e4f9ed2ebd032b3fd17e66 |