{"id":13801342,"url":"https://github.com/dmazzella/ufastlz","last_synced_at":"2026-01-18T10:48:18.411Z","repository":{"id":68705952,"uuid":"414228121","full_name":"dmazzella/ufastlz","owner":"dmazzella","description":"Micropython wrapper for FastLZ, a lightning-fast lossless compression library","archived":false,"fork":false,"pushed_at":"2022-06-11T13:52:17.000Z","size":8,"stargazers_count":13,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-04-22T12:32:52.326Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmazzella.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-10-06T13:42:14.000Z","updated_at":"2024-04-10T07:24:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"28754555-8fba-44f6-9202-3fdd60a6bf59","html_url":"https://github.com/dmazzella/ufastlz","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmazzella%2Fufastlz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmazzella%2Fufastlz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmazzella%2Fufastlz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmazzella%2Fufastlz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmazzella","download_url":"https://codeload.github.com/dmazzella/ufastlz/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253932803,"owners_count":21986448,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T00:01:21.767Z","updated_at":"2026-01-18T10:48:18.356Z","avatar_url":"https://github.com/dmazzella.png","language":"Python","funding_links":[],"categories":["Libraries"],"sub_categories":["Communications"],"readme":"ufastlz\n=====\n\nMicropython wrapper for [FastLZ](https://github.com/ariya/FastLZ), a lightning-fast lossless compression library.\n\nCompiling the cmodule into MicroPython\n=====\n\nTo build such a module, compile MicroPython with an extra make flag named ```USER_C_MODULES``` set to the directory containing all modules you want included (not to the module itself).\n\n\n#### unix port\n\n```bash\n➜  ~ git clone https://github.com/micropython/micropython.git\n➜  ~ cd micropython\n➜  micropython (master) ✗ git clone https://github.com/dmazzella/ufastlz.git ports/unix/cmodules/ufastlz\n➜  micropython (ufastlz) ✗ cd ports/unix/cmodules/ufastlz\n➜  micropython (ufastlz) ✗ git submodule update --init\n➜  micropython (ufastlz) ✗ cd ../../../../\n➜  micropython (master) ✗ make -j8 -C mpy-cross \u0026\u0026 make -j2 -C ports/unix/ VARIANT=\"dev\" USER_C_MODULES=\"$(pwd)/ports/unix/cmodules\"\n```\n\n\n#### stm32 port\n\n```bash\n~ git clone https://github.com/micropython/micropython.git micropython\n➜  ~ cd micropython\n➜  micropython (master) ✗ git submodule update --init\n➜  micropython (master) ✗ git clone https://github.com/dmazzella/ufastlz.git ports/stm32/boards/PYBD_SF6/cmodules/ufastlz\n➜  micropython (ufastlz) ✗ cd ports/stm32/boards/PYBD_SF6/cmodules/ufastlz\n➜  micropython (ufastlz) ✗ git submodule update --init\n➜  micropython (ufastlz) ✗ cd ../../../../../../\n➜  micropython (master) ✗ make -j2 -C mpy-cross \u0026\u0026 make -j2 -C ports/stm32/ BOARD=\"PYBD_SF6\" USER_C_MODULES=\"$(pwd)/ports/stm32/boards/PYBD_SF6/cmodules\"\n```\n\nUsage\n=====\n\n```python\nMicroPython v1.17-74-gd42cba0d2-dirty on 2021-10-06; PYBD-SF6W with STM32F767IIK\nType \"help()\" for more information.\n\u003e\u003e\u003e import _fastlz\n\u003e\u003e\u003e d = \"test \" * 100\n\u003e\u003e\u003e d\n'test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test '\n\u003e\u003e\u003e c = _fastlz.compress(d)\n\u003e\u003e\u003e c\nb'\\x04test \\xe0\\xfd\\x04\\xe0\\xdb\\x04\\x04test '\n\u003e\u003e\u003e _fastlz.decompress(c)\nb'test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test '\n\u003e\u003e\u003e \n```\n\nAPI\n=====\n - ```_fastlz.compress(data, level=2)```\n - ```_fastlz.decompress(data, maxout=2048)```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmazzella%2Fufastlz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmazzella%2Fufastlz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmazzella%2Fufastlz/lists"}