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
AttrDictAttrDict.copy()
FrozenAttrDictMongoDictNamespaceNamespace.update()
dict2namedtuple()frozendictfrozendict.update()
tree()
- monty.design_patterns module
NullFileNullStreamNullStream.write()
cached_class()singleton()
- monty.dev module
deprecated()install_excepthook()requires
- monty.fnmatch module
WildCardWildCard.filter()WildCard.match()
- monty.fractions module
gcd()gcd_float()lcm()
- monty.functools module
TimeoutErrorlazy_propertylazy_property.invalidate()
lru_cache()prof_main()return_if_raise()return_none_if_raise()timeouttimeout.handle_timeout()
- monty.inspect module
all_subclasses()caller_name()find_top_pyfile()
- monty.io module
FileLockFileLock.ErrorFileLock.acquire()FileLock.release()
FileLockExceptionget_open_fds()reverse_readfile()reverse_readline()zopen()
- monty.itertools module
chunks()ilotri()iterator_from_slice()iuptri()
- monty.json module
MSONErrorMSONableMSONable.REDIRECTMSONable.as_dict()MSONable.from_dict()MSONable.to_json()MSONable.unsafe_hash()MSONable.validate_monty()
MontyDecoderMontyDecoder.decode()MontyDecoder.process_decoded()
MontyEncoderMontyEncoder.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
DisplayEcoderDisplayEcoder.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
CommandCommand.retcodeCommand.killedCommand.outputCommand.errorCommand.run()
- monty.tempfile module
ScratchDirScratchDir.SCR_LINK
- monty.termcolor module
colored()cprint()