Metadata-Version: 2.1
Name: pymongo-inmemory
Version: 0.1.1
Summary: Pymongo Mocking Tool with in memory MongoDB running.
Home-page: https://github.com/kaizendorks/pymongo_inmemory
Author: Kaizen Dorks
Author-email: kaizendorks@gmail.com
License: MIT
Project-URL: Bug Reports, https://github.com/kaizendorks/pymongo_inmemory/issues
Project-URL: Source, https://github.com/kaizendorks/pymongo_inmemory
Keywords: mongodb testing pymongo
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.4
Classifier: License :: OSI Approved :: MIT License
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: POSIX :: Linux
Classifier: Topic :: Database :: Database Engines/Servers
Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: Utilities
Requires-Python: >=3.4
Description-Content-Type: text/markdown
Requires-Dist: setuptools
Requires-Dist: pymongo

# pymongo_inmemory
A mongo mocking library with MongoDB running in memory.

## Usage
Insert a new section to your projwects `setup.cfg` for operating system and
mongo version:
```toml
[pymongo_inmemory]
mongo_version = 4.0
operating_system = osx
```

then use the in-memory client insstead of original one:
```python
from pymongo_inmemory import MongoClient

client = MongoClient()  # No need to provide host
db = client['testdb']
collection = db['test-collection']
# etc., etc.
client.close()

# Also usable with context manager
with MongoClient() as client:
    # do stuff
```

## TODO
* Move portfinding of Mongod to constructor to avoid possible port clashes between module load and object creation.
* Clean up and centralize config acquisition, env var>pim.ini>setup.cfg
* Add atexit register for mongod clean up
* Add module level docs where needed. Also function level docs for public API
* Add github docs, vuepress
* Ability to define folders through config (env overwrites)
* Wire ability to overwrite conf through env
* Increase test coverage
* Add static type checking
* Remove PIPE output from mongod


