Metadata-Version: 2.4
Name: e2s
Version: 1.0.1
Summary: Convert eijiro text data into sqlite3
Project-URL: repository, https://github.com/eggplants/eijiro-to-sqlite
Author-email: eggplants <w10776e8w@yahoo.co.jp>
License-Expression: MIT
License-File: LICENSE
Keywords: dictionary,eijiro,sqlite
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Typing :: Typed
Requires-Python: <4,>=3.10
Description-Content-Type: text/markdown

# eijiro-to-sqlite

[![PyPI](
  <https://img.shields.io/pypi/v/e2s?color=blue>
  )](
  <https://pypi.org/project/e2s/>
) [![Release Package](
  <https://github.com/eggplants/eijiro-to-sqlite/actions/workflows/release.yml/badge.svg>
  )](
  <https://github.com/eggplants/eijiro-to-sqlite/actions/workflows/release.yml>
) [![CI](
  <https://github.com/eggplants/eijiro-to-sqlite/actions/workflows/ci.yml/badge.svg>
  )](
  <https://github.com/eggplants/eijiro-to-sqlite/actions/workflows/ci.yml>
)

- [英辞郎](https://booth.pm/ja/items/777563) -> sqlite3
  - [Sample data](http://www.eijiro.jp/eijiro-sample-1448.zip): 0 JPY
  - [英辞郎 Ver.144.8](https://booth.pm/ja/items/777563): 495 JPY

## Screenshot

![img](https://user-images.githubusercontent.com/42153744/150694352-5f0af040-a79b-4e12-bd21-40ed67068a57.png)


## Install

```bash
pip install e2s
```

## Run

```bash
wget 'https://www.eijiro.jp/eijiro-sample-1448.zip' # sample data
unzip eijiro-sample-1448.zip
e2s -i EIJIRO-SAMPLE-1448.TXT # `eijiro.db` will be created
```

## Help

```shellsession
$ e2s -h
usage: e2s [-h] [-i TXT] [-o DB] [-j JOINER] [-O] [-V]

Convert eijiro(英辞郎) text data into sqlite3

optional arguments:
  -h, --help                  show this help message and exit
  -i TXT, --input TXT         Source file (default: EIJIRO-1448.TXT)
  -o DB, --out DB             Output DB file (default: eijiro.db)
  -j JOINER, --joiner JOINER  Joiner for descriptions (default: ^^^)
  -O, --overwrite             Overwrite db (default: False)
  -V, --version               show program's version number and exit
```

## Schema

```sql
CREATE TABLE word (
    id integer primary key,
    word text,
    meaning text,
    descriptions text
)
```
