pycrossword  0.4
Pure-Python implementation of a crossword puzzle generator and editor
Classes | Namespaces | Variables
dbapi.py File Reference

Classes

class  pycross.dbapi.Sqlitedb
 SQLite database driver implementation wrapping the standard Python sqlite3 methods. More...
 
class  pycross.dbapi.HunspellDownloadSignals
 Container for Qt signals used by HunspellDownloadTask. More...
 
class  pycross.dbapi.HunspellDownloadTask
 A single download task to download one Hunspell dictionary from the remote repo and store it as a DIC file. More...
 
class  pycross.dbapi.HunspellImportSignals
 Container for Qt signals used by HunspellImportTask. More...
 
class  pycross.dbapi.HunspellImportTask
 A single import task to import words from a DIC file (downloaded from the Hunspell repo) to an SQLite database *.db file. More...
 
class  pycross.dbapi.HunspellImport
 Main interface to handle downloads and imports of Hunspell dictionaries as SQLite databases. More...
 

Namespaces

 pycross.dbapi
 Implements classes to work with SQLite databases created from Hunspell dictionaries.
 

Variables

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