Skip to main content

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


Download files

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

Source Distribution

sqlite3_arabic_tokenizer-0.0.1.tar.gz (2.8 MB view details)

Uploaded Source

File details

Details for the file sqlite3_arabic_tokenizer-0.0.1.tar.gz.

File metadata

File hashes

Hashes for sqlite3_arabic_tokenizer-0.0.1.tar.gz
Algorithm Hash digest
SHA256 503b602a79a1f416bd619476aa4c1b3f0a2f475a0113d63fda45aafaafa3ee11
MD5 992c5cd1bae0e110c97b152b13732aaa
BLAKE2b-256 82f7a1e222943b94f6a5d8a3504e6f7d97717ff62c85b50e23695a6b836734ea

See more details on using hashes here.

Supported by

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