{"id":18811293,"url":"https://github.com/activeloopai/lzw","last_synced_at":"2026-01-11T05:30:18.568Z","repository":{"id":103329013,"uuid":"394785781","full_name":"activeloopai/lzw","owner":"activeloopai","description":"Fork of https://pypi.org/project/lzw with Python 3 support","archived":false,"fork":false,"pushed_at":"2021-08-10T21:33:05.000Z","size":3283,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-02-16T14:15:37.122Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/activeloopai.png","metadata":{"files":{"readme":"README.txt","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-10T21:30:14.000Z","updated_at":"2021-08-10T21:33:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"ccb46735-50a1-49ba-8561-6f0ad91ecddf","html_url":"https://github.com/activeloopai/lzw","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/activeloopai%2Flzw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/activeloopai%2Flzw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/activeloopai%2Flzw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/activeloopai%2Flzw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/activeloopai","download_url":"https://codeload.github.com/activeloopai/lzw/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239748254,"owners_count":19690232,"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-11-07T23:25:32.789Z","updated_at":"2026-01-11T05:30:18.298Z","avatar_url":"https://github.com/activeloopai.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is the README file for lzw, small, low level, pure python module\nfor simple, stream-friendly data compression, built around iterators.\nPlease see the accompanying LICENSE.txt file for license terms.\n\nlzw currently requires python 2.6 to run, this will likely change to\nsupport python 3.0 in (near) future releases.\n\nBefore going on, potential users are advised to take a look at the\ngzip, zlib, bz2, zipfile, and tarfile modules available in the python\nstandard library, which are dynamite-fast, mature, well supported, and\ngenerally awesome.\n\nSeriously, check them out! You've already got them!\n\n----\n\nThis software is in Pre-Alpha release, any bug reports (or even\nstories about ways you use the software, or wish you could use the\nsoftware) are appreciated! Mail joerbowers@joe-bowers.com with your\ninfo.\n\n---\n\nINSTALLING\n\nyou should be able to install this package with\n\n   python setup.py install\n\n----\n\nOk, moving on.\n\nThe easiest way to use lzw is probably something like this\n\n\u003e\u003e\u003e import lzw\n\u003e\u003e\u003e\n\u003e\u003e\u003e infile = lzw.readbytes(\"My Uncompressed File.txt\")\n\u003e\u003e\u003e compressed = lzw.compress(infile)\n\u003e\u003e\u003e lzw.writebytes(\"My Compressed File.lzw\", compressed)\n\u003e\u003e\u003e\n\u003e\u003e\u003e # Then later (or elsewhere)\n\u003e\u003e\u003e infile = lzw.readbytes(\"My Compressed File.lzw\", compressed)\n\u003e\u003e\u003e uncompressed = lzw.decompress(infile)\n\u003e\u003e\u003e for bt in uncompressed:\n\u003e\u003e\u003e \tdo_something_awesome_with_this_byte(bt)\n\u003e\u003e\u003e\n\nSee the module documentation for more details.\n\n---\n\nThe underlying compression algorithm for this module is as expressed\nin section 13 of the TIFF 6.0 specification, pages 58 to 62, available\nat the time of this writing on-line at\n\n    http://partners.adobe.com/public/developer/en/tiff/TIFF6.pdf\n\nWherever possible, I've tried to adhere to the algorithm and\nconventions that are described (in exhaustive and yet very readable\ndetail!) in that document, even when it gets a bit Tiff\nspecific. Where there are differences, they are likely bugs in this\ncode.\n\n---\n\nCurrent dev priorities:\n\n- Support python 3.0, which likely means treating our byte streams as\n  lists of ints until the last possible moment, which also seems like\n  it'll make everything a bit more simple and sane.\n\n- Hunt down some potential user applications, see why they're\n  potential rather than actual, and then get on that bus.\n\n\nFor now\n\n- Keep things as simple and intelligible as possible\n- Adhere as closely to the TIFF spec as is reasonable\n- Keep memory use low for good use of the iterators\n- Stay in pure python\n- Faster would be nicer, though...\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factiveloopai%2Flzw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factiveloopai%2Flzw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factiveloopai%2Flzw/lists"}