{"library":"mock-firestore","title":"mock-firestore","description":"In-memory implementation of Google Cloud Firestore for use in tests. Currently at version 0.11.0. Release cadence is irregular; last update was a while ago but library is stable.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install mock-firestore"],"cli":null},"imports":["from mock_firestore import MockFirestore"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from mock_firestore import MockFirestore\n\nfirestore = MockFirestore()\n# Add a document\ndoc_ref = firestore.collection('users').document('user1')\ndoc_ref.set({'name': 'Alice', 'email': 'alice@example.com'})\n# Query\ndocs = firestore.collection('users').where('name', '==', 'Alice').stream()\nfor doc in docs:\n    print(doc.id, doc.to_dict())\n# Output: user1 {'name': 'Alice', 'email': 'alice@example.com'}","lang":"python","description":"Create a MockFirestore instance and use it like the real Firestore client.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}