{"id":13541192,"url":"https://github.com/bluk/nu_plugin_from_bencode","last_synced_at":"2025-04-09T06:43:53.252Z","repository":{"id":62444453,"uuid":"303031859","full_name":"bluk/nu_plugin_from_bencode","owner":"bluk","description":"A converter plugin from the bencode format for Nushell.","archived":false,"fork":false,"pushed_at":"2024-05-11T01:16:46.000Z","size":128,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"trunk","last_synced_at":"2025-03-29T11:03:08.200Z","etag":null,"topics":["bencode","bencoding","nushell-plugin"],"latest_commit_sha":null,"homepage":"https://docs.rs/nu_plugin_from_bencode/","language":"Rust","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/bluk.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2020-10-11T03:06:57.000Z","updated_at":"2024-05-11T00:42:31.000Z","dependencies_parsed_at":"2023-12-16T05:32:55.222Z","dependency_job_id":"f627b0e1-49f7-4d5f-b582-5e9e2059c649","html_url":"https://github.com/bluk/nu_plugin_from_bencode","commit_stats":{"total_commits":11,"total_committers":2,"mean_commits":5.5,"dds":0.4545454545454546,"last_synced_commit":"9717987c85179cc4d7f5b6d15403e426788c1384"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluk%2Fnu_plugin_from_bencode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluk%2Fnu_plugin_from_bencode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluk%2Fnu_plugin_from_bencode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluk%2Fnu_plugin_from_bencode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bluk","download_url":"https://codeload.github.com/bluk/nu_plugin_from_bencode/tar.gz/refs/heads/trunk","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247994102,"owners_count":21030049,"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":["bencode","bencoding","nushell-plugin"],"created_at":"2024-08-01T10:00:40.881Z","updated_at":"2025-04-09T06:43:53.231Z","avatar_url":"https://github.com/bluk.png","language":"Rust","readme":"# Nu Plugin From Bencode\n\nA converter plugin from the [bencode][bep_0003] format for [Nushell][nushell].\n\nThe plugin was last tested on nushell version `0.93.0`.\n\nThe plugin is unstable as the interface `Nu` for plugins is unstable.\n\nThe plugin could be useful for inspecting a [BitTorrent][bittorrent] metainfo\nfile (*.torrent), but it is primarily used to explore writing a `Nu` plugin.\n\n## Installation\n\n```sh\ncargo install nu_plugin_from_bencode\n```\n\n[Register][nushell_register] the plugin:\n\n```sh\nregister \u003cpath to plugin\u003e/nu_plugin_from_bencode\n```\n\nBy default, cargo installs to `$HOME/.cargo/bin` on Unix systems.\n\n## Usage\n\nThe `from bencode` command is provided with no parameter arguments.\n\nTo use:\n\n```sh\n\u003e open ubuntu-20.04.4-live-server-amd64.iso.torrent | from bencode\n╭───────────────┬─────────────────────────────────────╮\n│ announce      │ https://torrent.ubuntu.com/announce │\n│ announce-list │ [list 2 items]                      │\n│ comment       │ Ubuntu CD releases.ubuntu.com       │\n│ created by    │ mktorrent 1.1                       │\n│ creation date │ 1645734525                          │\n│ info          │ {record 4 fields}                   │\n╰───────────────┴─────────────────────────────────────╯\n\u003e open ubuntu-20.04.4-live-server-amd64.iso.torrent | from bencode | select announce-list.0.0\n╭───────────────────┬─────────────────────────────────────╮\n│ announce-list.0.0 │ https://torrent.ubuntu.com/announce │\n╰───────────────────┴─────────────────────────────────────╯\n\u003e open ubuntu-20.04.4-live-server-amd64.iso.torrent | from bencode | get announce-list.1.0\nhttps://ipv6.torrent.ubuntu.com/announce\n\u003e open ubuntu-20.04.1-live-server-amd64.iso.torrent | from bencode | select info.name info.length\n╭─────────────┬──────────────────────────────────────╮\n│ info.name   │ ubuntu-20.04.4-live-server-amd64.iso │\n│ info.length │ 1331691520                           │\n╰─────────────┴──────────────────────────────────────╯\n```\n\n## License\n\nLicensed under either of [Apache License, Version 2.0][LICENSE_APACHE] or [MIT\nLicense][LICENSE_MIT] at your option.\n\n### Contributions\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n\n[LICENSE_APACHE]: LICENSE-APACHE\n[LICENSE_MIT]: LICENSE-MIT\n[bep_0003]: http://bittorrent.org/beps/bep_0003.html\n[nushell]: https://www.nushell.sh/\n[bittorrent]: http://bittorrent.org/\n[nushell_register]: https://www.nushell.sh/book/plugins.html#adding-a-plugin\n","funding_links":[],"categories":["Plugins"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluk%2Fnu_plugin_from_bencode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbluk%2Fnu_plugin_from_bencode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluk%2Fnu_plugin_from_bencode/lists"}