{"id":27283870,"url":"https://github.com/purplesyringa/bencode-open","last_synced_at":"2026-03-10T02:32:32.327Z","repository":{"id":57414626,"uuid":"219195955","full_name":"purplesyringa/bencode-open","owner":"purplesyringa","description":"Open-source MIT-licensed library for parsing and converting objects to and from bencode format","archived":false,"fork":false,"pushed_at":"2019-11-17T08:50:25.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-12-16T04:18:11.157Z","etag":null,"topics":["bencode","bencode-parser","mit-license"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/purplesyringa.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":"2019-11-02T18:24:34.000Z","updated_at":"2023-04-07T20:56:29.000Z","dependencies_parsed_at":"2022-09-12T12:10:26.489Z","dependency_job_id":null,"html_url":"https://github.com/purplesyringa/bencode-open","commit_stats":null,"previous_names":["purplesyringa/bencode-open","imachug/bencode-open"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/purplesyringa/bencode-open","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purplesyringa%2Fbencode-open","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purplesyringa%2Fbencode-open/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purplesyringa%2Fbencode-open/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purplesyringa%2Fbencode-open/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/purplesyringa","download_url":"https://codeload.github.com/purplesyringa/bencode-open/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purplesyringa%2Fbencode-open/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30322645,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T01:36:58.598Z","status":"online","status_checked_at":"2026-03-10T02:00:06.579Z","response_time":106,"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":["bencode","bencode-parser","mit-license"],"created_at":"2025-04-11T18:46:22.537Z","updated_at":"2026-03-10T02:32:32.274Z","avatar_url":"https://github.com/purplesyringa.png","language":"Python","readme":"# bencode\n\n`bencode-open` is an open-source MIT-licensed library for parsing and converting\nobjects to and from [Bencode format](https://en.wikipedia.org/wiki/Bencode).\n\n\n## Rationale\n\n`bencode-open` is MIT-licensed and can thus be included to almost all software,\ncompared to `bencode` and `bencode.py`.\n\n\n## Installation\n\n`bencode-open` is available on [GitHub](https://github.com/imachug/bencode-open)\nand on [PyPI](https://pypi.org/project/bencode-open/).\n\nInstalling `bencode-open` from PyPI is recommended and can be done as follows:\n\n```\npip install bencode-open\n```\n\n\n## Usage\n\n```python\nimport bencode_open\n\nprint(bencode_open.dumps(b\"Hello?\"))  # Outputs b\"6:Hello?\"\nprint(bencode_open.dumps(17))  # Outputs b\"i17e\"\n\nprint(bencode_open.loads(b\"6:Hello?\"))  # Outputs b\"Hello?\"\nprint(bencode_open.loads(b\"i17e\"))  # Outputs 17\n```\n\n\n## Running tests\n\n```\npython test.py\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurplesyringa%2Fbencode-open","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpurplesyringa%2Fbencode-open","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpurplesyringa%2Fbencode-open/lists"}