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))
Metadata
Release files for rethinkstuff 0.1.7
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 |
|---|---|---|---|---|
| rethinkstuff-0.1.7.tar.gz | 4.4 kB | Without provenance | Details for rethinkstuff-0.1.7.tar.gz |
Release files / rethinkstuff-0.1.7.tar.gz
| Download URL | rethinkstuff-0.1.7.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec48d288c985ab2924284777b349e6d6621e19fd9d36373c1b8dc7bde57740be
|
|
BLAKE2b-256 checksum How to use checksums |
8c717894d6a89c275280b55c8fc68c517bcb705e77a9cd683da4e1a816a8ebf3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for rethinkstuff 0.1.7
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.