57 Commits

Author SHA1 Message Date
Barbara Miller
4ad3cff415 updates for rethinkdb 2.4.9 2023-05-18 17:16:04 -07:00
Noah Levitt
1dc2e0395c bump minor version after significant change 2019-05-17 10:07:00 -07:00
Noah Levitt
f7fc7da725 peg to rethinkdb-python < 2.4
rethinkdb-python 2.4 has introduced a massive change

    The main difference with the previous driver (except the name of the
    package) is we are **not** importing RethinkDB as `r`. If you would
    like to use `RethinkDB`'s python driver as a drop in replacement, you
    should do the following:

    ```
    from rethinkdb import RethinkDB

    r = RethinkDB()
    connection = r.connect(db='test')
    ```
2019-03-06 12:22:03 -08:00
Noah Levitt
0c181d5a7e bump version after merge 2018-11-02 11:23:56 -07:00
Noah Levitt
72d6e4d39b bump version number 2018-11-01 19:23:28 +00:00
Noah Levitt
59c8e7b8cd bump version after merge 2018-10-29 16:58:04 -07:00
Noah Levitt
edf68edaa2 pass through extra args to run() 2018-09-28 12:27:13 -07:00
Noah Levitt
a43fb74464 bump version after merge 2018-09-27 13:40:01 -07:00
Noah Levitt
a9f764fb45 bump version after merge 2018-09-18 15:58:09 -07:00
Noah Levitt
f347407c5b making tests work better and pass
but not in python 2.7. mock.MagicMock is not an iterator there
apparently :(
2018-09-17 13:24:59 -07:00
Noah Levitt
7692992676 fix dumb bug 2018-03-22 16:01:21 -07:00
Noah Levitt
5cbfe18f9e make service registry table name configurable 2017-10-10 11:05:32 -07:00
Noah Levitt
c02c4b7d2c new api parse_rethinkdb_url() 2017-10-09 17:22:26 -07:00
Noah Levitt
3ad24d8a08 bump dev version number after merging pull request 2017-10-03 16:41:10 -07:00
James Kafader
e1b4153712 clean up small items, typos, change command name, clean up tests in re: exit code testing. 2017-10-03 16:13:42 -07:00
James Kafader
872ef2d93b changed after reviewing merge request 2017-09-26 16:43:37 -07:00
James Kafader
a877fa0fd8 Adds cron garbage collector 2017-09-26 15:51:11 -07:00
Noah Levitt
03e641549e use new index "role" in service registry 2017-09-06 17:25:35 -07:00
Noah Levitt
7cf33a81ea retry in case of another type of recoverable error from a rethinkdb operation 2017-06-27 10:58:30 -07:00
Noah Levitt
b063fdc1fb fix the KeyError bug in unique_service() 2017-05-26 14:52:36 -07:00
Noah Levitt
9194085d0c a note about connection pooling 2017-05-22 14:28:22 -07:00
Noah Levitt
def44503bf bump version after merging pr #5 2017-05-17 12:29:55 -07:00
Noah Levitt
20857c4e7a bump version for pull request just merged and tweak run-tests.sh 2017-05-17 12:13:10 -07:00
Noah Levitt
28b8c2eaac remove accidentally added file __init__.pyc and allow travis-ci failures on non-stable versions of python 2017-05-01 19:56:52 -07:00
Noah Levitt
406a617d01 generalize regex to handle another exception message "Cannot perform read: The primary replica isn't connected to a quorum of replicas. ..." 2017-05-01 15:29:27 -07:00
Noah Levitt
6c57b81de8 recover from a transient error, which happens for me at least rethinkdb starts up 2017-05-01 14:01:01 -07:00
Noah Levitt
dcccc3fa23 lots of documentation on the service registry 2017-04-28 15:23:55 -07:00
Noah Levitt
a1c5a08790 raise exception if heartbeat status_info is missing required fields 2017-04-27 14:34:07 -07:00
Noah Levitt
c5da679b1d bump version number for pull request #2, and fiddle with .travis.yml 2017-04-18 17:13:54 -07:00
Noah Levitt
2f01252c32 change logic of orm constructor so that initial values are not considered updates, and explain a bit in the docstring 2017-03-23 18:19:13 -07:00
Noah Levitt
7b17ed1057 turns out we want populate_defaults to happen in __init__, fix so things work right 2017-03-07 17:46:48 -08:00
Noah Levitt
3fd2e5cf60 new method on orm class populate_defaults(), which runs at the beginning of save(), since populating them in __init__() is problematic 2017-03-07 12:44:52 -08:00
Noah Levitt
07bc01cbbd have Document.load() return None if no such doc is found in the db 2017-03-02 10:31:29 -08:00
Noah Levitt
aa177f94b8 split tests into different source files 2017-03-02 10:16:41 -08:00
Noah Levitt
93cdf59dec update travis-ci badge url 2017-03-01 17:37:13 -08:00
Noah Levitt
c14bae6050 new convention, call Rethinker object rr (mnemonic RethinkeR, or *double*[think]), leave rethinkdb as r per the rethinkdb convention 2017-03-01 11:20:27 -08:00
Noah Levitt
536bf8d1d8 implement or explicitly disallow other top-level dict operations on ORM Document, and add more automated tests 2017-02-28 17:56:44 -08:00
Noah Levitt
e8db41763b rename the project "doublethink" (credit goes to @adam-miller) 2017-02-28 16:44:26 -08:00
Noah Levitt
4a9978fc46 make ORM __getattr___ return None if attribute is missing; documentation improvements 2017-02-28 16:42:57 -08:00
Noah Levitt
ad0e1b1fd7 rename Document.get to Document.load to avoid masking dict.get 2017-02-24 16:52:59 -08:00
Noah Levitt
3c1faded3c keys starting with underscore are not part of the document 2017-02-24 16:40:33 -08:00
Noah Levitt
abdecc46b8 better smarter ORM with more tests 2017-02-23 16:07:14 -08:00
Noah Levitt
d76e219e7b make run-tests.sh work with the docker image that gets pulled in now, which doesn't have a 'python3.4' command 2017-02-21 16:30:29 -08:00
Noah Levitt
6d667c77b5 split into multiple source files 2017-02-21 16:27:49 -08:00
Noah Levitt
000e4d9cf6 playing with simple ORM thing 2017-02-17 17:23:53 -08:00
Noah Levitt
1ef9455885 bump version number 2016-10-31 15:39:25 -07:00
Noah Levitt
79b5add08f fix encoding problem with long_description 2016-05-11 11:41:56 -07:00
Noah Levitt
92b8007f98 support calling ServiceRegistry.available_services() with no arguments to get all available services (services with a recent heartbeat) 2016-04-19 19:16:46 +00:00
Noah Levitt
7a8963b7c4 update version for new pypi upload 2015-12-19 00:47:19 +00:00
Noah Levitt
447f23615f convenience function rethinstuff.utcnow() 2015-11-17 20:06:51 +00:00