Session¶
- class transmission_rpc.Session[source]¶
Session is a class holding the session data for a Transmission daemon.
Access the session field can be done through attributes. The attributes available are the same as the session arguments in the Transmission RPC specification, but with underscore instead of hyphen.
You should use
session.download_dirto get'download-dir'.session = Client().get_session() current = session.download_dir
https://github.com/transmission/transmission/blob/main/docs/rpc-spec.md#41-session-arguments
Warning
setter on session’s properties has been removed, please use :py:meth`Client.set_session` instead
- property alt_speed_time_begin: int[source]¶
minutes after midnight)
- Type:
when to turn on alt speeds (units
- property cache_size_mb: int[source]¶
Compatibility alias for
cache_size_mib.
- property download_queue_enabled: bool[source]¶
if true, limit how many torrents can be downloaded at once
- property download_queue_size: int[source]¶
max int of torrents to download at once (see download-queue-enabled)
- property idle_seeding_limit_enabled: bool[source]¶
true if the seeding inactivity limit is honored by default
- property idle_seeding_limit: int[source]¶
torrents we’re seeding will be stopped if they’re idle for this long
- property incomplete_dir_enabled: bool[source]¶
true means keep torrents in incomplete-dir until done
- property port_forwarding_enabled: bool[source]¶
true means ask upstream router to forward the configured peer port to transmission using UPnP or NAT-PMP
- property queue_stalled_minutes: int[source]¶
torrents that are idle for N minutes aren’t counted toward seed-queue-size or download-queue-size
- property seed_queue_size: int[source]¶
max int of torrents to uploaded at once (see seed-queue-enabled)
- property trash_original_torrent_files: bool[source]¶
true means the .torrent file of added torrents will be deleted
- property default_trackers: list[str] | None[source]¶
list of default trackers to use on public torrents new at rpc-version 17
- property rpc_version_semver: str | None[source]¶
the current RPC API version in a semver-compatible str new at rpc-version 17
- property script_torrent_added_enabled: bool | None[source]¶
whether to call the added script new at rpc-version 17
- property script_torrent_added_filename: str | None[source]¶
filename of the script to run new at rpc-version 17
- property script_torrent_done_seeding_enabled: bool | None[source]¶
whether to call the seeding-done script new at rpc-version 17
- property script_torrent_done_seeding_filename: str | None[source]¶
filename of the script to run new at rpc-version 17
- fields: dict[str, Any]¶
raw response data