Periodic table word thinger. In Python.
This is a toy to display the periodic table of the elements, or information about a specific element.
- Display the standard layout (or wide version) of the Periodic Table of the Elements, with or without grid markings, in mono or in colour.
- Render a word or phrase using element symbols
- Provide alternate solutions for rendering a word using only element symbols
The table rendered in colour, with grid, produced with periodic.py -tcg
A selection of words, produced with periodic.py -cp "chocolate bacon counterespionage" --width=100
usage: periodic.py [-h] [-i ELEMENT] [-w WORD] [-v | -p PHRASE] [-g] [-t] [-l {standard,standard32}] [-c] [--width WIDTH]
Periodic table word confabulator
optional arguments:
-h, --help show this help message and exit
-i ELEMENT, --info ELEMENT
show more info about a particular element
-w WORD, --word WORD a word to render
-v, --variations display all variations, rather than just the best match.
-p PHRASE, --phrase PHRASE
a phrase to render
-g, --grid show the grid
-t, --table display the entire periodic table
-l {standard,standard32}, --layout {standard,standard32}
specify the table layout to render
-c, --color display each element using its color
--width WIDTH number of character columns to display on one line
pip install -r requirements.txt
- Python 3
- colored
Element name information was cribbed from Wikipedia.