{"id":37071931,"url":"https://github.com/frankurcrazy/fpack","last_synced_at":"2026-01-14T08:26:46.790Z","repository":{"id":39879921,"uuid":"287162954","full_name":"frankurcrazy/fpack","owner":"frankurcrazy","description":"A simple pure-python message (de)serializer for fun.","archived":false,"fork":false,"pushed_at":"2023-02-23T18:14:44.000Z","size":50,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-18T04:27:59.076Z","etag":null,"topics":["deserializer","message","packer","python","serializer","struct","unpacker"],"latest_commit_sha":null,"homepage":"","language":"Python","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/frankurcrazy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-13T02:34:32.000Z","updated_at":"2022-06-14T08:44:36.000Z","dependencies_parsed_at":"2023-02-17T09:15:42.093Z","dependency_job_id":null,"html_url":"https://github.com/frankurcrazy/fpack","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/frankurcrazy/fpack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frankurcrazy%2Ffpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frankurcrazy%2Ffpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frankurcrazy%2Ffpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frankurcrazy%2Ffpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frankurcrazy","download_url":"https://codeload.github.com/frankurcrazy/fpack/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frankurcrazy%2Ffpack/sbom","scorecard":{"id":409701,"data":{"date":"2025-08-11","repo":{"name":"github.com/frankurcrazy/fpack","commit":"ce2369ec3018b20d79f101ed0b439fd312681472"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-18T22:22:44.950Z","repository_id":39879921,"created_at":"2025-08-18T22:22:44.950Z","updated_at":"2025-08-18T22:22:44.950Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28413966,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:16:59.381Z","status":"ssl_error","status_checked_at":"2026-01-14T08:13:45.490Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["deserializer","message","packer","python","serializer","struct","unpacker"],"created_at":"2026-01-14T08:26:45.993Z","updated_at":"2026-01-14T08:26:46.776Z","avatar_url":"https://github.com/frankurcrazy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fpack\n\n[![PyPI version](https://badge.fury.io/py/fpack.svg?kill_cache=2)](https://badge.fury.io/py/fpack)\n[![Build Status](https://travis-ci.com/frankurcrazy/fpack.svg?branch=master\u0026kill_cached=2)](https://travis-ci.com/frankurcrazy/fpack)\n[![Coverage Status](https://coveralls.io/repos/github/frankurcrazy/fpack/badge.svg?branch=master\u0026kill_cache=2)](https://coveralls.io/github/frankurcrazy/fpack?branch=master)\n\n***fpack*** is a simple message (de)serializer created for fun and educational purpose.\nfpack hasn't been widely deployed, so use it at your own risk.\n\n## Requirements\n\n- python \u003e= 3.7\n\n## Installation\n\n### Install with pip\n\n```bash\npip install fpack\n```\n\n### Download latest version from git\n\n```bash\ngit clone https://github.com/frankurcrazy/fpack\ncd fpack \u0026\u0026 python setup.py install\n```\n\n## Guide\n\nThe following shows an example that uses fpack to declare and pack/unpack a message.\n\n### Primitive types\n\n***fpack*** supports primitive types:\n\n- Uint8\n- Uint16\n- Uint32\n- Uint64\n- Int8\n- Int16\n- Int32\n- Int64\n- Bytes\n- String\n\n### Message declaration\n\n```python\nimport fpack\n\n# Declare a Hello message, with MsgID (`Uint8`) and Greeting (`String`) field.\nclass Hello(fpack.Message):\n    Fields = [\n        fpack.field_factory(\"MsgID\", fpack.Uint8),\n        fpack.field_factory(\"Greeting\", fpack.String),\n    ]\n```\n\n### Message serialization\n\n```python\n\u003e\u003e\u003e helloMsg = Hello()\n\u003e\u003e\u003e helloMsg.MsgID = 100\n\u003e\u003e\u003e helloMsg.Greetings = \"Helloworld!\"\n\u003e\u003e\u003e helloMsg\n\u003cHello MsgID=100 Greetings=\"Helloworld!\"\u003e\n\u003e\u003e\u003e helloMsg.pack()\nb'd\\x00\\x0bHelloworld!'\n```\n\n### Message deserialization\n\nMessage deserialization can be done by calling class method `from_bytes`,\nor by calling instance method `unpack`\n\nDecode with class method `from_bytes`:\n\n```python\n# using the byte-stream from previous example\n\u003e\u003e\u003e decodedMsg, decodedLength = Hello.from_bytes(b'd\\x00\\x0bHelloworld!')\n\u003e\u003e\u003e decodedMsg\n\u003cHello MsgID=100 Greetings=Helloworld!\u003e\n```\n\nDecode with instance method `unpack`:\n\n```python\n\u003e\u003e\u003e decodedMsg = Hello()\n\u003e\u003e\u003e decodedMsg.unpack(b'd\\x00\\x0bHelloworld!')\n16\n\u003e\u003e\u003e decodedMsg\n\u003cHello MsgID=100 Greetings=\"Helloworld!\"\u003e\n```\n\n### Nested message (from 0.0.5 and beyond)\n\nNested message is supported.\n\nDeclaring an nested message:\n\n```python\nimport fpack\n\nclass MailHeader(fpack.Message):\n    Fields = [\n        fpack.field_factory(\"Subject\", fpack.String),\n        fpack.field_factory(\"From\", fpack.String),\n        fpack.field_factory(\"To\", fpack.String),\n    ]\n\nclass MailBody(fpack.Message):\n    Fields = [\n        fpack.field_factory(\"Body\", fpack.String),\n        fpack.field_factory(\"Signature\", fpack.String),\n    ]\n\nclass Mail(fpack.Message):\n    Fields = [\n        fpack.field_factory(\"Header\", MailHeader),\n        fpack.field_factory(\"Body\", MailBody),\n    ]\n\n\u003e\u003e\u003e mail = Mail()\n\u003e\u003e\u003e header = mail.Header\n\u003e\u003e\u003e header.Subject = \"this is a mail\"\n\u003e\u003e\u003e header.From = \"John Doe\"\n\u003e\u003e\u003e header.To = \"Jane Doe\"\n\u003e\u003e\u003e body = mail.Body\n\u003e\u003e\u003e body.Text = \"mail body\"\n\u003e\u003e\u003e body.Signature = \"by John doe\"\n\u003e\u003e\u003e mail\n\u003cMail Header=\u003cHeader Subject=\"this is a mail\" From=\"John Doe\" To=\"Jane Doe\"\u003e Body=\u003cBody Text=\"mail body\" Signature=\"by John doe\"\u003e\u003e\n\u003e\u003e\u003e mail.pack()\nb'\\x00\\x0ethis is a mail\\x00\\x08John Doe\\x00\\x08Jane Doe\\x00\\tmail body\\x00\\x0bby John doe'\n```\n\n### Array (from 1.0.0 and beyond)\n\nArray field is supported and can be created via ```array_field_factory(name, type)```.\n\n```python\nimport fpack\n\nclass Item(fpack.Message):\n    Fields = [\n        fpack.field_factory(\"Name\", fpack.String),\n        fpack.field_factory(\"Price\", fpack.Uint32),\n    ]\n\nclass Catalog(fpack.Message):\n    Fields = [\n        fpack.field_factory(\"CatalogID\", fpack.Uint8),\n        fpack.array_field_factory(\"Items\", Item),\n    ]\n\nitems = [\n    Item(Name=\"Camera\", Price=10),\n    Item(Name=\"Computer\", Price=12),\n    Item(Name=\"Dildo\", Price=5),\n]\n\n\u003e\u003e\u003e catalog = Catalog(CatalogID=1, Items=items)\n\u003cCatalog CatalogID=1 Items=\u003cItems length=3 items=[\u003cItem Name=\"Camera\" Price=10\u003e,\u003cItem Name=\"Computer\" Price=12\u003e,\u003cItem Name=\"Dildo\" Price=5\u003e]\u003e\u003e\n\u003e\u003e\u003e catalog.pack()\nb'\\x01\\x00\\x03\\x00\\x06Camera\\x00\\x00\\x00\\n\\x00\\x08Computer\\x00\\x00\\x00\\x0c\\x00\\x05Dildo\\x00\\x00\\x00\\x05'\n```\n\n## License\n\nBSD\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrankurcrazy%2Ffpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrankurcrazy%2Ffpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrankurcrazy%2Ffpack/lists"}