{"id":23116064,"url":"https://github.com/seung-lab/fpzip","last_synced_at":"2025-08-16T21:32:15.749Z","repository":{"id":32842647,"uuid":"144205676","full_name":"seung-lab/fpzip","owner":"seung-lab","description":"Cython bindings for fpzip, a floating point image compression algorithm.","archived":false,"fork":false,"pushed_at":"2025-03-19T20:04:48.000Z","size":1006,"stargazers_count":34,"open_issues_count":2,"forks_count":5,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-07-29T10:43:07.985Z","etag":null,"topics":["compression","connectomics","floating-point","image-analysis","numpy","python"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/seung-lab.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS"}},"created_at":"2018-08-09T21:32:43.000Z","updated_at":"2025-03-19T20:01:13.000Z","dependencies_parsed_at":"2023-12-19T07:22:58.813Z","dependency_job_id":null,"html_url":"https://github.com/seung-lab/fpzip","commit_stats":{"total_commits":66,"total_committers":3,"mean_commits":22.0,"dds":"0.045454545454545414","last_synced_commit":"1d41417c53fa0c085f4058febd6a8d19c011c8f4"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/seung-lab/fpzip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seung-lab%2Ffpzip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seung-lab%2Ffpzip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seung-lab%2Ffpzip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seung-lab%2Ffpzip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seung-lab","download_url":"https://codeload.github.com/seung-lab/fpzip/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seung-lab%2Ffpzip/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270775799,"owners_count":24642961,"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","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["compression","connectomics","floating-point","image-analysis","numpy","python"],"created_at":"2024-12-17T04:10:50.101Z","updated_at":"2025-08-16T21:32:15.468Z","avatar_url":"https://github.com/seung-lab.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![PyPI version](https://badge.fury.io/py/fpzip.svg)](https://badge.fury.io/py/fpzip)\n\n# fpzip\n\nfpzip is a compression algorithm supporting lossless and lossy encoding for up to 4 dimensional floating point data. This package contains Python C++ bindings for the fpzip algorithm (version 1.3.0). The version number for this package is independent. Python 3.7+ is supported.\n\n```python\nimport fpzip\nimport numpy as np\n\ndata = np.array(..., dtype=np.float32) # up to 4d float or double array\n# Compress data losslessly, interpreting the underlying buffer in C (default) or F order.\ncompressed_bytes = fpzip.compress(data, precision=0, order='C') # returns byte string\n# Back to 3d or 4d float or double array, decode as C (default) or F order.\ndata_again = fpzip.decompress(compressed_bytes, order='C') \n```\n\n## Installation\n\n#### `pip` Binary Installation  \n\n```bash\npip install fpzip\n```\n\nIf we have a precompiled binary available the above command should just work. However, if you have to compile from sounce, it's unfortunately necessary to install numpy first because of a quirk in the Python installation procedure that won't easily recognize when a numpy installation completes in the same process. There are some hacks, but I haven't gotten them to work.\n\n#### `pip` Source Installation\n\n*Requires C++ compiler.*\n\n```bash\npip install numpy\npip install fpzip\n```\n\n#### Direct Installation\n\n*Requires C++ compiler.*  \n\n```bash\n$ pip install numpy\n$ python setup.py develop\n```\n\n## References\n\nAlgorithm and C++ code by Peter Lindstrom and Martin Isenburg. Cython interface code by William Silversmith. Check out [Dr. Lindstrom's site](https://computing.llnl.gov/projects/fpzip) or the [fpzip Github page](https://github.com/LLNL/fpzip).\n\n1. Peter Lindstrom and Martin Isenburg, \"[Fast and Efficient Compression of Floating-Point Data,](https://www.researchgate.net/publication/6715625_Fast_and_Efficient_Compression_of_Floating-Point_Data)\" IEEE Transactions on Visualization and Computer Graphics, 12(5):1245-1250, September-October 2006, doi:[10.1109/TVCG.2006.143](http://dx.doi.org/10.1109/TVCG.2006.143).  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseung-lab%2Ffpzip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseung-lab%2Ffpzip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseung-lab%2Ffpzip/lists"}