{"id":18961546,"url":"https://github.com/your-vo1d/arithmetic-compression","last_synced_at":"2026-04-01T14:30:23.631Z","repository":{"id":213087979,"uuid":"732923603","full_name":"Your-vo1d/Arithmetic-compression","owner":"Your-vo1d","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-12T14:57:10.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-01T04:50:41.872Z","etag":null,"topics":["arithmetic","arithmetic-coding","compressin","compression-algorithm"],"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/Your-vo1d.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}},"created_at":"2023-12-18T07:06:09.000Z","updated_at":"2024-05-12T16:21:19.000Z","dependencies_parsed_at":"2024-01-04T15:48:14.439Z","dependency_job_id":"88456d6e-a6ed-4045-9ce1-917a2212879d","html_url":"https://github.com/Your-vo1d/Arithmetic-compression","commit_stats":null,"previous_names":["your-vo1d/-----","your-vo1d/arithmetic-compression"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Your-vo1d%2FArithmetic-compression","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Your-vo1d%2FArithmetic-compression/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Your-vo1d%2FArithmetic-compression/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Your-vo1d%2FArithmetic-compression/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Your-vo1d","download_url":"https://codeload.github.com/Your-vo1d/Arithmetic-compression/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239958283,"owners_count":19724925,"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":["arithmetic","arithmetic-coding","compressin","compression-algorithm"],"created_at":"2024-11-08T14:13:15.664Z","updated_at":"2026-04-01T14:30:21.537Z","avatar_url":"https://github.com/Your-vo1d.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Huffman Encoding and Decoding\n\nThis Python script implements Huffman encoding and decoding algorithms. Huffman encoding is a widely used technique for lossless data compression.\n\n## Usage\n\n1. Make sure you have Python installed on your system.\n2. Clone this repository or download the `main.py` file.\n3. Open a terminal or command prompt.\n4. Navigate to the directory containing the `main.py` file.\n5. Run the script using the following command:\n\n    ```\n    main.py\n    ```\n\n6. Follow the instructions to enter the name of the file you want to encode.\n7. The encoded and decoded files will be saved in the `result` directory.\n\n## Description\n\nThe script provides two main functions:\n- `encode(input_file, encode_file)`: Encodes the contents of the input file using Huffman encoding and writes the encoded data to the specified output file.\n- `decode(encode_file, decode_file)`: Decodes the encoded data from the input file and writes the decoded text to the specified output file.\n\n## File Structure\n\n- `main.py`: The main Python script.\n- `result`: Directory to store the encoded and decoded files.\n- `README.md`: Documentation explaining how to use the script.\n\n## Requirements\n\n- Python 3.x\n- The input file to be encoded\n\n## Example\n\nSuppose you have a text file named `input.txt` that you want to encode:\n\n1. Run the script and enter `input.txt` when prompted.\n2. The encoded file (`encode.txt`) and the decoded file (`decode.txt`) will be created in the `result` directory.\n\n## Author\n\nThis script was written by Your_Vo1d.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyour-vo1d%2Farithmetic-compression","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyour-vo1d%2Farithmetic-compression","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyour-vo1d%2Farithmetic-compression/lists"}