emissionrpc-0.4.5
توضیحات
Emission, Another Wrapper JSON-RPC to Transmission
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | emissionrpc-0.4.5 |
| نام | emissionrpc |
| نسخه کتابخانه | 0.4.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Jerome Pradier |
| ایمیل نویسنده | jerome.pradier@gmail.com |
| آدرس صفحه اصلی | https://github.com/Germione/emissionrpc |
| آدرس اینترنتی | https://pypi.org/project/emissionrpc/ |
| مجوز | MIT |
EmissionRPC
===========
.. image:: https://img.shields.io/pypi/v/emissionrpc.svg?style=flat-square
:target: emissionrpc
.. image:: https://img.shields.io/pypi/pyversions/emissionrpc.svg?style=flat-square
:target: emissionrpc
EmissionRPC, a (Yet Another) Python wrapper JSON-RPC to `Transmission <http://transmissionbt.com/>`_ BitTorrent client.
See the `RPC interface <https://trac.transmissionbt.com/browser/trunk/extras/rpc-spec.txt>`_ .
Prerequisites
-------------
python 2.7 and 3.6
How to install
--------------
.. code-block:: bash
$ pip install emissionrpc
Usage
-----
.. code-block:: python3
import emissionrpc
emitter = emissionrpc.Client()
# Get the torrent's list
emitter.list_torrent()
# Adding a torrent (the torrent is not started)
emitter.add_torrent('http://urltorrent.torrent')
# To start all the torrents
emitter.start()
# To start a specific torrent (pass the id to the client)
emitter.start(1)
# To delete a torrent (pass the id to the client)
emitter.delete(3)
نیازمندی
| مقدار | نام |
|---|---|
| - | requests |
نحوه نصب
نصب پکیج whl emissionrpc-0.4.5:
pip install emissionrpc-0.4.5.whl
نصب پکیج tar.gz emissionrpc-0.4.5:
pip install emissionrpc-0.4.5.tar.gz