Skip to main content

Convert eijiro text data into sqlite3

Project description

eijiro-to-sqlite

PyPI version Maintainability

Style Check Release Package black

Screenshot

img

Install

pip install e2s

Run

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

$ 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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

e2s-0.4.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

e2s-0.4-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file e2s-0.4.tar.gz.

File metadata

  • Download URL: e2s-0.4.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2

File hashes

Hashes for e2s-0.4.tar.gz
Algorithm Hash digest
SHA256 2ae9476c023e05c2ab3992a74c4c0e53e3ff6879f195fba9d27dcf4d0e78c725
MD5 af244c9cdc08e72e73868b19980af864
BLAKE2b-256 311fbd3796cfdf34584caa751e6bdbd058d67e5c31b2e5890251529809da549b

See more details on using hashes here.

File details

Details for the file e2s-0.4-py3-none-any.whl.

File metadata

  • Download URL: e2s-0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2

File hashes

Hashes for e2s-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0b2f07ac21d416459fd4d62369e2acdfe79a4959005ddc4152ebade74f649710
MD5 13e2c52202bc94cf3867320d2eccc8e0
BLAKE2b-256 e56be43dfa7d82aa28cb835deb421cd954177f8399f32af7618396f6a8c5eb02

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page