{"id":34038750,"url":"https://github.com/lewoudar/kifurushi","last_synced_at":"2026-04-11T10:01:29.773Z","repository":{"id":38199931,"uuid":"326233010","full_name":"lewoudar/kifurushi","owner":"lewoudar","description":"A simple library to build network packets","archived":false,"fork":false,"pushed_at":"2024-07-15T19:33:10.000Z","size":590,"stargazers_count":2,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-15T13:17:49.877Z","etag":null,"topics":["kifurushi","networking","packet","protocol","sans-io"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lewoudar.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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":null,"dei":null}},"created_at":"2021-01-02T17:17:31.000Z","updated_at":"2023-08-01T12:15:33.000Z","dependencies_parsed_at":"2024-01-13T20:49:19.602Z","dependency_job_id":null,"html_url":"https://github.com/lewoudar/kifurushi","commit_stats":{"total_commits":83,"total_committers":2,"mean_commits":41.5,"dds":"0.012048192771084376","last_synced_commit":"bc3babfc7bf9fd20f36fd8ad51862cd979009cc7"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/lewoudar/kifurushi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lewoudar%2Fkifurushi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lewoudar%2Fkifurushi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lewoudar%2Fkifurushi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lewoudar%2Fkifurushi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lewoudar","download_url":"https://codeload.github.com/lewoudar/kifurushi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lewoudar%2Fkifurushi/sbom","scorecard":{"id":586477,"data":{"date":"2025-08-11","repo":{"name":"github.com/lewoudar/kifurushi","commit":"7f04ce033d8d3b0a56c12407461c3f5d569b9b00"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/25 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":"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":"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/publish.yml:1","Info: no jobLevel write permissions found"],"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":"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":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/lewoudar/kifurushi/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/lewoudar/kifurushi/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/lewoudar/kifurushi/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/lewoudar/kifurushi/publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/lewoudar/kifurushi/publish.yml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:27","Warn: pipCommand not pinned by hash: .github/workflows/publish.yml:21","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   2 pipCommand dependencies pinned"],"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: 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"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 13 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"14 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2024-230 / GHSA-248v-346w-9cwc","Warn: Project is vulnerable to: GHSA-cpwx-vrp4-4pq7","Warn: Project is vulnerable to: GHSA-gmj6-6f8f-6699","Warn: Project is vulnerable to: GHSA-h75v-3vvj-5mfj","Warn: Project is vulnerable to: GHSA-q2x7-8rv6-6q7h","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2025-49 / GHSA-5rjg-fvgr-3xxf","Warn: Project is vulnerable to: GHSA-cx63-2mw6-8hw5","Warn: Project is vulnerable to: GHSA-34jh-p97f-mpxf","Warn: Project is vulnerable to: GHSA-48p4-8xcf-vxj5","Warn: Project is vulnerable to: GHSA-pq67-6m6q-mj2v","Warn: Project is vulnerable to: PYSEC-2024-187 / GHSA-rqc4-2hc7-8c8v","Warn: Project is vulnerable to: GHSA-jfmj-5v4g-7637"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T20:38:43.175Z","repository_id":38199931,"created_at":"2025-08-20T20:38:43.175Z","updated_at":"2025-08-20T20:38:43.175Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31676210,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T08:18:19.405Z","status":"ssl_error","status_checked_at":"2026-04-11T08:17:08.892Z","response_time":54,"last_error":"SSL_read: 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":["kifurushi","networking","packet","protocol","sans-io"],"created_at":"2025-12-13T21:05:49.803Z","updated_at":"2026-04-11T10:01:29.761Z","avatar_url":"https://github.com/lewoudar.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kifurushi\n\n[![Pypi version](https://img.shields.io/pypi/v/kifurushi.svg)](https://pypi.org/project/kifurushi/)\n[![](https://github.com/lewoudar/kifurushi/workflows/CI/badge.svg)](https://github.com/lewoudar/kifurushi/actions)\n[![Coverage Status](https://codecov.io/gh/lewoudar/kifurushi/branch/main/graphs/badge.svg?branch=main)](https://codecov.io/gh/lewoudar/kifurushi)\n[![Documentation Status](https://readthedocs.org/projects/kifurushi/badge/?version=latest)](https://kifurushi.readthedocs.io/en/latest/?badge=latest)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/lewoudar/ws)\n[![License Apache 2](https://img.shields.io/hexpm/l/plug.svg)](http://www.apache.org/licenses/LICENSE-2.0)\n[![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)](https://github.com/lewoudar/kifurushi)\n\nA simple library to forge network packets.\n\n## Why?\n\nI was playing with the DNS protocol using the excellent [scapy](https://scapy.readthedocs.io/) library.\nIt is very simple to forge network data with this library. I have always wondered why protocol libraries like\n[h2](https://hyper-h2.readthedocs.io/en/stable/) or [aioquic](https://aioquic.readthedocs.io/en/latest/) don't use it\nto forge packets instead of doing it all by hands and then I thought maybe it is because it will be overkill to import\nthe whole library containing many protocol implementations just for one thing you want to use (or maybe library authors\ndon't know the scapy library...). It would be glad to just use the scapy ability to forge packets without importing the\n**huge** protocol library. This is where the idea of *kifurushi* comes from.\n\nIt is a simple library that will help you forge network data quickly. It is less capable than scapy because its specific\ngoal is to implement a concrete protocol as opposed to scapy which makes it possible to give free rein to its imagination.\nSo if you find that your needs cannot be simply express with kifurushi, you probably need to use scapy.\n\n## Installation\n\nwith pip:\n\n```bash\npip install kifurushi\n```\n\nWith [poetry](https://python-poetry.org/docs/) an alternative package manager:\n\n```bash\npoetry add kifurushi\n```\n\nkifurushi starts working from **python3.7** and also supports **pypy3**. It has one dependency:\n* [attrs](https://www.attrs.org/en/stable/): A library helping to write classes without pain.\n\n## Documentation\n\nThe documentation is available at https://kifurushi.readthedocs.io\n\n## Usage\n\n```python\nimport socket\nimport enum\nfrom kifurushi import Packet, ShortField, ByteField, IntEnumField\n\nHOST = 'disney-stuff.com'\nPORT = 14006\n\n\nclass Mood(enum.Enum):\n  happy = 1\n  cool = 2\n  angry = 4\n\n\nclass Disney(Packet):\n  __fields__ = [\n    ShortField('mickey', 2),\n    ByteField('minnie', 3, hex=True),\n    IntEnumField('donald', 1, Mood)\n  ]\n\n\nwith socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:\n  disney = Disney()\n  s.connect((HOST, PORT))\n  disney.donald = Mood.cool.value\n  # we send the packet data\n  s.sendall(disney.raw)\n  # we create another packet object from raw bytes\n  received_packet = Disney.from_bytes(s.recv(1024))\n  print(received_packet)\n```\n\nTo see more protocol implementations check the folder [examples](examples) of the project.\n\n## Warnings\n\n* If you use the excellent [Pycharm](https://www.jetbrains.com/pycharm/) editor, you may notice weird warnings when\n  instantiating kifurushi fields. At the moment I'm writing this documentation, I'm using Pycharm 2020.3 and there is\n  an [issue](https://youtrack.jetbrains.com/issue/PY-46298) when subclassing **attrs** classes. So just ignore the\n  warning saying to fill the *format* parameter if you don't need it.\n* kifurushi is a young project, so it is expected to have breaking changes in the api without respecting the\n  [semver](https://semver.org/) principle. It is recommended to pin the version you are using for now.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flewoudar%2Fkifurushi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flewoudar%2Fkifurushi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flewoudar%2Fkifurushi/lists"}