
    x
h`'                       U d dl mZ d dlZd dlZd dlmZ  ej        d          Ze                    ej	                   dZ
 G d dej                  Z G d d	ej                  Z G d
 dej                  Z G d de          Z G d d          Zi d eej        dd          d eej        dd          d eej        dd          d eej        dd          d eej        dd          d eej        dd          d eej        dd           d! eej        dd"          d# eej        dd$          d% eej        d&d'          d( eej        dd)          d* eej        ddddd+          d, eej        ddd-          d. eej        ddddd/          d0 eej        d1          d2 eej        dd3          d4 eej        ddddd5          i d6 eej        dd7          d8 eej        d9d:          d; eej        dd<          d= eej        dd>          d? eej        d@dA          dB eej        ddC          dD eej        dddddE          dF eej        ddG          dH eej        ddI          dJ eej        dddddK          dL eej        dMdN          dO eej        dddddP          dQ eej        dRdS          dT eej        d1ddddU          dV eej        ddW          dX eej        dYddddZ          d[ eej        dd\          i d] eej        ddddd^          d_ eej        dYd`          da eej        dddddb          dc eej        dddddd          de eej        dfddddg          dh eej        dddddi          dj eej        ddk          dl eej        ddm          dn eej        dddddo          dp eej        d@          dq eej        ddr          ds eej        ddt          du eej        dddddv          dw eej        dddddx          dy eej        dddddz          d{ eej        d@          d| eej        dRdddd}          i d~ eej        ddddd          d eej        ddddd          d eej        ddddd          d eej        d9dddd          d eej        d9dddd          d eej        ddddd          d eej        dd          d eej        ddddd          d eej        dd          d eej        dd          d eej        dd          d eej        ddddd          d eej        ddddd          d eej        dYd          d eej        ddddd          d eej        ddddd          d eej        ddddd           eej        ddddd           eej        ddddd           eej        ddddd           eej        dd           eej        ddddd           eej        ddddd           eej        d@           eej        d@d          dZded<    G d deej                  ZdS )    )annotationsN)
NamedTupleztransmission-rpcg      >@c                      e Zd ZdZdZdZdS )Priorityr      N)__name__
__module____qualname__LowNormalHigh     S/var/www/html/mejor/venv/lib/python3.11/site-packages/transmission_rpc/constants.pyr   r      s        
CFDDDr   r   c                      e Zd ZdZdZdZdZdS )RatioLimitModeztorrent radio limit moder   r      Nr	   r
   r   __doc__GlobalSingle	Unlimitedr   r   r   r   r      s%        "" FFIIIr   r   c                      e Zd ZdZdZdZdZdS )IdleModeztorrent idle moder   r   r   Nr   r   r   r   r   r   "   s%         FFIIIr   r   c                  l    e Zd ZU ded<   ded<   dZded<   dZded	<   dZded
<   dZded<   ddZddZ	dS )Argsstrtypeintadded_versionNz
int | Noneremoved_versionz
str | Noneprevious_argument_namenext_argument_name descriptionreturnc                h    d| j         d| j        d| j        d| j        d| j        d| j        dS )NzArgs(, ))r   r!   r"   r#   r$   r&   selfs    r   __repr__zArgs.__repr__5   su    &DI & &"& &$& & +& & '	& &
  & & &	
