Skip to content

Commit 4acf559

Browse files
committed
refactor
1 parent 4d0e1ed commit 4acf559

File tree

13 files changed

+22
-116
lines changed

13 files changed

+22
-116
lines changed

.idea/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.idea/gan.iml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.idea/inspectionProfiles/profiles_settings.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.idea/misc.xml

Lines changed: 0 additions & 4 deletions
This file was deleted.

.idea/modules.xml

Lines changed: 0 additions & 8 deletions
This file was deleted.

.idea/vcs.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

README.md

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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
```
2528
conda create -c conda-forge -n gan python=3.8 pandas pip ipython
2629
conda 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

3245
A 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
3649
Synopsis:
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

4255
For 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_")
5568
written by the British author Roald Dahl [[link](https://en.wikipedia.org/wiki/The_Great_Automatic_Grammatizator)].
56-

docs/documentation.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@ To install the required dependencies, an option is to use the Miniconda package
1010
Commands:
1111

1212
```bash
13-
# Create the environment (run it once)
14-
conda env create -f environment.yml
15-
16-
# Activate the environment to use the scripts
17-
conda activate gan
13+
pip install nomenclator
1814
```
1915

2016
## Usage

test/all.sh

Lines changed: 0 additions & 35 deletions
This file was deleted.

test/make_suppl.sh

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)