Module h.lib
Part of hypy
Put a Pythonic face on estraiernative
| Class | FlushFailed | Could not remove the specified doc from the database. |
| Class | EditFailed | Could not edit the specified doc in the database |
| Class | PutFailed | Could not add the specified doc to the database. |
| Class | OpenFailed | Could not open the database with the specified mode. |
| Class | CloseFailed | Could not close the database. |
| Function | enforceUnicode | Force s to be a unicode object or None; return a byte string |
| Function | unicodeToByte | Test each of the argNames to see whether they are unicode text objects. |
| Class | HCondition | A search condition. |
| Class | HDatabase | A more pythonic interface to estraier's database |
| Class | HResults | List wrapper for results of the search. |
| Class | HDocument | Dict-like interface to a document |
| Class | HHit | A hit returned by a search. |
def
enforceUnicode(s, argName, exceptionClass, encoding='utf8'):
Force s to be a unicode object or None; return a byte string
def
unicodeToByte(argSpecs, exceptionClass):
Test each of the argNames to see whether they are unicode text objects. If they are not, raise exceptionClass