Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexeytal/pt.sh
cli periodic table with search and many properties
https://github.com/alexeytal/pt.sh
cli periodic-table
Last synced: about 2 months ago
JSON representation
cli periodic table with search and many properties
- Host: GitHub
- URL: https://github.com/alexeytal/pt.sh
- Owner: alexeytal
- License: mit
- Created: 2022-08-25T21:07:13.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-11T20:23:32.000Z (almost 2 years ago)
- Last Synced: 2024-01-27T17:02:49.878Z (5 months ago)
- Topics: cli, periodic-table
- Language: Shell
- Homepage:
- Size: 19.5 KB
- Stars: 28
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- cli-apps - pt.sh - CLI periodic table with search and many properties. (<a name="science"></a>Science)
- awesome-cli-apps - pt.sh - CLI periodic table with search and many properties. (<a name="science"></a>Science)
README
# pt.sh - cli periodic table
[![asciicast](https://asciinema.org/a/517531.svg)](https://asciinema.org/a/517531)
# Features
- searchable
- info cards with lots of properties for every element
- info cards are stored in csv format and can be easily extended by adding more columns# Installation
Copy the data file to $XDG_DATA_HOME/pt.sh
```
mkdir -p $XDG_DATA_HOME/pt.sh && cp pt.csv $XDG_DATA_HOME/pt.sh
```# Usage
```
Usage: pt.sh [option] [element]
Print the periodic table of element.Positional arguments:
element [optional] One or multiple elements to be highlightedOptions:
-h, --help print help
-s, --shell highlight s,p,d, and f elements
-g, --group group elements of the periodic table
-c, --card print detailed info for an elementThe file with the data for the info cards is stored in `echo $XDG_DATA_HOME/pt/table.csv`.
A custom path can be set in the PT_PATH variable.
```