Jason Rhinelander
959df9c5dd
Remove duplicate method
...
Not sure why this was here, but AFAICT it is identical to
`add_request_command` without the `_ex`.
2021-06-19 22:58:03 -03:00
Jason Rhinelander
2805d01f6b
Update old routing id field name
2021-06-19 22:58:03 -03:00
Jason Rhinelander
739e445c03
Rename to pyoxenmq
...
Finish renaming everything from loki->oxen, and update to latest
oxen-mq submodule.
2021-06-19 22:57:43 -03:00
Jeff
9ac2d20632
Merge pull request #5 from majestrate/oxen-refactor-2021-02-01
...
update readme
2021-04-14 13:27:41 -04:00
Jeff Becker
f7d562f5d1
update readme
...
* fix urls
* fix names
2021-04-14 13:23:07 -04:00
Jason Rhinelander
56239c9390
Fix loki-mq submodule path
2021-02-27 13:26:12 -04:00
Jeff
8c75af04ca
Merge pull request #4 from majestrate/oxen-refactor-2021-02-01
...
loki -> oxen refactor
2021-02-18 06:07:03 -05:00
Jeff Becker
4597f5ca6c
loki -> oxen refactor
...
* rename all namespaces so it compiles again
2021-02-01 10:48:27 -05:00
Jeff
aade6d835c
Merge pull request #3 from loki-project/KeeJef-patch-1
...
Add dependencies
2020-11-26 05:06:09 -05:00
Kee Jefferys
2c13d931d9
Add dependencies
...
Not sure if this is the full or accurate list, was what i needed to install
2020-11-26 13:43:56 +11:00
Jeff Becker
5ebc6ee614
add lokinet.auth package
2020-11-09 08:51:40 -05:00
Jeff Becker
3787a12fcd
package lokinet package
2020-11-09 08:32:28 -05:00
Jeff Becker
fc1a85da79
build lokimq from pkg-config
2020-11-09 08:32:10 -05:00
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