asnimansari / periodictable

Rust CLI tool to get periodic table element info

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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      │
└──────────────────────────┴───────────────────┘

About

Rust CLI tool to get periodic table element info

License:MIT License


Languages

Language:Rust 100.0%