sqlite3_arabic_tokenizer
This package provides an SQLite3 Python wrapper bundled
with sqlite3_arabic_tokenizer. It's a drop-in replacement
for the standard library's sqlite3 module as the std one doesn't
support loading extension.
pip install sqlite3_arabic_tokenizer
import sqlite3_arabic_tokenizer
# load the tokenizer
sqlite3_arabic_tokenizer.load()
# has the same API as the default `sqlite3` module
conn = sqlite3_arabic_tokenizer.connect(":memory:")
conn.execute("create table quran(sura, ayah, text)")
# and comes with the `sqlite3_arabic_tokenizer`
cur = conn.execute("create table quran(sura, ayah, text, tokenize='arabic_tokenizer')")
print(cur.fetchone())
conn.close()
Installation
A binary package (wheel) is available for the following operating systems:
- Windows (64-bit)
- Linux (64-bit)
- macOS (both Intel and Apple processors)
pip install sqlite3_arabic_tokenizer
Building from source
For development purposes only.
Prepare source files:
make prepare-src
make download-sqlite
make download-sqlite3_arabic_tokenizer
Build and test the package:
make clean
python setup.py build_ext -i
python -m test
python -m pip wheel . -w dist
Credits
Based on the pysqlite3 project. Available under the Zlib license. Packaging help from sqlean.py
Metadata
Release files for sqlite3-arabic-tokenizer 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sqlite3_arabic_tokenizer-0.0.1.tar.gz | 2.8 MB | Details |
Release files / sqlite3_arabic_tokenizer-0.0.1.tar.gz
| Download URL | sqlite3_arabic_tokenizer-0.0.1.tar.gz |
|---|---|
| Size | 2.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
503b602a79a1f416bd619476aa4c1b3f0a2f475a0113d63fda45aafaafa3ee11
|
|
BLAKE2b-256 checksum How to use checksums |
82f7a1e222943b94f6a5d8a3504e6f7d97717ff62c85b50e23695a6b836734ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.2
|