find the etymological origins of a word
Project description
ety-python
Python module to find the etymological origins of a word
Note: this module is under construction and doesn't yet have a large enough dataset to be useful
Install
pipenv shell
python setup.py install
Usage
Module
>>> import ety
>>> ety.origins("potato")
['Spanish', 'Taino']
>>> ety.origins("abandon")
['Middle English', 'Middle French', 'Old French']
CLI
After installing, a command-line tool is also available
Usage:
$ ety <word>
Example:
$ ety potato
Spanish, Taino
How it works
(for reference)
In setup.py
, the following few lines tell setuptools
to set up a cli script called 'ety
' that runs the cli
method from the ety
module.
entry_points={
'console_scripts': [
'ety=ety:cli',
],
},
The cli
method reads in the word as an argument. If no word is specified, the usage instructions and example are displayed
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
ety-0.0.0-py2.7.egg
(176.9 kB
view hashes)