Releases: flaggo/pydu
Releases · flaggo/pydu
pydu v0.4.1
2018-1-20
Enhancements
- Add
bin2oct
,bin2dec
,bin2hex
,oct2bin
,oct2dec
,oct2hex
,dec2bin
,dec2oct
,dec2hex
,hex2bin
,hex2oct
,hex2dec
toconvert
, which support many base conversions - Add
path.is_super_path
which judges whether the givenpath1
is the super path ofpath2
- Add
environ.environ
which is a context manager for updating one or more environment variables - Add
environ.path
which is a context manager for updating the PATH environment variable - Add
list.tolist
which converts obj to list - Add
list.flatten
which generates each element of the givenseq
- Add
compat.strbytes_types
which includes all types about string
pydu v0.4.0
2018-1-9
Importance
- Remove support for Python 3.4
Enhancements
- Add
dict.OrderedDefaultDict
which remembers insertion order and has default value with default factory - Add
convert.boolean
which converts obj to a boolean value console.console_size
will useshutil.get_terminal_size
if possibleexception.ignore
is same tocontext.lib.suppress
on Python 3
Bug fixes
- Fix #15 (If the
dict.attrify
's obj is tuple, this will raise a error)
pydu v0.3.1
2017-12-29
Enhancements
- Add
FileTracker
which could track opening files.
Bug fixes
- Fix
pip install
error on Windows with Python 3. - Fix
network.is_ipv6
test error on Windows with Python 3. - Fix description error on
network
,request
doc.
pydu v0.3.0
2017-12-26
Enhancements
- Rename
file
tosystem
. - Add
system.which
which supports find executable file. - Add
system.chmod
which supports chmod recursively. - Add
unit.Bytes
which used to deal with bytes. - Add
preferredencoding
tostring
. - Add
cmd.chcp
for Windows which is same likechcp
on Windows cmd. - Add
cmd.run_with_en_env
which ensure the output of cmd is in English. - Add
cmd.terminate
which supports terminate process by givenpid
. cmd.run
uses timeout feature on Python 3 but not implement by self.
Bug fixes
- Fix test cases to generate right coverage.
pydu v0.2.0
2017-12-17
Enhancements
- Add
exception.ignore
. network.is_ipv6
is available on Windows.- Set logging handler to avoid "No handler found" warnings.
- Add
Makefile
which make development easier. - Update
readme
which is more readable.
Bug fixes
- Fix installation error on Windows.
pydu v0.1.0
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.