Skip to main content

npm version PyPI version License: Apache

Periodic Table

Data about chemical elements arranged in JSON format. The module also contains modules for accessing data in both Python and JavaScript/TypeScript.

1. Installation

1.1. JavaScript

The package can be installed from NPM as follow:

npm install @mat3ra/periodic-table

1.2. Python

pip install mat3ra-periodic-table

2. Usage

2.1. JavaScript

import {PERIODIC_TABLE, ChemicalElement} from "@mat3ra/periodic-table";

console.log(PERIODIC_TABLE.H);

const li = new ChemicalElement("Li");
console.log(li.atomicRadiusIn("bohr"));

2.2. Python

from mat3ra.periodic_table import PERIODIC_TABLE
from mat3ra.periodic_table.bonds import ELEMENT_BONDS
from mat3ra.periodic_table.colors import ELEMENT_COLORS

assert PERIODIC_TABLE["H"]["name"] == "Hydrogen"
assert PERIODIC_TABLE["H"]["atomic_radius_pm"] == 25

bond = next(b for b in ELEMENT_BONDS if b["elements"] == ["H", "O"])
assert bond["energy"]["value"] == 4.75721615
assert bond["energy"]["units"] == "eV"
assert bond["length"]["value"] == 0.96
assert bond["length"]["units"] == "angstrom"

assert ELEMENT_COLORS["H"] == "#FFFFFF"  # white

3. Atomic Properties

  • name: element name
  • symbol: element symbol
  • atomic_number: atomic number
  • atomic_mass: atomic mass in amu
  • atomic_radius_pm: empirical atomic radius in pm by Slater (doi: 10.1063/1.1725697)
  • covalent_radius_pm: covalent radius "2008 values" (doi: 10.1039/b801115j)
  • van_der_Waal_radius_pm: van der Waals radius (doi: 10.1021/jp8111556, 10.1021/j100785a001)

4. Notes

  • Colors are in CPK convention

5. Contributions

This repository is an open-source work-in-progress and we welcome contributions.

6. ToDos

  • Add pre-commit hook to run python build_modules.py before commit

7. Links

  1. Periodic table original source: GPeriodic, Open source Linux software: link

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mat3ra_periodic_table-2026.2.6.post0.tar.gz (116.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file mat3ra_periodic_table-2026.2.6.post0.tar.gz.

File metadata

  • Download URL: mat3ra_periodic_table-2026.2.6.post0.tar.gz
  • Upload date:
  • Size: 116.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/8.7.1 pkginfo/1.12.1.2 requests/2.32.5 requests-toolbelt/1.0.0 tqdm/4.67.3 CPython/3.14.2

File hashes

Hashes for mat3ra_periodic_table-2026.2.6.post0.tar.gz
Algorithm Hash digest
SHA256 f306b1327e46a26faee4140d2f4d870db00e21706772f90de83ee823a62bb843
MD5 a56f79a1ba293f2791c50db86c390e1b
BLAKE2b-256 92e08930de10f7d927afc1e4258aae9f7305de4212598d26d546fa18b35de008

See more details on using hashes here.

File details

Details for the file mat3ra_periodic_table-2026.2.6.post0-py3-none-any.whl.

File metadata

  • Download URL: mat3ra_periodic_table-2026.2.6.post0-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/8.7.1 pkginfo/1.12.1.2 requests/2.32.5 requests-toolbelt/1.0.0 tqdm/4.67.3 CPython/3.14.2

File hashes

Hashes for mat3ra_periodic_table-2026.2.6.post0-py3-none-any.whl
Algorithm Hash digest
SHA256 9d0bb13bb1be8f7832318ae94f9a4d1a46075036bfd10a327782c4ecaecb7b12
MD5 998a3fb6f5f00f604c9608f45358d50b
BLAKE2b-256 639510e51c89eff7c1076ea004046bc338674b831264639d64b8af2437ca4d12

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2026.2.6.post0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page