Skip to main content

MongoDB Wire Protocol server library

Project description

Mock server for testing MongoDB clients and creating MongoDB Wire Protocol servers.

Changelog

1.2.1 (2017-12-06)

Set minWireVersion to 0, not to 2. I had been wrong about MongoDB 3.6’s wire version range: it’s actually 0 to 6. MockupDB now reports the same wire version range as MongoDB 3.6 by default.

1.2.0 (2017-09-22)

Update for MongoDB 3.6: report minWireVersion 2 and maxWireVersion 6 by default.

1.1.3 (2017-04-23)

Avoid rare RuntimeError in close(), if a client thread shuts down a socket as MockupDB iterates its list of sockets.

1.1.2 (2016-08-23)

Properly detect closed sockets so MockupDB.stop() doesn’t take 10 seconds per connection. Thanks to Sean Purcell.

1.1.1 (2016-08-01)

Don’t use “client” as a keyword arg for Request, it conflicts with the actual “client” field in drivers’ new handshake protocol.

1.1.0 (2016-02-11)

Add cursor_id property to OpGetMore, and ssl parameter to interactive_server.

1.0.3 (2015-09-12)

MockupDB(auto_ismaster=True) had just responded {"ok": 1}, but this isn’t enough to convince PyMongo 3 it’s talking to a valid standalone, so auto-respond {"ok": 1, "ismaster": True}.

1.0.2 (2015-09-11)

Restore Request.assert_matches method, used in pymongo-mockup-tests.

1.0.1 (2015-09-11)

Allow co-installation with PyMongo.

1.0.0 (2015-09-10)

First release.

0.1.0 (2015-02-25)

Development begun.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mockupdb-1.2.1.tar.gz (60.5 kB view details)

Uploaded Source

File details

Details for the file mockupdb-1.2.1.tar.gz.

File metadata

  • Download URL: mockupdb-1.2.1.tar.gz
  • Upload date:
  • Size: 60.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mockupdb-1.2.1.tar.gz
Algorithm Hash digest
SHA256 8ef2924455c94b1642b69a39d1ecb5cbeab1630834dd8228b4c2a63b2f595626
MD5 5318897000678fc6efe6ab8d7f4b10e7
BLAKE2b-256 bb4951fb84d9356888ab7add9e7a7e1c5580f21c15a29ffa962c4be6858f62d6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page