Mock Open
JSON →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.
Traffic · last 30 days ↑100% vs prev 7d
total hits 14
actors 6 distinct systems
last hit 2d ago AhrefsBot
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇳🇴 Norway
API endpoints
full doc /v1/registry/mock-open
install /v1/registry/mock-open/install
compatibility /v1/registry/mock-open/compatibility