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:
[pymongo_inmemory]
mongo_version = 4.0
operating_system = osx
then use the in-memory client insstead of original one:
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
Metadata
Release files for pymongo_inmemory 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pymongo_inmemory-0.1.1.tar.gz | 5.8 kB | Without provenance | Details for pymongo_inmemory-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pymongo_inmemory-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for pymongo_inmemory-0.1.1-py3-none-any.whl |
Total release size: 13.5 kB
Release files / pymongo_inmemory-0.1.1.tar.gz
| Download URL | pymongo_inmemory-0.1.1.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5f383193283e5d447ba7316f48260cf2a38465264aa4fd3939ea3ee95576fb04
|
|
BLAKE2b-256 checksum How to use checksums |
0c095be2e7fdbd08004d2de62bdb25081f930adc8a9afe6b5c4568ac4bc2bc0f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4
|
Release files / pymongo_inmemory-0.1.1-py3-none-any.whl
| Download URL | pymongo_inmemory-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
947acb9ce49d092dadfc5cf7c6197f12b6e9d00bd39506928ab4bca171cc9e1e
|
|
BLAKE2b-256 checksum How to use checksums |
61f5cd11c907a2c61a9b1bfed7a2790c6328ebac6b377e14dd4b4acd8602789c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4
|
Security for pymongo_inmemory 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.