Quentin Smith
68aaa5ace9
Add support for RouterOS 7.18's !empty
reply word
...
See documentation at https://help.mikrotik.com/docs/spaces/ROS/pages/47579160/API#API-Replyword
2025-03-05 01:15:07 -05:00
Jakub Gocławski
e1a2eabc08
Add linters.
2024-05-28 15:35:00 +02:00
Jakub Gocławski
bd2aaa7559
Use raw bytes literals for regexp.
...
Fixes `SyntaxWarning: invalid escape sequence '\.' `.
2024-05-28 15:32:56 +02:00
Jakub Gocławski
3e8ef982e5
Update supported Python versions.
2024-04-30 13:37:10 +02:00
Jan Kundrát
2e18fa45dd
support connecting via IPv6 as well
...
There's no need to arbitrarily pick IPv4 connections over IPv6 ones.
Fortunately, the Python socket API has a convenience function which
takes care of that *and* setting the timeout as a nice bonus.
fixes #80 , #86
2023-03-11 04:36:01 +01:00
Mateusz Legięcki
a18a08a7ba
Refactor: add parent class for Fields.
2019-09-24 17:50:07 +02:00
Jakub Skiepko
d3ea42486f
Update api_structure.py
2019-09-24 17:50:07 +02:00
Mateusz Legięcki
b869801974
Fix: encode username and password if necessary for plaintext login method.
2019-09-24 14:53:43 +02:00
Steve Haskew
917072b1dd
Additional use of insecure_login changed to plaintext_login
2018-07-24 11:04:19 +01:00
Steve Haskew
0114a447b8
Rename insecure_login to plaintext_login.
2018-07-24 11:03:18 +01:00
Steve Haskew
a99329d06c
Merge branch 'ssl-portswitcher-fix' into v6.43-support
...
* ssl-portswitcher-fix:
Port switcher now behaves correctly when an SSL context is passed in.
2018-07-24 10:12:10 +01:00
Steve Haskew
07150166a8
Port switcher now behaves correctly when an SSL context is passed in.
2018-07-23 16:25:51 +01:00
Steve Haskew
6ed57c7496
Merge accepted SSL changes.
2018-07-23 16:18:28 +01:00
Steve Haskew
7a32791b5b
Clean up, make it more readable
2018-07-10 16:39:05 +01:00
Steve Haskew
7c1297ea2c
Add support for passing ssl_context. Auto port-switching for SSL.
2018-06-27 13:04:02 +01:00
Steve Haskew
b46106f69d
Flip logic. Will not connect insecurely unless specifically requested.
2018-06-26 11:03:53 +01:00
Steve Haskew
ff0b07758c
Basic support for new login method.
2018-06-22 12:59:55 +01:00
Steve Haskew
8da8a9a241
Finish SSL support changes. Add optional verification of the certificate.
2018-06-22 12:22:39 +01:00
Steve Haskew
bacf3c9166
Merge branch 'master' into ssl_SH
...
* master:
Drop python 3.2 support.
fix socket.TCP_KEEPIDLE error on Mac OS
Add link in Readme to wiki.
2018-06-22 10:57:23 +01:00
Aleksandr Bochev
de48a47cf8
fix socket.TCP_KEEPIDLE error on Mac OS
2017-06-26 16:32:43 +02:00
Jakub Skiepko
69e4a8a466
add ssl to connect shortcut.
2017-02-21 10:58:26 +01:00
Jakub Skiepko
5db16b097d
Add ssl to api.
2017-02-21 10:50:34 +01:00
Jakub Skiepko
168820c8f2
Add ssl to socket.
2017-02-21 10:48:57 +01:00
Jakub Skiepko
fb2aba3a9e
Make exceptions pickable.
...
http://docs.celeryproject.org/en/latest/userguide/tasks.html#creating-pickleable-exceptions
https://projects.socialwifi.com/issues/11554
2016-04-15 14:14:21 +02:00
Jakub Skiepko
3e2a3e8157
Fix advanced queries.
2015-08-12 13:18:45 +02:00
Jakub Skiepko
97f436563b
Allow to asynchronously iterate over api response.
2015-05-12 17:29:40 +02:00
Jakub Skiepko
046df2383d
Refactor.
2015-05-12 13:09:42 +02:00
Jakub Skiepko
638579a02e
Refactor.
2015-05-12 09:55:01 +02:00
Marek Siarkowicz
42e0c454b4
Use search in ExceptionHandler.
2015-04-30 10:21:42 +02:00
Jakub Skiepko
54b05d9fa0
Allow to use custom socket timeout.
2015-03-14 10:56:24 +01:00
Jakub Skiepko
581676c5c3
Restart connection on proper exception type.
2014-11-03 15:49:19 +01:00
Jakub Skiepko
ee0f40b7e5
Bump version.
2014-10-13 16:53:58 +02:00
Jakub Skiepko
44ba0e31f6
Add way to parse mikrotik Exceptions.
2014-10-13 16:42:42 +02:00
Jakub Skiepko
965dba3d75
Add connection pool.
2014-10-02 11:44:11 +02:00
Jakub Skiepko
397eb91f04
Refactor.
2014-09-30 15:03:03 +02:00
Jakub Skiepko
8a7c19f269
Detect closed connection on receive.
2014-09-23 13:03:47 +02:00
Jakub Skiepko
dc3fdb7a83
Fix Routerboard Resource.
2014-09-01 12:12:11 +02:00
Jakub Skiepko
1299781eb8
Fix __all__.
2014-08-21 15:45:05 +02:00
Jakub Skiepko
c696ed529b
Add more types implementation.
2014-08-21 15:42:01 +02:00
Jakub Skiepko
219b99d16c
Refactor.
2014-08-21 15:36:49 +02:00
Jakub Skiepko
54319cf342
Enable resource types customization.
2014-08-21 15:27:42 +02:00
Jakub Skiepko
9628654db4
Remove include done flag.
2014-08-21 15:10:05 +02:00
Jakub Skiepko
cd5665813d
Remove support for ASCII resources.
2014-08-21 14:33:44 +02:00
Jakub Skiepko
bf6c40f793
Wrap errors with our class.
2014-07-31 17:24:35 +02:00
Tomasz Pazurkiewicz
c949e6a9cd
Retry socket connection on syscall interrupt.
2014-07-23 12:53:14 +02:00
Jakub Skiepko
8c4833928d
Fix closing sockets when api demands it.
2014-07-11 15:55:46 +02:00
Jakub Skiepko
e6789bc082
Fix handling socket errors.
2014-07-11 14:42:34 +02:00
Jakub Skiepko
6422a50b41
Ignore system interupts when receiveing sentence.
2014-07-11 11:03:49 +02:00
Jakub Skiepko
cfaaffe6ce
Add socket wrapper.
2014-07-11 10:53:52 +02:00
Jakub Skiepko
405cc83e15
Allow to run get on promise multiple times.
2014-07-04 15:02:39 +02:00