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
```bash
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.
```python
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
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
```bash
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.
```python
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 Distribution
ety-0.1.0a1.tar.gz
(167.2 kB
view hashes)
Built Distribution
ety-0.1.0a1-py2.py3-none-any.whl
(178.6 kB
view hashes)
Close
Hashes for ety-0.1.0a1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15b2008e39637a68eb0d715870911a263eb93fc1ee731071f56ef684f836f11d |
|
MD5 | 7600b5e936be93fb165ddfd3d8b84ffc |
|
BLAKE2b-256 | 8fe2d6595f3e09fea1fb15d6b466b9251257f7691bc6e6532c1d0420e64535a3 |