sqlite3_arabic_tokenizer with custom sqlite3
Project description
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
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
File details
Details for the file sqlite3_arabic_tokenizer-0.0.1.tar.gz.
File metadata
- Download URL: sqlite3_arabic_tokenizer-0.0.1.tar.gz
- Upload date:
- Size: 2.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
503b602a79a1f416bd619476aa4c1b3f0a2f475a0113d63fda45aafaafa3ee11
|
|
| MD5 |
992c5cd1bae0e110c97b152b13732aaa
|
|
| BLAKE2b-256 |
82f7a1e222943b94f6a5d8a3504e6f7d97717ff62c85b50e23695a6b836734ea
|