Commit Graph

35 Commits

Author SHA1 Message Date
Jeff 626316e49c update readme and ignore 2020-10-03 12:33:49 -04:00
Jeff a3d3aafb5c dont use reference in arguments 2020-09-24 11:59:45 -04:00
Jeff f568f911d1 use py::function 2020-09-24 11:59:36 -04:00
Jeff 6ea7941862 wrap lokimq::Message 2020-09-24 11:59:19 -04:00
Jeff 532d530836 move py::bytes construction inside scoped acquire 2020-09-24 11:42:24 -04:00
Jeff 8a6bdde9a1 add setuptools files 2020-09-24 11:35:25 -04:00
Jeff 353a431ee7 fix 2020-09-14 09:39:51 -04:00
Jeff 191e7894c9 typo 2020-09-14 09:38:43 -04:00
Jeff c08cc6c0c9 fix it again 2020-09-14 09:37:45 -04:00
Jeff 5613a3aacd again 2020-09-14 09:36:07 -04:00
Jeff 162aac9de4 fix it again 2020-09-14 09:34:37 -04:00
Jeff 52f2a16fb2 fix bdecode 2020-09-14 09:31:00 -04:00
Jeff e2f34fd821 fix exit auth script 2020-09-14 09:12:51 -04:00
Jeff 2595ceb1b7 use bytes instead of string in handler functions 2020-09-14 06:57:05 -04:00
Jeff 0de703577c add equals method for connection ids 2020-09-13 12:19:51 -04:00
Jeff 4da510efd0 fix previous commit 2020-09-13 11:53:55 -04:00
Jeff 83a9ece949 add request handler that passes in remote address and connection id 2020-09-13 11:50:29 -04:00
Jeff Becker eb4f558b56
add b32z encode and bt decode for exit auth 2020-08-24 10:03:16 -04:00
Jeff Becker d06864f392
add exit auth server that calls an external script 2020-08-24 09:35:21 -04:00
Jeff Becker a68c0cc709
fix readme markdown formatting 2020-08-24 06:52:01 -04:00
Jeff 558c679c55
Merge pull request #3 from jagerman/fix-mt-crash
Fix crash: don't create py::bytes inside request callback
2020-08-19 17:29:42 -04:00
Jason Rhinelander 9465aef0d6 Fix crash: don't create py::bytes inside request callback
Requests were crashing and returning strange results because the GIL
wasn't held in the callback that was creating python `bytes` instances
in the callback.  Actually acquiring the gil, however, deadlocks.

So instead this keeps the future result as a C++ type and converts it to
python types when `get()` is called from Python.
2020-08-19 18:24:23 -03:00
Jeff 08b2780df1
Merge pull request #2 from jagerman/request-timeout
Add support for overriding the request timeout from Python
2020-08-18 09:01:25 -04:00
Jason Rhinelander b80eab79ef Expose lokimq parameters to python 2020-08-18 00:47:55 -03:00
Jason Rhinelander 87bc38572a Add support for overriding the request timeout from Python 2020-08-17 22:07:51 -03:00
Jeff 117bec4d75
Merge pull request #1 from jagerman/enhancements
Enhancements
2020-08-13 11:53:13 -04:00
Jason Rhinelander c4c0606c98 Update LokiMQ to latest dev 2020-08-13 12:45:44 -03:00
Jason Rhinelander 62cb532fe1 Add request_future; set exceptions on error; bytes on in/out
- request_future works like request, but returns a wrapped std::future
  instead of waiting on the future.
- request arguments now takes bytes instead of strings
- make the request "args" argument optional with a default of no data
  parts.
- make request (and request_future().get()) return a vector of bytes
  rather than strings (to avoid trying to utf8 decode).
- change connect and request to set an exception on failure rather than
  an empty optional.
2020-08-13 12:45:04 -03:00
Jason Rhinelander 12bfe20b0f Add crude stderr logging constructor
I tried taking a python function to log, but this results in nearly
immediately deadlock because of the gil, so for now just add one that
logs to stderr.
2020-08-13 12:27:25 -03:00
Jeff Becker 7c0b5d56e2
commit unstaged changes 2020-08-12 18:30:15 -04:00
Jeff Becker 32de27c2fe
more 2020-07-22 13:41:46 -04:00
Jeff Becker 9fb5895d8c
remove untracked file from CMakeLists.txt 2020-07-20 08:19:37 -04:00
Jeff Becker 116cc5f164
more 2020-07-20 08:19:09 -04:00
Jeff Becker 12c0791518
add initial files for pylokimq 2020-06-02 09:50:53 -04:00
Jeff Becker 00f442618d
initial commit 2020-06-02 09:46:51 -04:00