r   c                8    d| j          d| j         d| j        dS )Nz
Args<type=r)   z, description=r*   )r   r!   r&   r+   s    r   __str__zArgs.__str__?   s+    `DI``);``4K[````r   )r'   r   )
r	   r
   r   __annotations__r"   r#   r$   r&   r-   r/   r   r   r   r   r   -   s         III"&O&&&&)-----%)))))K
 
 
 
a a a a a ar   r   c                  &    e Zd ZdZdZdZdZdZdZdS )TypenumberstringarraybooleandoubleobjectN)	r	   r
   r   r3   r4   r5   r6   r7   r8   r   r   r   r2   r2   C   s,        FFEGFFFFr   r2   activityDater   z)Last time of upload or download activity.)r&   	addedDatez+The date when this torrent was first added.bandwidthPriority   z5Bandwidth priority. Low (-1), Normal (0) or High (1).commentzTorrent comment.corruptEverz+Number of bytes of corrupt data downloaded.creatorzTorrent creator.dateCreatedzTorrent creation date.desiredAvailablez4Number of bytes available and left to be downloaded.doneDatez/The date when the torrent finished downloading.downloadDir   z6The directory path where the torrent is downloaded to.downloadedEverz(Number of bytes of good data downloaded.downloadLimitzDownload limit in Kbps.downloadLimitModezADownload limit mode. 0 means global, 1 means single, 2 unlimited.downloadLimitedzDownload limit is enablededitDate   errorz_Kind of error. 0 means OK, 1 means tracker warning, 2 means tracker error, 3 means local error.errorStringzError message.etazjEstimated number of seconds left when downloading or seeding. -1 means not available and -2 means unknown.etaIdle   zsEstimated number of seconds left until the idle time limit is reached. -1 means not available and -2 means unknown.fileszEArray of file object containing key, bytesCompleted, length and name.	fileStatszGAway of file statistics containing bytesCompleted, wanted and priority.group   z*The name of this torrent's bandwidth group
hashStringz8Hashstring unique for the torrent even between sessions.haveUncheckedz"Number of bytes of partial pieces.	haveValidz*Number of bytes of checksum verified data.honorsSessionLimitsz)True if session upload limits are honoredidzSession unique torrent id.
isFinished	   z7True if the torrent is finished. Downloaded and seeded.	isPrivatezTrue if the torrent is private.	isStalled   z<True if the torrent has stalled (been idle for a long time).labelszarray of string labelsleftUntilDonez0Number of bytes left until the download is done.
magnetLink   z!The magnet link for this torrent.manualAnnounceTimez/The time until you manually ask for more peers.maxConnectedPeerszMaximum of connected peers.metadataPercentCompletez*Download progress of metadata. 0.0 to 1.0.namezTorrent name.z
peer-limitzMaximum number of peers.peersr   zArray of peer objects.peersConnectedz$Number of peers we are connected to.	peersFromzAObject containing download peers counts for different peer types.peersGettingFromUsz'Number of peers we are sending data to.peersSendingToUszNumber of peers sending to uspercentCompletepercentDonez0Download progress of selected files. 0.0 to 1.0.piecesz?String with base64 encoded bitfield indicating finished pieces.
pieceCountzNumber of pieces.	pieceSizezNumber of bytes in a piece.
prioritieszArray of file priorities.zprimary-mime-typequeuePositionzThe queue position.rateDownloadz(B/s)
rateUploadrecheckProgressz Progress of recheck. 0.0 to 1.0.secondsDownloadingr%   secondsSeedingseedIdleLimit
   zIdle limit in minutes.seedIdleModez4Use global (0), torrent (1), or unlimited (2) limit.seedRatioLimitzSeed ratio limit.seedRatioModesizeWhenDonez&Size of the torrent download in bytes.	startDatez+The date when the torrent was last started.statuszCurrent status, see sourcetrackerszArray of tracker objects.trackerStatsz.Array of object containing tracker statistics.	totalSizez"Total size of the torrent in bytestorrentFilezPath to .torrent file.uploadedEverzNumber of bytes uploaded, ever.zUpload limit in KbpszUpload limit enabled.zSeed ratio.z)Array of booleans indicated wanted files.zArray of webseeds objectsz!Number of webseeds seeding to us.zSA Iterable[Iterable[str]] for a set of announce URLs, each inner list is for a tier)uploadLimituploadLimiteduploadRatiowantedwebseedswebseedsSendingToUsz
file-counttrackerListzdict[str, Args]TORRENT_GET_ARGSc                  j    e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZdZdZdZdZdZdZdZdZdZdZdZdZdS )	RpcMethodzsession-setzsession-getzsession-statsztorrent-getztorrent-addztorrent-setztorrent-removeztorrent-startztorrent-start-nowztorrent-stopztorrent-verifyztorrent-reannounceztorrent-set-locationztorrent-rename-pathzqueue-move-topzqueue-move-bottomzqueue-move-upzqueue-move-downz	group-setz	group-getz
free-spacez	port-testzblocklist-updateN)r	   r
   r   
SessionSet
SessionGetSessionStats
TorrentGet
TorrentAdd
TorrentSetTorrentRemoveTorrentStartTorrentStartNowTorrentStopTorrentVerifyTorrentReannounceTorrentSetLocationTorrentRenamePathQueueMoveTopQueueMoveBottomQueueMoveUpQueueMoveDownGroupSetGroupGet	FreeSpacePortTestBlocklistUpdater   r   r   r   r      s        JJ"LJJJ$M"L)O K$M,/-#L)O!K%MHHIH(OOOr   r   )
__future__r   enumloggingtypingr   	getLoggerLOGGERsetLevelERRORDEFAULT_TIMEOUTIntEnumr   r   r   r   r2   r3   r4   r6   r5   r7   r8   r   r0   r   Enumr   r   r   r   <module>r      s;   # " " " " " "        		-	.	.         t|       T\       t|   a a a a a: a a a,       a%DDa5`aaaa%dk12_```a% dk1:qrrra% ttDK0BCCC	a%
 44Q4abbba% ttDK0BCCCa% 44Q4LMMMa% T[!9opppa% T[!1bccca% 44Q4lmmma% dd4;7abbba% TT$+q$d<UVVa% Q'j  a%  ttDL!T4?Z[[!a%" T["%%#a%$ TT	u  %a%. 44QdD:JKK/a% a%0 
44	 A  1a%: tt
 J  ;a%D TT$*a-tuuuEa%F 
A#l  Ga%L TT$+r/[\\\Ma%N $$t{A3mnnnOa%P TT$+q$d<`aaQa%R dk12^___Sa%T 44a=hiiiUa%V 	$$t{AtT41M
N
NWa%X $$t|Q4mnnnYa%Z dlAtT49Z[[[a%\ dlB4rsss]a%^ dd4:r4t5MNN_a%` TT$+q6hiiiaa%b $$t{AtT49\]]ca%d $$t{A;lmmmea% a% a%f dk1dD$@]^^ga%h ttDK@lmmmia%j DDatT?CCka%l $$t{AtT49STTma%n TT$*atT3KLLoa%p dd4;4t=cddqa%r dk12uvvvsa%t $$t{A;deeeua%v T[!T4?^__wa%x ttDK,,ya%z 44Q4fggg{a%| dd4;/pqqq}a%~ $$t{AtT49LMMa%@ dk1dD$8UVVAa%B $$tz1dD$8STTCa%D dk2..Ea%F TT$+r4t=RSSGa% a% a%H DDatT7CCIa%J $$t{AtT4AAKa%L ttDKD$>`aaMa%N $$t{BdD"EEOa%P dd4;D$bAAQa%R TT$+r4t=UVVSa%T DDb6lmmmUa%V dd4;4t=PQQWa%X TT$+q6lmmmYa%Z DDa5]^^^[a%\ dk12_```]a%^ dd4;4t5QRR_a%` TZD$6QRRaa%b DDa5efffca%d dk1dD$8\]]ea%f 44QdD:RSSga%h DDatT;\]]ia% a%j 4QdD:PQQT$,4t=TUU4QdD-HHd4:q.YZZZTZD$6QRR4QdDBeff$t{B''4

i  ya% a% a%  a a a aH )  )  )  )  )TY  )  )  )  )  )r   