pycrossword  0.4
Pure-Python implementation of a crossword puzzle generator and editor
Classes | Variables
pycross.dbapi Namespace Reference

Classes

class  HunspellDownloadSignals
 
class  HunspellDownloadTask
 
class  HunspellImport
 
class  HunspellImportSignals
 
class  HunspellImportTask
 
class  Sqlitedb
 SQLite database driver implementation wrapping the standard Python sqlite3 methods. More...
 

Variables

string NEWLINE = '\n'
 
 SQL_CREATE_TABLES = \
 SQL query to create default table structure. More...
 
 SQL_INSERT_POS = \
 SQL query to insert part of speech data. More...
 
 SQL_INSERT_WORD = \
 SQL query to insert words and part of speech data. More...
 
string SQL_CLEAR_WORDS = f"delete from {SQL_TABLES['words']['table']};"
 SQL query to clear words. More...
 
string SQL_COUNT_WORDS = f"select count(*) from {SQL_TABLES['words']['table']};"
 SQL query to count entries (words) More...
 
string SQL_GET_WORDS = f"select {SQL_TABLES['words']['table']}.{SQL_TABLES['words']['fid']}, " \
 SQL query to display all words. More...
 
string SQL_GET_POS = f"select * from {SQL_TABLES['pos']['table']};"
 SQL query to display all POS. More...
 
string HUNSPELL_REPO = 'https://raw.githubusercontent.com/wooorm/dictionaries/main'
 Hunspell dic repo URL. More...
 

Detailed Description

Low-level SQLite database driver implementation with a bunch of handy methods to create the default DB structure to use as a word source, import words from Hunspell open-source dictionaries, etc.

Variable Documentation

◆ HUNSPELL_REPO

string pycross.dbapi.HUNSPELL_REPO = 'https://raw.githubusercontent.com/wooorm/dictionaries/main'

Hunspell dic repo URL.

◆ NEWLINE

string pycross.dbapi.NEWLINE = '\n'

◆ SQL_CLEAR_WORDS

string pycross.dbapi.SQL_CLEAR_WORDS = f"delete from {SQL_TABLES['words']['table']};"

SQL query to clear words.

◆ SQL_COUNT_WORDS

string pycross.dbapi.SQL_COUNT_WORDS = f"select count(*) from {SQL_TABLES['words']['table']};"

SQL query to count entries (words)

◆ SQL_CREATE_TABLES

pycross.dbapi.SQL_CREATE_TABLES = \

SQL query to create default table structure.

◆ SQL_GET_POS

string pycross.dbapi.SQL_GET_POS = f"select * from {SQL_TABLES['pos']['table']};"

SQL query to display all POS.

◆ SQL_GET_WORDS

string pycross.dbapi.SQL_GET_WORDS = f"select {SQL_TABLES['words']['table']}.{SQL_TABLES['words']['fid']}, " \

SQL query to display all words.

◆ SQL_INSERT_POS

pycross.dbapi.SQL_INSERT_POS = \

SQL query to insert part of speech data.

◆ SQL_INSERT_WORD

pycross.dbapi.SQL_INSERT_WORD = \

SQL query to insert words and part of speech data.