https://github.com/mahdinhc/atomic
CLI based molecule tool written in Go!
https://github.com/mahdinhc/atomic
atomic atomic-go chemical cli go golang molecules molecules-cli
Last synced: 4 months ago
JSON representation
CLI based molecule tool written in Go!
- Host: GitHub
- URL: https://github.com/mahdinhc/atomic
- Owner: mahdinhc
- Created: 2024-10-11T09:35:01.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-11T11:00:48.000Z (8 months ago)
- Last Synced: 2025-03-01T00:08:59.216Z (8 months ago)
- Topics: atomic, atomic-go, chemical, cli, go, golang, molecules, molecules-cli
- Language: Go
- Homepage:
- Size: 680 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ATOMIC
A command-line tool to parse chemical formulas, draw the periodic table, and display electron configurations.

## Features
- Parse chemical formulas and display relevant information, such as molecular mass, charge, and state.
- Draw the periodic table.
- Display electron configurations of the elements in the formula.## Usage
```bash
atomic [options]
```### Options
- `-pt` : Draw the periodic table with the elements involved in the provided formula.
- `-e` : Show electron configurations of the elements in the provided formula.### Examples
1. **Parse a formula** and show details:
```bash
atomic NaCl
```Output:
```
Molecule : NaCl
Simplify : NaCl
Name : Sodium Chloride
Mass : 58.443000
Charge : 0
```2. **Draw the periodic table** and show the electron configurations:
```bash
atomic -pt -e C7H5N3O7
```Output:
## Data
- Elements data is loaded from `data/elements.csv`.
- Molecules data is loaded from `data/molecules.csv`.## Requirements
- Go 1.16 or later
## Installation
1. Clone the repository:
```bash
git clone https://github.com/mahdin-hc/atomic.git
```2. Build the executable:
```bash
go build -o atomic.exe
```3. Run the tool:
```bash
atomic.exe -e -pt NaCl
```