{"library":"mock-open","type":"library","category":null,"description":"The `mock-open` library (current version 1.4.0) provides an enhanced mock object for testing file I/O operations in Python. It extends `unittest.mock.mock_open` to offer more realistic behavior for file-like objects, including robust handling of `with` statements, `read`, `write`, `seek`, and binary modes. It is actively maintained with releases addressing compatibility and feature enhancements.","language":"python","status":"active","version":"1.4.0","tags":["mocking","testing","file_io","unittest.mock"],"install":[{"cmd":"pip install mock-open","imports":["from mock_open import MockOpen","from unittest.mock import patch"]}],"homepage":null,"github":"http://github.com/nivbend/mock-open","docs":null,"changelog":null,"pypi":"https://pypi.org/project/mock-open/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":2.6,"avg_import_s":0.36,"wheel_type":"sdist"},"url":"https://checklist.day/v1/registry/mock-open/compatibility"},"provenance":{"verified_status":"passing","verified_at":"Sun Jun 28","last_verified":"Sun Jun 28","next_check":"Tue Jul 28","install_tag":null}}