<filename>python/name2taxid.py
#!/usr/bin/env python3
from taxadb.names import SciName
import fileinput
names = SciName()
for line in fileinput.input():
    print(names.taxid(line.rstrip()))

<filename>python/name2taxid.py
#!/usr/bin/env python3
from taxadb.names import SciName
import fileinput
names = SciName()
for line in fileinput.input():
    print(names.taxid(line.rstrip()))

#!/usr/bin/env python3