3 releases
0.1.2 | Nov 20, 2022 |
---|---|
0.1.1 | Nov 20, 2022 |
0.1.0 | Nov 20, 2022 |
#47 in #chemistry
15KB
176 lines
Periodic Table
This is a simple Rust CLI tool to display information about the elements of the periodic table.
Installation
You can install the tool by running the following command:
cargo install periodicelements
Sample Usage
Syntax
periodicelements <element full name>
Example
periodicelements Oxygen
Output
┌──────────────────────────┬───────────────────┐
│ Property │ Value │
├──────────────────────────┼───────────────────┤
│ Atomic Number │ 8 │
│ Symbol │ O │
│ Atomic Mass │ 15.999 │
│ Neutron Count │ 8 │
│ Proton Count │ 8 │
│ Electron Count │ 8 │
│ Period │ 2 │
│ Group │ 16 │
│ Phase │ gas │
│ Radioactive │ None │
│ Natural │ yes │
│ Metal │ None │
│ Nonmetal │ yes │
│ Metalloid │ None │
│ Element Type │ nonmetal │
│ Atomic Radius │ None │
│ Electronegativity │ 3.44 │
│ First Ionization │ 13.6181 │
│ Density │ 0.00143 │
│ Melting Point │ 50.5 │
│ Boiling Point │ 90.2 │
│ Number of Isotopes │ 8 │
│ Discoverer │ Priestley/Scheele │
│ Year │ 1774 │
│ Specific Heat │ 0.918 │
│ Number of Shells │ 2 │
│ Number of Valence │ 6 │
│ Electronic Configuration │ [He] 2s2 2p4 │
└──────────────────────────┴───────────────────┘
Dependencies
~6.5MB
~43K SLoC