Skip to content

tripsta/mongo-async-python-driver

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MongoDB driver for Python Twisted

This package started out as a fork of fiorix/mongo-async-python-driver. However, to implement the more difficult features of a MongoDB driver such as failover, it was nearly completely rewritten.

The primary features of this rewrite include:

  • reconfiguration of protocol connections upon master change.
  • failover to new master upon AutoReconnect failure.
  • depend on pymongo to avoid in tree pymongo driver to avoid drift.
  • Use python bson driver rather than in tree version.
  • tries to be careful about building and parsing protocol strings to improve throughput.
  • use namedtuple for message structures.

The collection, database, and other higher level structures were left unchanged.

Installing

You can use setuptools to install this txmongo fork.

sudo python setup.py install

Packages

Debian

Packing for debian exists in debian/, you can build yourself a package (remember to update debian/changelog) if you make changes.

dpkg-buildpackage -b

Then look for the package in your home directory.

Fedora

rpmbuild -bb python-txmongo.spec

You might need to download Source0 from the .spec and place it in rpmbuild/SOURCES first.

Contributing

If this fork provides the features you need, feel free to add to it. I'll try to be responsive to merge requests.

About

asynchronous python driver for mongo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.4%
  • Shell 0.6%