Change log
v0.9.8
- Now ScratchDir functions as it should by replacing the original directory.
v0.9.7
- Minor update for inspect deprecation.
v0.9.6
- Allow private variable names (with leading underscores) to be auto-detected
in default MSONable.
v0.9.5
- Favor use of inspect.signature in MSONAble.
v0.9.3
- Fix monty decoding of bson only if bson is present.
v0.9.1
- bson.objectid.ObjectId support for MontyEncoder and MontyDecoder.
v0.9.0
- Improved default as and from_dict.
v0.8.4
- Support for bson fields in jsanitize.
v0.8.1
- Update gcd for deprecated fractions.gcd in py >= 3.5. Try math.gcd by default first.
v0.8.0
- A new collections.tree object, which allows nested defaultdicts.
v0.7.2
- Added support for msgpack serialization in monty.serialization.dumpfn, loadfn
and monty.msgpack.default and object_hook.
v0.7.1
- Added timeout function. Useful to limit function calls that take too long.
v0.7.0
- New backwards incompatible MSONable implementation that inspects init args
to create a default dict representation for objects.
v0.6.1
- New jsanitize method to convert objects supporting the MSONable protocol
to json serializable dicts.
v0.6.0
- New frozendict and MongoDict (allows for Javascript like access of nested
dicts) classes (Matteo).
- New Command class in subprocess which allows commands to be run in separate
thread with timeout (Matteo).
v0.5.9
- More fixes for reverse read of gzipped files ofr Py3k.
v0.5.8
- Fix reverse read file for gzipped files.
v0.5.7
- Added a reverse_readfile method in monty.io, which is faster than
reverse_readline for large files.
v0.5.6
- Provide way to specify Dumper and Loader in monty.serialization.
- Better handling of unicode.
v0.5.5
- More robust handling of numpy arrays and datetime objects in json.
- Refactor NotOverwritableDict to Namespace (Matteo).
v0.5.4
- Addition of many help functions in string, itertools, etc. (Matteo).
- NullFile and NullStream in monty.design_patterns (Matteo).
- FileLock in monty.io (Matteo)
v0.5.3
- Minor efficiency improvement.
v0.5.2
- Add unicode2str and str2unicode in monty.string.
v0.5.0
- Completely rewritten zopen which supports the “rt” keyword of Python 3
even when used in Python 2.
- monty.string now has a marquee method which centers a string
(contributed by Matteo).
- Monty now supports only Python >= 3.3 as well as Python 2.7. Python 3.2
support is now dropped.
v0.4.4
- Refactor lazy_property to be in functools module.
v0.4.3
- Additional dev decorators lazy and logging functions.
v0.4.2
- Improve numpy array serialization with MontyEncoder.
v0.4.1
- Minor bug fix for module load in Py3k.
v0.4.0
- Remove deprecated json.loadf methods.
- Add MSONable protocol for json/yaml based serialization.
- deprecated now supports an additonal message.
v0.3.6
monty.tempfile.ScratchDir
now checks for existence of root
directory. If root path does not exist, will function as simple
pass through. Makes it a lot more robust to bad mounting of scratch
directories.
v0.3.5
- Added backport of functools.lru_cache.
v0.3.4
- Specialized json encoders / decoders with support for numpy arrays and
objects supporting a to_dict() protocol used in pymatgen.
v0.3.1
- Proper support for libyaml auto-detect in yaml support.
v0.3.0
- Refactor serialization tools to shorten method names.
v0.2.4
- Added serialization module that supports both json and yaml. The latter
requires pyyaml.
v0.2.3
- Added get_ncpus method in dev. (G. Matteo).
v0.2.2
- Add a Fabric-inspired cd context manager in monty.os.
- Refactor ScratchDir context manager to monty.tempfile.
v0.2.1
- Add string module, which provides a function to remove non-ascii
characters. More to be added.
v0.2.0
- ScratchDir now supports non-copying of files to and from current
directory, and this is the default (different from prior releases).
- Yet more improvements to copy_r to prevent recursive infinite loops in
copying.
v0.1.5
- Added the useful monty.shutil.compress_file, compress_dir,
decompress_file and decompress_dir methods.
- Much more robust copy_r in shutil.
v0.1.4
- Bug fix for 0.1.3.
v0.1.2
- Added zpath method to return zipped paths.
v0.1.1
- Minor release to update description.
v0.1.0
- Ensure Python 3+ compatibility.
- Travis testing implemented.
v0.0.5
- First official alpha release with unittests and docs.
v0.0.2
- Added several decorators and utilities.