Useful data structures and utils for Python.
2018-1-20
Enhancements
bin2oct
, bin2dec
, bin2hex
, oct2bin
, oct2dec
, oct2hex
, dec2bin
, dec2oct
, dec2hex
, hex2bin
, hex2oct
, hex2dec
to convert
, which support many base conversionspath.is_super_path
which judges whether the given path1
is the super path of path2
environ.environ
which is a context manager for updating one or more environment variablesenviron.path
which is a context manager for updating the PATH environment variablelist.tolist
which converts obj to listlist.flatten
which generates each element of the given seq
compat.strbytes_types
which includes all types about string2018-1-9
Importance
Enhancements
dict.OrderedDefaultDict
which remembers insertion order and has default value with default factoryconvert.boolean
which converts obj to a boolean valueconsole.console_size
will use shutil.get_terminal_size
if possibleexception.ignore
is same to context.lib.suppress
on Python 3Bug fixes
dict.attrify
's obj is tuple, this will raise a error)2017-12-29
Enhancements
FileTracker
which could track opening files.Bug fixes
pip install
error on Windows with Python 3.network.is_ipv6
test error on Windows with Python 3.network
, request
doc.2017-12-26
Enhancements
file
to system
.system.which
which supports find executable file.system.chmod
which supports chmod recursively.unit.Bytes
which used to deal with bytes.preferredencoding
to string
.cmd.chcp
for Windows which is same like chcp
on Windows cmd.cmd.run_with_en_env
which ensure the output of cmd is in English.cmd.terminate
which supports terminate process by given pid
.cmd.run
uses timeout feature on Python 3 but not implement by self.Bug fixes
2017-12-17
Enhancements
exception.ignore
.network.is_ipv6
is available on Windows.Makefile
which make development easier.readme
which is more readable.Bug fixes
2017-12-14
Supply many powerful data structures and utils about archive, cmd, compat, console, dict, file, inspect, list, misc, network, path, platform, request, set and string.