Skip to content

Commit e83d06d

Browse files
committed
Stubs in a CLI suite.
1 parent 3d5f238 commit e83d06d

File tree

4 files changed

+26
-2
lines changed

4 files changed

+26
-2
lines changed

bin/textplot

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/usr/bin/env python
2+
3+
4+
import click
5+
6+
7+
@click.group()
8+
def textplot():
9+
pass
10+
11+
12+
@textplot.command()
13+
@click.argument('in_file', type=click.File('rt'))
14+
def generate(in_file):
15+
16+
"""
17+
Convert a text into a GML file.
18+
"""
19+
20+
click.echo('generate')
21+
22+
23+
if __name__ == '__main__':
24+
textplot()

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ nltk
77
networkx
88
clint
99
pytest
10+
click

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
'networkx',
2525
'clint',
2626
'pytest',
27+
'click',
2728
]
2829

2930
)

textplot/__init__.py

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11

22

3-
import textplot.utils
4-
53
from collections import OrderedDict
64
from textplot.text import Text
75
from textplot.matrix import Matrix

0 commit comments

Comments
 (0)