{"id":16935345,"url":"https://github.com/dsander/transmission-client","last_synced_at":"2025-03-17T07:32:23.436Z","repository":{"id":701468,"uuid":"347276","full_name":"dsander/transmission-client","owner":"dsander","description":"A Transmission RPC Client","archived":false,"fork":false,"pushed_at":"2014-05-18T22:37:40.000Z","size":149,"stargazers_count":44,"open_issues_count":1,"forks_count":23,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-10-14T20:54:17.382Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://github.com/dsander/transmission-client","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"bevanhunt/meteor-leaflet","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dsander.png","metadata":{"files":{"readme":"README.markdown","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":"2009-10-23T14:49:50.000Z","updated_at":"2024-04-04T14:20:34.000Z","dependencies_parsed_at":"2022-07-05T09:42:46.080Z","dependency_job_id":null,"html_url":"https://github.com/dsander/transmission-client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsander%2Ftransmission-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsander%2Ftransmission-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsander%2Ftransmission-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsander%2Ftransmission-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dsander","download_url":"https://codeload.github.com/dsander/transmission-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221674243,"owners_count":16861803,"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":[],"created_at":"2024-10-13T20:54:17.912Z","updated_at":"2024-10-27T12:15:57.404Z","avatar_url":"https://github.com/dsander.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# transmission-client: A Transmission RPC Client\n\n**Please note, with the current release i dropped support for the blocking api. Eventmachine is now required.**\n\nThe goal is to support all requests described in the Transmission [RPC Specifications](http://trac.transmissionbt.com/browser/trunk/doc/rpc-spec.txt).\n\n## Installing\nYou need to have http://gemcutter.org in you gem sources. To add it you can execute either\n\n\tsudo gem install gemcutter\n\tsudo gem tumble\n\nor\n\n\tsudo gem source -a http://gemcutter.org\n\nTo install transmission-client:\n\n\tsudo gem install transmission-client\n\n## Usage\nGet a list of torrents and print its file names:\n\n\trequire 'transmission-client'\n\n\tEventMachine.run do\n\t  t = Transmission::Client.new\n\t  EM.add_periodic_timer(1) do\n\t    t.torrents do |torrents|\n\t      torrents.each do |tor|\n\t        puts tor.percentDone\n\t      end\n\t    end\n\t  end\n\tend\n\t\nAuthentication support (thanks hornairs):\n\n\tt = Transmission::Client.new('127.0.0.1', 9091, 'username', 'password')\n\t\nCallbacks:\n\n\tEventMachine.run do\n\t\tt = Transmission::Client.new\n\t  \t\n\t  \tt.on_download_finished do |torrent|\n\t  \t  puts \"Wha torrent finished\"\n\t  \tend\n\t  \tt.on_torrent_stopped do |torrent|\n\t  \t  puts \"Oooh torrent stopped\"\n\t  \tend\n\t  \tt.on_torrent_started do |torrent|\n\t  \t  puts \"Torrent started.\"\n\t  \tend\n\t  \tt.on_torrent_removed do |torrent|\n\t  \t  puts \"Darn torrent deleted.\"\n\t  \tend\n\tend\n\t\nRDoc is still to be written, at the meantime have a look at the code to find out which methods are supported.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsander%2Ftransmission-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdsander%2Ftransmission-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsander%2Ftransmission-client/lists"}