Package: periodic-table-cli
periodic-table-cliAn interactivePeriodic Table of Elementsapp for the console!Why the console?  Because it's thecoolway.Also available forNodeJS.  ViewHomepage.Usage$ pip install periodic-table-cli
$ periodic-table-cli
$ periodic-table-cli [options]The config params are optional (see below).Note: Supports Python 3.8+.  Zero dependencies exceptwindows-cursesfor Windows.Interactive ControlsNavigation: UseUP/DOWN/LEFT/RIGHTarrows.Display Mode: UseSLASH(/) to toggle the display mode forwards.  UseBACKSLASH(\) to toggle the display mode in reverse.Search: UseUP/DOWNarrows to navigate results.  PressENTERto select.  PressLEFTto exit search.Quit: PressESCorCTRL+C.Add the--helpflag for more info.Note:Be sure to run in terminals that support 256 colors.Minimum required terminal screen dimensions: 156 columns x 46 rows.See scrollingfor more info.FeaturesBrowseUse arrow keys to navigate and browse across all 118 elements.  The selected element appears in gold on the Periodic Table on the left, and 22 data points for that element will display on the right.  Each element's family and electron configuration will appear in gold below the Periodic Table.Move the cursor directly below the Periodic Table to browse all 10 element families.  The elements in that family will be focused on the Periodic Table, and a description of that family will appear on the right.Move the cursor below the element families to browse all 4 electron configurations.  The elements with that electron configuration will be focused on the Periodic Table, and a description of that electron shell will appear on the right.SearchUse letters or numbers to query for an element, family, or electron configuration.  Queries are matched on element names, symbols, and atomic numbers, along with family names and electron configuration names.  Just start typing to enter search mode.  Press the Enter to select a search item, or the Left arrow to exit search mode.Display ModeUse the SLASH (/) key to toggle different display modes.  Use BACKSLASH (\) to toggle in reverse.  The following 20 display modes are supported:Element FamiliesDisplay 10 color-coded element families:Electron ConfigurationsDisplay 4 color-coded electron shells:Standard StateDisplay whether an element is a solid (white), liquid (red), or gas (blue).  Expected states appear as a darker color (gray is expected solid, dark blue is expected gas):Atomic MassDisplay a heat-map of atomic mass (increasing from blue to red):ProtonsDisplay a heat-map of the number of protons (increasing from blue to red):NeutronsDisplay a heat-map of the number of neutrons (increasing from blue to red):ElectronsDisplay a heat-map of the number of electrons (increasing from blue to red):Valence ElectronsDisplay a color-coded representation of the number of valence electrons:ValencyDisplay a color-coded representation of valency:Atomic RadiusDisplay a heat-map of atomic radius (increasing from blue to red):DensityDisplay a heat-map of density (increasing from blue to red):ElectronegativityDisplay a heat-map of electronegativity (increasing from blue to red):Ionization EnergyDisplay a heat-map of ionization energy (increasing from blue to red):Electron AffinityDisplay a heat-map of electron affinity (increasing from blue to red):Melting PointDisplay a heat-map of melting point (increasing from blue to red):Boiling PointDisplay a heat-map of boiling point (increasing from blue to red):Specific HeatDisplay a heat-map of specific heat (increasing from blue to red):RadioactivityDisplay which elements are radioactive (red) and stable (green):OccurrenceDisplay which elements have a natural occurrence (blue), rare occurrence (orange), or artificial occurrence (yellow):YearDisplay a heat-map of the year each element was discovered (increasing from blue to red).  Ancient elements appear in white:OptionsData ModeThe--mode=dataparam displays a brief list of all the elements, including atomic number, element symbol, and element name:$ periodic-table-cli --mode=dataVerboseAdd the optional--verboseflag (or shorthand-v) to display a detailed list of all elements with up to 27 data columns (limited by screen size):$ periodic-table-cli --mode=data --verboseSpecific ElementsSpecify an element to view data for that element.  Elements can be specified using the--atomic-number=<number>,--symbol=<symbol>, or--name=<name>params:$ periodic-table-cli --mode=data --atomic-number=<number>
$ periodic-table-cli --mode=data --symbol=<symbol>
$ periodic-table-cli --mode=data --name=<name>Chart ModeThe--mode=chartparam prints a non-interactive Periodic Table of Elements:$ periodic-table-cli --mode=chartMinimum terminal width: 113 charactersSmallAdd the optional--smallflag (or shorthand-s) to print a smaller non-interactive version of the Periodic Table of Elements:$ periodic-table-cli --mode=chart --smallMinimum terminal width: 76 charactersSpecific ElementsSpecify an element to view that element on the Periodic Table of Element.  Elements can be specified using the--atomic-number=<number>,--symbol=<symbol>, or--name=<name>params:$ periodic-table-cli --mode=chart --atomic-number=<number>
$ periodic-table-cli --mode=chart --symbol=<symbol>
$ periodic-table-cli --mode=chart --name=<name>App Mode (default)The--mode=appparam runs the app in interactive mode (default).$ periodic-table-cli --mode=appSpecific ElementsSpecify an element to launch the app on that element.  Elements can be specified using the--atomic-number=<number>,--symbol=<symbol>, or--name=<name>params:$ periodic-table-cli --mode=app --atomic-number=<number>
$ periodic-table-cli --mode=app --symbol=<symbol>
$ periodic-table-cli --mode=app --name=<name>ScrollingThe minimum required terminal screen dimensions are 156 columns x 46 rows.  When using a smaller screen, some components may be cut off.  To fix this, either make the screen bigger or use scrolling to pan across the screen:UseCOMMA(,) to scroll up.UsePERIOD(.) to scroll down.UseLEFT CARROT(<) to scroll left.UseRIGHT CARROT(>) to scroll right.Data SourcesData used in the app is stored in an easy to editdata file.  The data is mostly imported fromPubChem.Last Updated February 2024LicenseMIT©Spiro Metaxas