Common Utilities API¶
Database¶
telecom_common.db_connect ¶
db_connect(path=DB_PATH)
Source code in telecom_common.py
174 175 176 177 | |
telecom_common.db_df ¶
db_df(sql, params=(), path=DB_PATH)
Source code in telecom_common.py
180 181 182 183 184 185 | |
telecom_common.db_exec ¶
db_exec(query, params=(), path=DB_PATH)
Source code in telecom_common.py
188 189 190 191 192 193 194 195 | |
telecom_common.db_one ¶
db_one(sql, params=(), path=DB_PATH)
Source code in telecom_common.py
198 199 200 201 202 203 204 205 | |
telecom_common.db_count ¶
db_count(table, path=DB_PATH)
Source code in telecom_common.py
208 209 210 211 212 213 | |
telecom_common.db_chunked_in_update ¶
db_chunked_in_update(table, column, set_clause, values, where_values, chunk_size=800, path=DB_PATH)
Source code in telecom_common.py
216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 | |
Password¶
telecom_common.has_password ¶
has_password()
Source code in telecom_common.py
147 148 | |
telecom_common.set_password ¶
set_password(pw)
Source code in telecom_common.py
151 152 153 154 155 156 157 158 | |
telecom_common.verify_password ¶
verify_password(pw)
Source code in telecom_common.py
161 162 163 164 165 166 167 168 169 170 171 | |
Identity generators¶
telecom_common.luhn ¶
luhn(number)
Source code in telecom_common.py
112 113 114 115 116 117 118 | |
telecom_common.gen_imsi ¶
gen_imsi()
Source code in telecom_common.py
121 122 | |
telecom_common.gen_msisdn ¶
gen_msisdn()
Source code in telecom_common.py
125 126 | |
telecom_common.gen_imei ¶
gen_imei()
Source code in telecom_common.py
129 130 131 | |
telecom_common.gen_key_id ¶
gen_key_id(seed='')
Source code in telecom_common.py
134 135 136 | |