{"id":29090633,"url":"https://github.com/mfuentesg/transmission","last_synced_at":"2025-06-28T05:06:12.635Z","repository":{"id":57519211,"uuid":"249053544","full_name":"mfuentesg/transmission","owner":"mfuentesg","description":"transmission torrent wrapper written in go","archived":false,"fork":false,"pushed_at":"2021-05-30T02:55:19.000Z","size":158,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-01T14:42:24.245Z","etag":null,"topics":["golang","rpc","transmission","transmission-rpc"],"latest_commit_sha":null,"homepage":"","language":"Go","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/mfuentesg.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-03-21T20:17:02.000Z","updated_at":"2021-05-30T02:55:21.000Z","dependencies_parsed_at":"2022-09-06T03:42:27.253Z","dependency_job_id":null,"html_url":"https://github.com/mfuentesg/transmission","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mfuentesg/transmission","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfuentesg%2Ftransmission","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfuentesg%2Ftransmission/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfuentesg%2Ftransmission/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfuentesg%2Ftransmission/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mfuentesg","download_url":"https://codeload.github.com/mfuentesg/transmission/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mfuentesg%2Ftransmission/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262376658,"owners_count":23301383,"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":["golang","rpc","transmission","transmission-rpc"],"created_at":"2025-06-28T05:06:11.903Z","updated_at":"2025-06-28T05:06:12.628Z","avatar_url":"https://github.com/mfuentesg.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# transmission\n\n![](https://img.shields.io/codecov/c/github/mfuentesg/transmission/master)\n![](https://img.shields.io/github/languages/top/mfuentesg/transmission)\n![](https://github.com/mfuentesg/transmission/workflows/Go/badge.svg?branch=master)\n![](https://img.shields.io/github/license/mashape/apistatus.svg?maxAge=2592000)\n\nThis repository it's a wrapper for [`transmission RPC API`](https://github.com/transmission/transmission/blob/master/extras/rpc-spec.txt).\n\n## Available methods\n\n- [x] torrent-start\n- [x] torrent-start-now\n- [x] torrent-stop\n- [x] torrent-verify\n- [x] torrent-reannounce\n- [x] torrent-set\n- [x] torrent-get\n- [x] torrent-add\n- [x] torrent-remove\n- [x] torrent-set-location\n- [x] torrent-rename-path\n- [x] session-close\n- [x] session-get\n- [x] session-set\n- [x] session-stats\n- [x] queue-move-top\n- [x] queue-move-up\n- [x] queue-move-down\n- [x] queue-move-bottom\n- [x] free-space\n- [x] port-test\n- [x] blocklist-update\n\nFor more information read [spec file](https://github.com/transmission/transmission/blob/master/extras/rpc-spec.txt).\n\n## Installation\n\n```bash\ngo get -u github.com/mfuentesg/transmission\n```\n\n## Examples\n\n\u003e Check connectivity with transmission service\n\n```go\npackage main\n\nimport (\n    \"context\"\n    \"log\"\n\n    \"github.com/mfuentesg/transmission\"\n)\n\nfunc main() {\n    client := transmission.New(\n\ttransmission.WithURL(\"http://service-url.com/tranmission/rpc\"),\n\ttransmission.WithBasicAuth(\"username\", \"password\"),\n    )\n\n    // this method is not part of the spec (it just check connectivity)\n    if err := client.Ping(context.Background()); err != nil {\n        log.Fatalf(\"could not connect to transmission service: %+v\", err)\n    }\n\n    log.Println(\"connected to the transmission service\")\n}\n```\n\n\u003e Get list of torrents\n```go\npackage main\n\nimport (\n    \"context\"\n    \"fmt\"\n    \"log\"\n\n    \"github.com/mfuentesg/transmission\"\n)\n\nfunc main() {\n    client := transmission.New(\n        transmission.WithURL(\"http://service-url.com/tranmission/rpc\"),\n\ttransmission.WithBasicAuth(\"username\", \"password\"),\n    )\n\n    // get list of torrents\n    // For know more about the available fields, take a look to the below link\n    // https://github.com/transmission/transmission/blob/20119f006ca0f3a13245b379c74254c92f372910/extras/rpc-spec.txt#L111\n    torrents, err := client.TorrentGet(context.Background(), transmission.TorrentGet{\n        Ids: 17, // search by id, you can use hashString as well\n        Fields: []string{\"id\", \"hashString\"},\n    })\n\n    if err != nil {\n        log.Fatalf(\"could not get torrent list: %+v\", err)\n    }\n\n    for _, torrent := range torrents {\n    \tfmt.Printf(\"torrent with id %d and hashString %s\\n\", torrent.ID, torrent.HashString)\n    }\n}\n```\n\n## TODO\n- [ ] Improve README file\n- [ ] Add documentation to each function and reference to transmission fields\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfuentesg%2Ftransmission","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmfuentesg%2Ftransmission","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmfuentesg%2Ftransmission/lists"}