Paul Sokolovsky
a191626c2e
uasyncio: Add awriteiter() method.
...
Write piecewise content from iterable (usually, a generator).
2017-06-10 16:10:27 +03:00
Paul Sokolovsky
1096940769
pkg_resources: Release 0.2.
2017-06-10 00:23:20 +03:00
Paul Sokolovsky
8a2958ee36
pkg_resources: Support "frozen" resources (in R.py module).
2017-06-10 00:22:50 +03:00
Paul Sokolovsky
e1f75100cf
uasyncio: Release 1.2.1.
2017-06-08 02:54:42 +03:00
Paul Sokolovsky
a2097be138
uasyncio: Add own set_debug() function.
...
set_debug() from uasyncio.core doesn't have effect on the main uasyncio
package, so let them both have set_debug() function, and allow to enable
debug logging independently.
2017-06-08 02:51:29 +03:00
Paul Sokolovsky
a4b75ab2bf
uasyncio.core: Release 1.4.2.
2017-06-08 02:48:45 +03:00
Paul Sokolovsky
b9540e4afe
uasyncio.core: Use "uasyncio.core" logger.
2017-06-08 02:48:04 +03:00
Paul Sokolovsky
808e0bba0c
umqtt.robust: Elaborate README.
...
Add intro section on complexities of achieving "robustness" and make
expicit that umqtt.robust requires an MQTT server with persistence
enabled.
2017-06-07 20:28:30 +03:00
Paul Sokolovsky
75e1474ddf
uasyncio: awrite: Use 3-arg .write(), accept offset/size too.
...
Use MicroPython .write() extension of passing offset/size to efficiently
spool buffers larger than socket output buffer. Also, make awrite()
accept these params too.
2017-06-07 03:09:34 +03:00
Paul Sokolovsky
87e30182a1
uasyncio: test-ab-medium.sh: Run ab on http://127.0.0.1 .
...
On some hosts, http://localhost doesn't work, apparently ab resolve it
via IPv6 or something.
2017-06-06 21:37:55 +03:00
Paul Sokolovsky
f5fe55aaef
uasyncio: Release 1.2.
2017-06-06 21:27:50 +03:00
Paul Sokolovsky
16afc06b8c
uasyncio: Switch to memory-efficient poll.ipoll() method.
...
As added in MicroPython 1.9.
2017-06-06 21:04:37 +03:00
Paul Sokolovsky
21d60a8b5f
uasyncio.core: Release 1.4.1.
2017-05-23 01:27:33 +03:00
Paul Sokolovsky
e13e139f51
uasyncio.core: Don't feed old send arguments into next coro invocation.
...
As all current syscalls don't return any value, there's nothing to feed
actually.
2017-05-23 01:26:08 +03:00
Paul Sokolovsky
191de78b16
uasyncio.core: Release 1.4.
2017-05-22 13:58:51 +03:00
Paul Sokolovsky
c01004d71f
uasyncio.core: Add test for callback args to call_soon().
2017-05-22 13:57:57 +03:00
Paul Sokolovsky
241e7b1a3b
uasyncio.core: Add stop() method for loop.
...
To allow to stop loop from a callback function.
2017-05-22 13:49:27 +03:00
Paul Sokolovsky
bf327f755a
uasyncio.core: Fix args handling for call_soon/call_later/call_later_ms.
2017-05-22 13:21:54 +03:00
Paul Sokolovsky
22cd93fb1a
uasyncio.core: Release 1.3.
2017-05-16 23:01:03 +03:00
Paul Sokolovsky
9b5cbcdfce
uasyncio.core: test_full_wait: Update for call_later_ms().
2017-05-16 21:54:21 +03:00
Paul Sokolovsky
4fa29d867a
uasyncio.core: Remove call_at() which takes absolute second time.
...
uasyncio uses different timebase than CPython's asyncio, so absolute
time scheduling compatible with it is impossible. Instead, there's
call_at_() which schedules using modular millisecond time.
2017-05-16 21:53:29 +03:00
Paul Sokolovsky
ad73ee3043
uasyncio.core: Use finalized name for call_later_ms().
2017-05-16 21:53:29 +03:00
Paul Sokolovsky
61392cb641
uasyncio.core: Remove unused Sleep syscall.
...
It's unused since since sleep() was switched to yield an integer for
delay.
2017-05-16 21:45:13 +03:00
Paul Sokolovsky
3ef991c115
uasyncio.core: Remove legacy commented code for add_reader/add_writer.
2017-05-14 16:38:32 +03:00
Paul Sokolovsky
f30c784dcf
pprint: Release 0.0.4.
2017-05-11 21:21:23 +03:00
Paul Sokolovsky
d8c87f8153
pprint: Add dummy pprint() function.
2017-05-11 21:20:51 +03:00
Paul Sokolovsky
d0c6ae0b31
urequests: Add example_xively.py as very basic example.
...
The main purpose is actually to show the need to call .close().
2017-05-05 20:47:08 +03:00
Paul Sokolovsky
577457dbdd
upip: Release 1.2.
2017-05-05 13:10:06 +03:00
Paul Sokolovsky
04eb5b2e7f
optimize_upip.py: Rework inclusion/exclusion logic.
...
We should include files by default, as a package may contain arbitrary
files, e.g. as resources. So, rework inclusion/exlusion logic to work
using incremental refinement.
2017-05-05 13:01:54 +03:00
Paul Sokolovsky
e8e531b754
uasyncio: Release 1.1.2.
2017-05-05 11:35:24 +03:00
Paul Sokolovsky
9a72e29564
uasyncio: Consistently use "if DEBUG and __debug__:" stanza.
...
To make sure this module can work without logging module imported, just
like uasyncio.core was made to.
2017-05-05 11:33:39 +03:00
Paul Sokolovsky
91d9c168b8
upip: url_open: Reworking error handling to guaranteedly close socket.
2017-05-05 03:25:07 +03:00
Paul Sokolovsky
024d6bc2b1
upip: install_pkg: Use try-finally to ensure opened socket always closed.
2017-05-05 03:17:21 +03:00
Paul Sokolovsky
1bfd389a81
upip: url_open: If --debug, dump URL being opened.
2017-05-04 10:44:54 +03:00
Paul Sokolovsky
c9337def58
upip: Treat PyPI redirects as "package not found".
...
PyPI has got too smart and redirects typos, etc. to a similarly-called
packages.
2017-05-04 10:17:27 +03:00
Paul Sokolovsky
823b743daf
upip: get_pkg_metadata: Use ujson.load() to save memory.
2017-05-04 01:12:58 +03:00
Paul Sokolovsky
36744578e2
uasyncio.core: Release 1.2.1.
2017-05-01 16:10:51 +03:00
Paul Sokolovsky
aea501add6
uasyncio.core: Import utime unconditionally, uasyncio depends on MicroPython.
2017-05-01 16:09:34 +03:00
Paul Sokolovsky
b2f69eb23b
uasyncio.core: Add set_debug() method, don't import logging if not called.
2017-05-01 16:04:28 +03:00
Paul Sokolovsky
0a02e2dfff
urequests: Subscript getaddrinfo() result with -1.
2017-05-01 15:28:56 +03:00
Paul Sokolovsky
0496643afb
upip: Release 1.1.6.
2017-05-01 00:02:51 +03:00
Paul Sokolovsky
aa02e41056
upip: Allow to have commented packages in requirements.txt.
2017-05-01 00:02:33 +03:00
Paul Sokolovsky
9b1f0105a5
os: Release 0.6.
2017-04-29 19:43:00 +03:00
Paul Sokolovsky
43ce994fa6
os: listdir: Fix bytes vs str comparison warning.
2017-04-29 19:39:26 +03:00
Paul Sokolovsky
94f1584e48
umqtt.simple: Release 1.3.3.
2017-04-27 17:53:14 +03:00
Damien Mascord
2164c88483
umqtt.simple: Handle CONNECT messages longer than 127 bytes.
2017-04-27 17:52:00 +03:00
Paul Sokolovsky
30c2ac5601
itertools: Release 0.2.3.
2017-04-24 22:08:49 +03:00
stijn
45ff04ac75
itertools: Add accumulate function
2017-04-24 16:00:30 +02:00
Paul Sokolovsky
5cf6600e5e
uasyncio.core: Release 1.2.
2017-04-20 21:32:07 +03:00
Paul Sokolovsky
bb3057ffed
uasyncio.core: Fix scheduling in the presense of I/O completion callbacks.
...
wait() may finish prematurely due to I/O completion, and schedule new,
earlier than before tasks to run. So, after call to wait(), we need to
check current time and time of head task, and continue to wait if needed.
Recently introduced provisional utimeq.peektime() is used to optimize
querying time of a head task.
2017-04-08 01:34:57 +03:00