<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Compression lib]]></title><description><![CDATA[<p dir="auto">Is there a compression library for micropython which can do stream compression?</p>
<p dir="auto">This would be especially useful when transferring large amount of data over wlan. As ram is limited it would have to be a stream compression library.</p>
<p dir="auto">does any body know of something like this?</p>
<p dir="auto">I see that upstream has a lib uzlib <a href="https://docs.micropython.org/en/latest/pyboard/library/uzlib.html" target="_blank" rel="noopener noreferrer nofollow">https://docs.micropython.org/en/latest/pyboard/library/uzlib.html</a> which supports decompression. However compression seems not supported.</p>
<p dir="auto">I think miniz is included in esp-idf (<a href="https://github.com/espressif/esp-idf/blob/master/components/esp32/include/rom/miniz.h" target="_blank" rel="noopener noreferrer nofollow">https://github.com/espressif/esp-idf/blob/master/components/esp32/include/rom/miniz.h</a> )so at best there would be an interface to this mirroring the cpython api  (ttps://docs.python.org/3/library/zlib.html).</p>
]]></description><link>https://forum.pycom.io/topic/2055/compression-lib</link><generator>RSS for Node</generator><lastBuildDate>Fri, 11 Sep 2026 19:43:23 GMT</lastBuildDate><atom:link href="https://forum.pycom.io/topic/2055.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 31 Oct 2017 09:05:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Compression lib on Tue, 31 Oct 2017 09:05:42 GMT]]></title><description><![CDATA[<p dir="auto">Is there a compression library for micropython which can do stream compression?</p>
<p dir="auto">This would be especially useful when transferring large amount of data over wlan. As ram is limited it would have to be a stream compression library.</p>
<p dir="auto">does any body know of something like this?</p>
<p dir="auto">I see that upstream has a lib uzlib <a href="https://docs.micropython.org/en/latest/pyboard/library/uzlib.html" target="_blank" rel="noopener noreferrer nofollow">https://docs.micropython.org/en/latest/pyboard/library/uzlib.html</a> which supports decompression. However compression seems not supported.</p>
<p dir="auto">I think miniz is included in esp-idf (<a href="https://github.com/espressif/esp-idf/blob/master/components/esp32/include/rom/miniz.h" target="_blank" rel="noopener noreferrer nofollow">https://github.com/espressif/esp-idf/blob/master/components/esp32/include/rom/miniz.h</a> )so at best there would be an interface to this mirroring the cpython api  (ttps://docs.python.org/3/library/zlib.html).</p>
]]></description><link>https://forum.pycom.io/post/12246</link><guid isPermaLink="true">https://forum.pycom.io/post/12246</guid><dc:creator><![CDATA[this.wiederkehr]]></dc:creator><pubDate>Tue, 31 Oct 2017 09:05:42 GMT</pubDate></item><item><title><![CDATA[Reply to Compression lib on Wed, 08 Nov 2017 10:58:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.pycom.io/uid/631">@this-wiederkehr</a>  I am also interested in this. I have short test messages that are sent and the next line that contains useful (large) data is completly ignored. Did you find something useful ?</p>
]]></description><link>https://forum.pycom.io/post/12456</link><guid isPermaLink="true">https://forum.pycom.io/post/12456</guid><dc:creator><![CDATA[Iplooky]]></dc:creator><pubDate>Wed, 08 Nov 2017 10:58:25 GMT</pubDate></item><item><title><![CDATA[Reply to Compression lib on Mon, 13 Nov 2017 13:53:18 GMT]]></title><description><![CDATA[<p dir="auto">No sorry. Nothing useful. However here is the upstream thread on the implementation of the uzlib:</p>
<p dir="auto"><a href="https://github.com/micropython/micropython/issues/741" target="_blank" rel="noopener noreferrer nofollow">https://github.com/micropython/micropython/issues/741</a></p>
<p dir="auto">Not sure if there is a blocker with respect to compression ...</p>
]]></description><link>https://forum.pycom.io/post/12662</link><guid isPermaLink="true">https://forum.pycom.io/post/12662</guid><dc:creator><![CDATA[this.wiederkehr]]></dc:creator><pubDate>Mon, 13 Nov 2017 13:53:18 GMT</pubDate></item><item><title><![CDATA[Reply to Compression lib on Tue, 07 Nov 2023 12:44:34 GMT]]></title><description><![CDATA[<p dir="auto">I am facing a challenge when attempting to decompress data compressed using the <code>miniz</code> library on the ESP32 platform. My objective is to compress data using miniz library in <em>flasher_stub compoment of esp-idf</em> and then decompress the data on the cloud side using some python script that can be compatible with <em>miniz</em> decompression style like <em><strong>zlib</strong></em>.</p>
<p dir="auto">As per the documentation and information available, the <code>miniz</code> library is described as a &quot;lossless, high-performance data compression library&quot; that implements the zlib (RFC 1950) and Deflate (RFC 1951) compressed data format specification standards. However, I am encountering difficulties when attempting to decompress the compressed data using Python.</p>
<p dir="auto">Specifically, when using the Python <code>zlib</code> module, which should be compatible with the zlib and Deflate formats, I am receiving an &quot;unknown compression method&quot; error. I have verified that the file and data are correct, and they were compressed using the <code>miniz</code> library on the ESP32. Despite this, I am unable to successfully decompress the data.</p>
<p dir="auto">I would greatly appreciate any help or any insights that you can provide regarding how to properly decompress data that has been compressed with the <code>miniz</code> library using Python.</p>
]]></description><link>https://forum.pycom.io/post/41615</link><guid isPermaLink="true">https://forum.pycom.io/post/41615</guid><dc:creator><![CDATA[Shriya dhar]]></dc:creator><pubDate>Tue, 07 Nov 2023 12:44:34 GMT</pubDate></item></channel></rss>