{"id":24490199,"url":"https://github.com/anshuman-02/lzw-encoding-decoding","last_synced_at":"2025-03-15T01:26:39.808Z","repository":{"id":273537339,"uuid":"920048205","full_name":"Anshuman-02/LZW-Encoding-Decoding","owner":"Anshuman-02","description":"Python implementation of Lempel-Ziv-Welch (LZW) compression and decompression algorithm","archived":false,"fork":false,"pushed_at":"2025-01-21T13:35:36.000Z","size":524,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T14:28:35.422Z","etag":null,"topics":["algorithms","datacompression","encodingdecoding","losslesscompression","lzw","python"],"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/Anshuman-02.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-21T13:27:49.000Z","updated_at":"2025-01-21T13:37:59.000Z","dependencies_parsed_at":"2025-01-21T14:28:37.544Z","dependency_job_id":"e9fa292e-03ab-4ffd-b63a-a53fc760705c","html_url":"https://github.com/Anshuman-02/LZW-Encoding-Decoding","commit_stats":null,"previous_names":["anshuman-02/lzw-encoding-decoding"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anshuman-02%2FLZW-Encoding-Decoding","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anshuman-02%2FLZW-Encoding-Decoding/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anshuman-02%2FLZW-Encoding-Decoding/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anshuman-02%2FLZW-Encoding-Decoding/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Anshuman-02","download_url":"https://codeload.github.com/Anshuman-02/LZW-Encoding-Decoding/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243670188,"owners_count":20328413,"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":["algorithms","datacompression","encodingdecoding","losslesscompression","lzw","python"],"created_at":"2025-01-21T17:17:19.796Z","updated_at":"2025-03-15T01:26:39.779Z","avatar_url":"https://github.com/Anshuman-02.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lempel-Ziv-Welch (LZW) Encoding and Decoding 📜\n\nThis repository contains a Python implementation of the **Lempel-Ziv-Welch (LZW)** algorithm for data compression and decompression. The algorithm dynamically builds a dictionary to encode and decode variable-length input efficiently.\n\n---\n\n## Features\n\n- **Encoding**: Compresses input strings into numeric codes.\n- **Decoding**: Reconstructs the original string from the codes.\n- **Dynamic Dictionary**: Handles variable-length inputs with a growing dictionary.\n\n---\n\n## How to Run\n\n1. Install Python 3.x from [python.org](https://www.python.org/).\n2. Save the script as `lzw_compression.py`.\n3. Open a terminal and run:\n   ```bash\n   python lzw_compression.py\n4. Enter a string when prompted to see the encoded and decoded results.\n\n## Example Usage\n### Input:\nEnter a message to encode: hello world\n\n### Output:\n- Encoded: [104, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100] \n- Decoded: hello world\n\n## Applications\n- File compression for storage efficiency.\n- Data transmission over networks.\n- Lossless compression for text processing.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanshuman-02%2Flzw-encoding-decoding","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanshuman-02%2Flzw-encoding-decoding","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanshuman-02%2Flzw-encoding-decoding/lists"}