Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Rudimentary rethinkdb python library with some smarts, perhaps some dumbs

Project description


Rudimentary rethinkdb python library with some smarts (and maybe some dumbs)

What? Why?

As of now there is a very small amount of code here. I had three projects using the Rethinker class, and had enough code churn inside the class that it became too painful to keep the three copies in sync. Thus, a library shared among them.

Three main purposes:

  • round-robin connections among database servers
  • make sure connections close at proper time
  • retry retry-able queries on failure

Not really a connection pool, because it doesn’t keep any connections open, but it does take care of connection management.

Service Registry

Now also has a ServiceRegistry class, a lightweight solution for service discovery for distributed services. Maintains service info and status in a rethinkdb table called “services”.


import rethinkstuff
r = rethinkstuff.Rethinker(['', '', ''], 'my_db')
for result in r.table('my_table'):

Project details

Download files

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

Files for rethinkstuff, version 0.1.7
Filename, size File type Python version Upload date Hashes
Filename, size rethinkstuff-0.1.7.tar.gz (4.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page