{"id":17718309,"url":"https://github.com/synodriver/lua-bencode","last_synced_at":"2025-07-31T04:39:41.361Z","repository":{"id":258790693,"uuid":"875265352","full_name":"synodriver/lua-bencode","owner":"synodriver","description":"lua bencode library, written in C","archived":false,"fork":false,"pushed_at":"2024-10-21T13:30:17.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-22T03:11:59.608Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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":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,"publiccode":null,"codemeta":null}},"created_at":"2024-10-19T14:24:35.000Z","updated_at":"2024-10-21T13:30:20.000Z","dependencies_parsed_at":"2024-10-27T05:48:31.513Z","dependency_job_id":null,"html_url":"https://github.com/synodriver/lua-bencode","commit_stats":null,"previous_names":["synodriver/lua-bencode"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/synodriver/lua-bencode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synodriver%2Flua-bencode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synodriver%2Flua-bencode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synodriver%2Flua-bencode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synodriver%2Flua-bencode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/synodriver","download_url":"https://codeload.github.com/synodriver/lua-bencode/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synodriver%2Flua-bencode/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267988489,"owners_count":24176996,"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-07-31T02:00:08.723Z","response_time":66,"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":[],"created_at":"2024-10-25T14:43:49.847Z","updated_at":"2025-07-31T04:39:41.341Z","avatar_url":"https://github.com/synodriver.png","language":"C","readme":"\u003ch1 align=\"center\"\u003e\u003ci\u003e✨ lua-bencode ✨ \u003c/i\u003e\u003c/h1\u003e\n\n\u003ch3 align=\"center\"\u003eThe C extension of bencode\u003c/a\u003e \u003c/h3\u003e\n\n```lua\nlocal bencode = require(\"bencode\")\n\nprint(bencode.loads(\"i1233e\"))\nprint(bencode.loads(\"i-1233e\"))\nprint(bencode.loads(\"6:string\"))\nprint(\"---------\")\nfor k,v in pairs(bencode.loads(\"d3:age9:Ein Verne9:interestsi18e4:namel4:book5:movieee\")) do\n    print(k, v)\n    if type(v) == \"table\" then\n        for k1, v1 in pairs(v) do\n            print(\" \", k1, v1)\n        end\n    end\nend\nprint(\"---------\")\nfor k,v in pairs(bencode.loads(\"l7:contenti42ee\")) do\n    print(k, v)\nend\nprint(pcall(bencode.loads, \"i00e\"))\n\nprint(bencode.dumps({1,2,3, \"3141\"}))\nprint(bencode.dumps({[\"123\"]=\"ddsaf\", [\"1243\"]=12}, 100000))\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynodriver%2Flua-bencode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsynodriver%2Flua-bencode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynodriver%2Flua-bencode/lists"}