core.utils module

utils package.

a_time(daystr)[source]
aj(sep=None, *args)[source]
b_time(daystr)[source]
cdir(path)[source]
check_permissions(ddir, dirmask=448, filemask=384)[source]
copyright()[source]
day()[source]
decode_char(txt, encoding='utf-8', what='')[source]
dispatch(target, event, cmnd, *args, **kwargs)[source]
dj(*args)[source]
dtime(stamp)[source]
enc_char(s)[source]
enc_name(input)[source]
enc_needed(s)[source]
error(*args, **kwargs)[source]
feed(text)[source]
fetch_url(type, url, myheaders={}, postdata={}, keyfile=None, certfile='', port=80)[source]
format(*args, **kwargs)[source]
from_enc(txt, encoding='utf-8', what='')[source]
ftime(datestr)[source]
full(a)[source]
get_clsname(obj)[source]
get_day(daystr)[source]

convert string to time.

get_encoding(data)[source]
get_exception(*args, **kwargs)[source]
get_frame(search='code')[source]
get_func(*args, **kwargs)[source]
get_funcname(func)[source]
get_highest(target, file_name)[source]

determine new file extension.

get_hour(daystr)[source]
get_how(func)[source]
get_name(obj)[source]
get_plugname(*args, **kwargs)[source]
get_source(mod, package)[source]
get_state(obj, type='')[source]
get_status(obj, type='')[source]
get_strace(*args, **kwargs)[source]
get_trace(*args, **kwargs)[source]
get_uptime(obj)[source]
get_urls(data)[source]
hello(*args)[source]
hms()[source]
intersect(a, b)[source]
class istr[source]

Bases: builtins.str

j(*args)[source]
list_eggs(filter='core')[source]
list_files(*args, **kwargs)[source]
make_opts(options)[source]
make_signature(data)[source]
make_time(daystr)[source]
mj(*args)[source]
need_redirect(resp)[source]
need_skip(obj, black=, []white=[])[source]
nr_days(seconds)[source]
parse(txt)[source]
parse_email(fn)[source]
parse_url(*args, **kwargs)[source]

Attribute Index Value Value if not present scheme 0 URL scheme specifier empty string netloc 1 Network location part empty string path 2 Hierarchical path empty string query 3 Query component empty string fragment 4 Fragment identifier empty string

parse_urls(*args, **kwargs)[source]
pretty(a)[source]
ptime(daystr)[source]
reduced_keys(*args, **kwargs)[source]
resolve(*args, **kwargs)[source]
resolve_host(ip=None, timeout=1.0)[source]
resolve_ip(hostname=None, timeout=1.0)[source]
rtime()[source]
run_sed(filename, sedstring)[source]

replace oldcore strings with the new one.

short_date(*args, **kwargs)[source]
short_time(*args, **kwargs)[source]
show_eggs(filter='core')[source]
smooth(a)[source]
split_txt(what, l=375)[source]
str_day(seconds)[source]
strip_html(text)[source]
strip_wiki(text)[source]
stripbadchar(s)[source]
stripped(input)[source]
tdiff(d1, d2)[source]
time_string(*args, **kwargs)[source]
time_time(*args, **kwargs)[source]
to_enc(what, encoding='utf-8')[source]
today()[source]

return time of 0:00 today.

touch(fname)[source]
txt_parse(txt)[source]
unescape(text)[source]
union(a, b)[source]
unique(a)[source]
useragent()[source]
verify_signature(data, signature)[source]
verzin(a)[source]