Skip to main content
https://travis-ci.org/nlevitt/rethinkstuff.svg?branch=master

rethinkstuff

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”.

Usage

import rethinkstuff
r = rethinkstuff.Rethinker(['db0.foo.com', 'db0.foo.com:38015', 'db1.foo.com'], 'my_db')
r.table('my_table').insert({'foo':'bar','baz':2}).run()
for result in r.table('my_table'):
    print("result={}".format(result))

Download files

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

Source Distribution

rethinkstuff-0.1.7.tar.gz (4.4 kB view details)

Uploaded Source

File details

Details for the file rethinkstuff-0.1.7.tar.gz.

File metadata

  • Download URL: rethinkstuff-0.1.7.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for rethinkstuff-0.1.7.tar.gz
Algorithm Hash digest
SHA256 ec48d288c985ab2924284777b349e6d6621e19fd9d36373c1b8dc7bde57740be
MD5 57250e96741fb332f67b63980da7f6df
BLAKE2b-256 8c717894d6a89c275280b55c8fc68c517bcb705e77a9cd683da4e1a816a8ebf3

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.7 This release

1 file

0.1.6

1 file

0.1.5

1 file

0.1.4

1 file

0.1.3

1 file

0.1.2

1 file

0.1.1

1 file

0.1

Supported by

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