|
| 1 | +:mod:`pypes.utils` --- Utilities |
| 2 | +================================ |
| 3 | + |
| 4 | +.. module:: pypes.utils |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | +:mod:`pypes.utlis.globals` --- Globals |
| 9 | +-------------------------------------- |
| 10 | + |
| 11 | +.. module:: pypes.utils.globals |
| 12 | + |
| 13 | + |
| 14 | +.. function:: get_insttok() |
| 15 | + |
| 16 | +.. function:: get_guid() |
| 17 | + |
| 18 | +.. function:: get_runningno() |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | +:mod:`pypes.utils.itembank` --- Item Bank |
| 23 | +----------------------------------------- |
| 24 | + |
| 25 | +.. module:: pypes.utils.itembank |
| 26 | + |
| 27 | + |
| 28 | +.. class:: RecordManager( (tbl,id) ) |
| 29 | + |
| 30 | + .. method:: sync() |
| 31 | + |
| 32 | + .. attribute:: id |
| 33 | + .. attribute:: length |
| 34 | + |
| 35 | + .. method:: get_ctx_str() |
| 36 | + .. method:: set_ctx_str() |
| 37 | + |
| 38 | + .. method:: reset( field ) |
| 39 | + .. method:: append_to( field, val ) |
| 40 | + .. method:: fetch_first( field ) |
| 41 | + .. method:: fetch_all( field ) |
| 42 | + |
| 43 | + .. method:: set( field, val ) |
| 44 | + .. method:: get( field ) |
| 45 | + |
| 46 | + |
| 47 | +.. class:: TableManager( (dbdirname,tblfilename) ) |
| 48 | + |
| 49 | + .. method:: sync() |
| 50 | + |
| 51 | + .. attribute:: max_id |
| 52 | + .. method:: has_id( id ) |
| 53 | + |
| 54 | + .. method:: record_by_id( id ) |
| 55 | + |
| 56 | + .. method:: create_record( [id] ) |
| 57 | + |
| 58 | + .. method:: id_by_ctx_str( ctx_str ) |
| 59 | + |
| 60 | + .. method:: add_ctx_str( ctx_str ) |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | +:mod:`pypes.utils.logging_` --- Extensions to Python's Logging Framework |
| 65 | +------------------------------------------------------------------------ |
| 66 | + |
| 67 | +.. module:: pypes.utils.logging_ |
| 68 | + |
| 69 | + |
| 70 | +.. function:: log_attach_stderr_logger( loggername, level ) |
| 71 | +.. function:: log_attach_file_logger( loggername, level, logdir, prefix ) |
| 72 | + |
| 73 | +.. function:: log_critical( sourceid, msg ) |
| 74 | +.. function:: log_error( sourceid, msg ) |
| 75 | +.. function:: log_warn( sourceid, msg ) |
| 76 | +.. function:: log_info( sourceid, msg ) |
| 77 | +.. function:: log_debug_coarse( sourceid, msg ) |
| 78 | +.. function:: log_debug( sourceid, msg ) |
| 79 | + |
| 80 | +.. function:: log( sourceid, level, msg ) |
| 81 | + |
| 82 | +.. function:: get_logger( sourceid ) |
| 83 | + |
| 84 | +.. function:: print_dot() |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | +:mod:`pypes.utils.os_` --- Extension to Python's Miscellaneous Operating System Interfaces |
| 89 | +------------------------------------------------------------------------------------------ |
| 90 | + |
| 91 | +.. module:: pypes.utils.os_ |
| 92 | + |
| 93 | + |
| 94 | +.. function:: listsubdirs( pattern ) |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | +:mod:`pypes.utils.string_` --- Miscellaneous String Handling Functions |
| 99 | +---------------------------------------------------------------------- |
| 100 | + |
| 101 | +.. module:: pypes.utils.string_ |
| 102 | + |
| 103 | + |
| 104 | +.. function:: crude_hashcode( s ) |
| 105 | + |
| 106 | +.. function:: crude_match( s1, s2 ) |
| 107 | + |
| 108 | + |
| 109 | + |
| 110 | +:mod:`pypes.utils.unittest_` --- Extension to Python's Unit Testing Framework |
| 111 | +----------------------------------------------------------------------------- |
| 112 | + |
| 113 | +.. module:: pypes.utils.unittest_ |
| 114 | + |
| 115 | + |
| 116 | +.. class:: TestCase() |
| 117 | + |
| 118 | + (see also: `unittest.TestCase` in Python's standard Library) |
| 119 | + |
| 120 | + .. attribute:: globalstate |
| 121 | + |
| 122 | + .. method:: globalSetUp() |
| 123 | + .. method:: globalTearDown() |
| 124 | + |
| 125 | + .. method:: assertStringCrudelyEqual( actual, expected [, msg] ) |
| 126 | + .. method:: assertStringNotCrudelyEqual( actual, expected [, msg] ) |
| 127 | + .. method:: assertSequenceEqual( actual, expected [, msg] ) |
| 128 | + .. method:: assertSequenceNotEqual( actual, expected [, msg] ) |
| 129 | + .. method:: assertEquals_( actual, expected [, msg] ) |
| 130 | + .. method:: assertNotEquals_( actual, expected [, msg] ) |
| 131 | + |
| 132 | +.. function:: run_unittests( [ packagename ] ) |
| 133 | + |
| 134 | + is a synonym of :func:`pypes.bin.run_unittests`. |
| 135 | + |
| 136 | + |
| 137 | + |
| 138 | +:mod:`pypes.utils.xml_` --- Extension to Python's XML Framework |
| 139 | +--------------------------------------------------------------- |
| 140 | + |
| 141 | +.. module:: pypes.utils.xml_ |
| 142 | + |
| 143 | + |
| 144 | +.. class:: TextContentFilter() |
| 145 | + |
| 146 | + (see also: `xml.sax.handler.ContentHandler` in Python's standard library) |
| 147 | + |
| 148 | + .. method:: filter_textcontent( ifile, ofile, filters [, bypass_escape=False ] ) |
| 149 | + |
| 150 | + |
| 151 | +.. class:: XMLElementHandler() |
| 152 | + |
| 153 | + (see also: `xml.sax.handler.ContentHandler` in Python's standard library) |
| 154 | + |
| 155 | + .. attribute:: XMLELEM |
| 156 | + |
| 157 | + |
| 158 | +.. class:: XMLPCharElementHandler() |
| 159 | + |
| 160 | + (see also: `xml.sax.handler.ContentHandler` in Python's standard library) |
| 161 | + |
| 162 | + .. attribute:: XMLELEM |
| 163 | + .. attribute:: text |
| 164 | + |
| 165 | + |
| 166 | +.. class:: XMLProcessor() |
| 167 | + |
| 168 | + (see also: `xml.sax.handler.ContentHandler` in Python's standard library) |
| 169 | + |
| 170 | + .. attribute:: HANDLER_BYNAME |
| 171 | + .. attribute:: IGNORE |
| 172 | + .. attribute:: CHUNK_SIZE |
| 173 | + |
| 174 | + .. method:: feed( data ) |
| 175 | + .. method:: close() |
| 176 | + .. method:: reset() |
| 177 | + |
| 178 | + .. method:: handle( obj ) |
| 179 | + |
| 180 | + .. method:: process( xml_ ) |
| 181 | + |
| 182 | + |
| 183 | + |
| 184 | +:mod:`pypes.utils.mc` --- Metaclasses |
| 185 | +------------------------------------- |
| 186 | + |
| 187 | +.. module:: pypes.utils.mc |
| 188 | + |
| 189 | + |
| 190 | +.. class:: object_ |
| 191 | + |
| 192 | +.. class:: Object |
| 193 | + |
| 194 | +.. class:: subject |
| 195 | + |
| 196 | +.. class:: singleton |
| 197 | + |
| 198 | +.. class:: kls |
| 199 | + |
| 200 | + |
0 commit comments