{"id":24082,"library":"mtools","title":"mtools","description":"A collection of useful Python scripts to parse and visualize MongoDB log files (mloginfo, mlogfilter, mplotqueries), launch test MongoDB environments (mlaunch), and reproduce MongoDB issues. Current version is 1.7.2. Release cadence is irregular, with occasional minor/patch releases.","status":"active","version":"1.7.2","language":"python","source_language":"en","source_url":"https://github.com/rueckstiess/mtools","tags":["mongodb","log-analyzer","test-environment","mlaunch"],"install":[{"cmd":"pip install mtools","lang":"bash","label":"Install with pip"}],"dependencies":[{"reason":"Required for mlaunch to interact with MongoDB.","package":"pymongo","optional":false},{"reason":"Used for process management.","package":"psutil","optional":false},{"reason":"Required for mplotqueries.","package":"matplotlib","optional":true}],"imports":[{"wrong":"from mtools.mlaunch import mlaunch","symbol":"mlaunch","correct":"from mtools import mlaunch"}],"quickstart":{"code":"from mtools.mlaunch import mlaunch\n# Start a replica set with 3 nodes\nmlaunch.init('replicaset', name='myrepl', nodes=3, auth=False)\nprint('Replica set launched. Use mlaunch.stop() to stop.')","lang":"python","description":"Launch a MongoDB test environment with mlaunch."},"warnings":[{"fix":"Upgrade Python to 3.6+ and install mtools >=1.6.0.","message":"mtools v1.6.0 dropped Python 2.7 support. Python 3.6+ is required. Upgrade Python if you are on an older version.","severity":"breaking","affected_versions":"<1.6.0"},{"fix":"Upgrade PyMongo to 4.0+ or pin mtools to 1.7.0 if you must use PyMongo 3.x.","message":"mtools v1.7.1 requires PyMongo >=4.0. Older PyMongo versions are incompatible. This may break scripts relying on PyMongo 3.x API.","severity":"breaking","affected_versions":">=1.7.1"},{"fix":"Ensure MongoDB tools are installed and mongod is in your PATH.","message":"mlaunch requires a mongod binary available in PATH. If not found, it fails silently or with confusing errors.","severity":"gotcha","affected_versions":"all"},{"fix":"Replace --sslWeakCertificateValidation with --tlsAllowInvalidCertificates.","message":"mlaunch's --sslWeakCertificateValidation is removed in v1.6.2. Use --tlsAllowInvalidCertificates instead.","severity":"deprecated","affected_versions":">=1.6.2"}],"env_vars":null,"search_vec":"'1.7.2':30 'analyz':42 'cadenc':32 'collect':3 'current':27 'environ':21,45 'file':14 'irregular':34 'issu':26 'launch':18 'log':13,41 'log-analyz':40 'minor/patch':37 'mlaunch':22,46 'mlogfilt':16 'mloginfo':15 'mongodb':12,20,25,39 'mplotqueri':17 'mtool':1 'occasion':36 'pars':9 'python':6 'releas':31,38 'reproduc':24 'script':7 'test':19,44 'test-environ':43 'use':5 'version':28 'visual':11","created_at":"2026-05-01T08:11:11.675996+00:00","updated_at":"2026-05-01T08:11:11.675996+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"1.7.2","cli_name":"mloginfo","cli_version":"Traceback (most recent call last):","type":"library","homepage":"http://blog.rueckstiess.com/mtools/","github":"https://github.com/rueckstiess/mtools","docs":null,"changelog":null,"pypi":"https://pypi.org/project/mtools/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["database"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}