{"id":16217263,"url":"https://github.com/synodriver/pysmaz","last_synced_at":"2025-03-19T10:30:43.853Z","repository":{"id":41471275,"uuid":"509726656","full_name":"synodriver/pysmaz","owner":"synodriver","description":"compression for very small strings","archived":false,"fork":false,"pushed_at":"2024-04-14T06:02:50.000Z","size":318,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-14T10:51:06.313Z","etag":null,"topics":["cffi","compression","cython","smaz"],"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/synodriver.png","metadata":{"files":{"readme":"README.markdown","changelog":"changename.py","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":"2022-07-02T10:37:48.000Z","updated_at":"2023-02-14T09:41:23.000Z","dependencies_parsed_at":"2024-10-10T11:26:22.675Z","dependency_job_id":"22b2c959-7e54-46eb-b342-8f02e101536a","html_url":"https://github.com/synodriver/pysmaz","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/synodriver%2Fpysmaz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synodriver%2Fpysmaz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synodriver%2Fpysmaz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synodriver%2Fpysmaz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/synodriver","download_url":"https://codeload.github.com/synodriver/pysmaz/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244407729,"owners_count":20447842,"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":["cffi","compression","cython","smaz"],"created_at":"2024-10-10T11:26:20.887Z","updated_at":"2025-03-19T10:30:43.489Z","avatar_url":"https://github.com/synodriver.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\u003ci\u003e✨ Pysmaz ✨ \u003c/i\u003e\u003c/h1\u003e\n\n\u003ch3 align=\"center\"\u003eThe python binding for \u003ca href=\"https://github.com/antirez/smaz\"\u003esmaz\u003c/a\u003e \u003c/h3\u003e\n\n[![pypi](https://img.shields.io/pypi/v/python-smaz.svg)](https://pypi.org/project/python-smaz/)\n![python](https://img.shields.io/pypi/pyversions/python-smaz)\n![implementation](https://img.shields.io/pypi/implementation/python-smaz)\n![wheel](https://img.shields.io/pypi/wheel/python-smaz)\n![license](https://img.shields.io/github/license/synodriver/pysmaz.svg)\n![action](https://img.shields.io/github/workflow/status/synodriver/pysmaz/build%20wheel)\n\n### 安装\n\n```\npip install python-smaz\n```\n\n###  usage\n```python\nimport pysmaz\n\ndef compress(data: bytes, output_size: int = ...) -\u003e bytes: ...\ndef decompress(data: bytes, output_size: int = ...) -\u003e bytes: ...\ndef compress_into(data: bytes, output: bytearray) -\u003e int: ...\ndef decompress_into(data: bytes, output: bytearray) -\u003e int: ...\n```\n\n### 本机编译\n```\npython -m pip install setuptools wheel cython cffi\ngit clone https://github.com/synodriver/pysmaz\ncd pysmaz\ngit submodule update --init --recursive\npython setup.py bdist_wheel --use-cython --use-cffi\n```\n\n### 后端选择\n默认由py实现决定，在cpython上自动选择cython后端，在pypy上自动选择cffi后端，使用```SMAZ_USE_CFFI```环境变量可以强制选择cffi","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynodriver%2Fpysmaz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsynodriver%2Fpysmaz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynodriver%2Fpysmaz/lists"}