@@ -13,20 +13,33 @@ To generate a large number of new names, we apply a combinatorial approach start
1313
1414![ Gan flowchart] ( docs/gan_concept_wiki.png )
1515
16- ## Dependencies
16+ ## Installation
1717
18- The scripts in this repository require Python (at least 3.6) and these modules:
19- * itertools (ships with Python)
20- * pandas (>1.0)
21- * xlrd (1.2.0)
18+ GAN is available on PyPI as ` gan-nomenclature ` and installs with Python 3.8+:
2219
23- To run the scripts of this repository, we suggest to create a conda environment as follows:
20+ ```
21+ pip install gan-nomenclature
22+ ```
23+
24+ This command installs the library together with its dependencies (` pandas ` , ` openpyxl ` , ...).
25+
26+ To work in an isolated environment, you can create one with conda and then install the package from PyPI:
2427```
2528conda create -c conda-forge -n gan python=3.8 pandas pip ipython
2629conda activate gan
27- pip install xlrd==1.2.0
30+ pip install gan-nomenclature
2831```
2932
33+ ## Command-line tools
34+
35+ Installing the package provides a small suite of CLI helpers:
36+
37+ - ` gan-genus ` : generate JSON/HTML/LaTeX outputs from two or three curated root tables.
38+ - ` gan-init ` : scaffold Excel templates (optionally populated with example rows) for use with ` gan-genus ` .
39+ - ` xls2tsv ` : convert each worksheet of a workbook into a separate TSV file.
40+
41+ Each command offers ` --help ` for additional options and usage examples.
42+
3043## Genera generator
3144
3245A set of two (or three) Excel tables formatted as shown below is used to generate the list of combinations in JSON, HTML and LaTeX format.
@@ -36,7 +49,7 @@ A set of two (or three) Excel tables formatted as shown below is used to generat
3649Synopsis:
3750
3851```
39- usage: gan-genus.py [-h] -1 FIRST -2 SECOND [-3 THIRD] -o OUTDIR [-p PREFIX] [-c CONNECTOR] [-v]
52+ usage: gan-genus [-h] -1 FIRST -2 SECOND [-3 THIRD] -o OUTDIR [-p PREFIX] [-c CONNECTOR] [-v]
4053```
4154
4255For full usage and installation instructions, please [ check the documentation] ( docs/documentation.md ) .
@@ -53,4 +66,3 @@ Using three small files in the _input\_test_ directory (8, 11 and 8 words, respe
5366
5467"* The great automatic nomenclaturer* " is a reference to a short story ("_ The Great Automatic Grammatizator_ ")
5568written by the British author Roald Dahl [[ link] ( https://en.wikipedia.org/wiki/The_Great_Automatic_Grammatizator )] .
56-
0 commit comments