{"repo":"kaizendorks/pymongo_inmemory","free":true,"listed":false,"github":"https://github.com/kaizendorks/pymongo_inmemory","clone":"git clone https://github.com/kaizendorks/pymongo_inmemory.git","description":"A mongo mocking library with an ephemeral MongoDB running in memory.","language":"Python","stars":53,"topics":["mongodb","mongo","testing-tools","testing","pymongo","python3"],"license":"MIT","category":"dev-tools","readme_excerpt":"[PyPI ] [GitHub ] [BETA Docs] pymongo inmemory A mongo mocking library with an ephemeral MongoDB running in memory. What's new? v0.5.0 - Fixed default fallback for storage engine for mongo versions 6. by @davidwaroquiers in [[PR #119]](https://github.com/kaizendorks/pymongo inmemory/pull/119) - Adding support for mongo 8 by @timjnh in [[PR #123]](https://github.com/kaizendorks/pymongo inmemory/pull/123) v0.4.0 - Tooling enhancements. [PR #90] - Configuration for data directory. [PR #90] - Configuration for data directory. [PR #90] v0.3.1 - Development version upped to Python 3.9 - Update to build system. Contribution by @pbsds - Coercing boolean configs correctly. Issue #82 Installation Usage Configure There are several ways you can configure pymongo inmemory . 1. Insert a new section titled pymongo inmemory to your project's setup.cfg version you want to spin up: 2. Define an ALL CAPS environment variables with prefix PYMONGOIM (attention to trailing double underscores.) For instance, to override the port, set up an environment variable PYMONGOIM MONGOD PORT . Import and use pymongo inmemory wraps the client class MongoClient that comes from pymongo and configures with an ephemeral MongoDB server. You can import this MongoClient from pymongo inmemory instead of pymongo and use it to perform tests: Configuration Config parameter Description Default ------- -------------------- ----------------------------------------------------------------------------------------------------","default_branch":null,"files":null,"tree":[],"storefront":"/r/kaizendorks","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kaizendorks/pymongo_inmemory/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}