monty package
Monty is the missing complement to Python. Monty implements supplementary useful functions for Python that are not part of the standard library. Examples include useful utilities like transparent support for zipped files, useful design patterns such as singleton and cached_class, and many more.
Subpackages
- monty.os package
cd()
makedirs_p()
- monty.os.path module
find_exts()
zpath()
- monty.os.path module
- monty.bisect module
find_ge()
find_gt()
find_le()
find_lt()
index()
- monty.collections module
AttrDict
AttrDict.copy()
FrozenAttrDict
MongoDict
Namespace
Namespace.update()
dict2namedtuple()
frozendict
frozendict.update()
tree()
- monty.design_patterns module
NullFile
NullStream
NullStream.write()
cached_class()
singleton()
- monty.dev module
deprecated()
install_excepthook()
requires
- monty.fnmatch module
WildCard
WildCard.filter()
WildCard.match()
- monty.fractions module
gcd()
gcd_float()
lcm()
- monty.functools module
TimeoutError
lazy_property
lazy_property.invalidate()
lru_cache()
prof_main()
return_if_raise()
return_none_if_raise()
timeout
timeout.handle_timeout()
- monty.inspect module
all_subclasses()
caller_name()
find_top_pyfile()
- monty.io module
FileLock
FileLock.Error
FileLock.acquire()
FileLock.release()
FileLockException
get_open_fds()
reverse_readfile()
reverse_readline()
zopen()
- monty.itertools module
chunks()
ilotri()
iterator_from_slice()
iuptri()
- monty.json module
MSONError
MSONable
MSONable.REDIRECT
MSONable.as_dict()
MSONable.from_dict()
MSONable.to_json()
MSONable.unsafe_hash()
MSONable.validate_monty()
MontyDecoder
MontyDecoder.decode()
MontyDecoder.process_decoded()
MontyEncoder
MontyEncoder.default()
jsanitize()
- monty.logging module
enable_logging()
logged()
- monty.math module
nCr()
nPr()
- monty.msgpack module
default()
object_hook()
- monty.multiprocessing module
imap_tqdm()
- monty.operator module
operator_from_str()
- monty.pprint module
DisplayEcoder
DisplayEcoder.default()
draw_tree()
pprint_json()
pprint_table()
- monty.re module
regrep()
- monty.serialization module
dumpfn()
loadfn()
- monty.shutil module
compress_dir()
compress_file()
copy_r()
decompress_dir()
decompress_file()
gzip_dir()
remove()
- monty.string module
boxed()
indent()
is_string()
list_strings()
make_banner()
marquee()
remove_non_ascii()
unicode2str()
- monty.subprocess module
Command
Command.retcode
Command.killed
Command.output
Command.error
Command.run()
- monty.tempfile module
ScratchDir
ScratchDir.SCR_LINK
- monty.termcolor module
colored()
cprint()