Download and read Wiktionary data in JSON format, using Kaikki data dumps
Project description
kaikki_json
This is a package for downloading and reading data exported from Wiktionary by Kaikki.org. There is a simple API that lets you iterate over the JSON objects, and process them however you like.
Usage
Install
pip install kaikki_json
Quickstart
Download the data from Kaikki.org
python -m kaikki_json --download
Find and print the entry for the Spanish word 'hola'
>>> from kaikki_json import iter_items_in
>>> for item in iter_items_in('es'):
>>> if item['word'] == 'hola':
>>> print(item)
>>> break
Cache
kaikki_json caches the compressed data on disk. It's decompressed automatically. The total size used on the disk is about 2GB.
Display cache location (and other info)
python -m kaikki_json --info
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kaikki_json-0.1.1.tar.gz.
File metadata
- Download URL: kaikki_json-0.1.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64d43fecd78184d32a8276540df63fc2832a6ef5d24346750f1408ae676812ea
|
|
| MD5 |
eacb79ad770a1732cfbadc8ec23c8ac2
|
|
| BLAKE2b-256 |
0d415ea27384f50fead714d227887a807a83a369cd15b146505c15b565acc8bd
|
File details
Details for the file kaikki_json-0.1.1-py3-none-any.whl.
File metadata
- Download URL: kaikki_json-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8f948648b0597310d37eec0fe1d2a9f88299d1e29b3bb21ea8a177ce4a7e9cd
|
|
| MD5 |
50e8a3b5fe7bc7ff69dc48bbda087b17
|
|
| BLAKE2b-256 |
92ff28462b8b4eeea0c2ebf0235a2b940b5e6bee8707da910621f7e2e54555b0
|