@@ -18,6 +18,14 @@ A simple X11 molecular viewer.
1818- [ ` .xyz ` ] ( https://en.wikipedia.org/wiki/XYZ_file_format ) files
1919- [ extended ` .xyz ` ] ( https://github.com/libAtoms/extxyz ) files (currently the extra columns are ignored)
2020
21+ ## Python package (wrapper / API) available
22+
23+ See python package page
24+ [ here.] ( python/README.md )
25+
26+ Provides wrapper scripts with a simple installation and
27+ allows to open unsupported file formats with ` cclib ` .
28+
2129## Download [ ↑] ( #download )
2230```
2331wget https://github.com/briling/v/releases/download/v2.0/v.2.0 -O v
4048```
4149./v file [file2 ... fileN] [options]
4250```
51+ A filename ` - ` stands for the standard input.
52+
4353Show the reference:
4454```
4555./v
@@ -66,8 +76,10 @@ Show the reference:
6676| ` shell:b%lf,%lf ` | spheres radii in a.u. |
6777| ` shell:%lf,%lf ` | spheres radii in Å |
6878| ` center:%d ` | origin is geometric center (` 1 ` , default) / center of mass (` 2 ` ) / as is (` 0 ` ) |
69- | ` inertia:1 ` | rotate molecules wrt axis of inertia |
79+ | ` inertia:%d ` | if rotate molecules wrt axis of inertia ( ` 1 ` ) or not ( ` 0 ` , default) |
7080| ` gui:%d ` | normal (default ` 1 ` ) / headless (` 0 ` ) mode |
81+ | ` com:%s ` | command sequence for ` gui:0 ` |
82+ | ` exitcom:%s ` | command sequence to run on exit (same as for ` gui:0 ` ) |
7183
7284</details >
7385
@@ -116,12 +128,20 @@ One can also use the mouse to rotate the molecule and zoom in/out.
116128
117129<details open ><summary ><strong >Headless mode (in development)</strong ></summary >
118130
119- If run in the headless mode with ` gui:0 ` , the symbols from stdio are processed
131+ If run in the headless mode with ` gui:0 ` , the symbols from the standard input are processed
120132as if the corresponding keys were pressed in the normal mode.
121- Right now, only ` p ` , ` x ` , ` z ` , and ` . ` are available. For example,
133+ Right now, only ` p ` , ` x ` , ` z ` , and ` . ` are available.
134+ Command-line option ` com:%s ` overrides the standard input.
135+ These examples are equivalent:
122136```
123137> echo . | ./v mol/mol0001.xyz gui:0
124138D*h
139+
140+ > ./v mol/mol0001.xyz gui:0 com:.
141+ D*h
142+
143+ > cat mol/mol0001.xyz | ./v - gui:0 com:.
144+ D*h
125145```
126146
127147</details >
0 commit comments