AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/jeepney/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /lib/python3/dist-packages/jeepney/__pycache__/bindgen.cpython-310.pyc
o

���`��@s�dZddlZddlmZddlmmZddlm	Z	ddl
mZmZddl
mZGdd�d�Zd	ZGd
d�d�ZdZhd
�Zdd�Zddd�Zdd�ZedkrUe�dSdS)z5Generate a wrapper class from DBus introspection data�N)�indent)�Introspectable)�open_dbus_connection�Proxy)�__version__c@s$eZdZdd�Zdd�Zdd�ZdS)�Methodc	Cs||jd|_g|_g|_|�d�D]*}z|jd}Wnty+d�t|j��}Ynw|j�|�|j�|jd�qdS)N�namezarg[@direction='in']zarg{}�type)	�attribr�in_args�	signature�findall�KeyError�format�len�append)�self�xml_node�argr�r�1/usr/lib/python3/dist-packages/jeepney/bindgen.py�__init__s��zMethod.__init__cCsdj|jd�S)Nz=def {name}(self):
    return new_method_call(self, '{name}')
)r)rr)rrrr�_make_code_noargss�zMethod._make_code_noargscCsV|js|��Sd�|j�}d�|j�}t|j�dkrdnd�|�}dj|j|||d�S)Nz, ��z({},)z({})zxdef {name}(self, {args}):
    return new_method_call(self, '{name}', '{signature}',
                           {tuple})
)r�argsr�tuple)rr�joinrrrr)rrrrrrr�	make_codes
�zMethod.make_codeN)�__name__�
__module__�__qualname__rrrrrrrr
srz�
class {cls_name}(MessageGenerator):
    interface = {interface!r}

    def __init__(self, object_path={path!r},
                 bus_name={bus_name!r}):
        super().__init__(object_path=object_path, bus_name=bus_name)
c@seZdZdd�Zdd�ZdS)�	InterfacecCs2|jd|_||_||_dd�|�d�D�|_dS)NrcSsg|]}t|��qSr)r)�.0�noderrr�
<listcomp>7sz&Interface.__init__.<locals>.<listcomp>�method)r
r�path�bus_namer
�methods)rrr'r(rrrr3szInterface.__init__cCsT|j�d�d}tj||j|j|jd�g}|jD]}|�t|�	�d��qd�
|�S)N�.���)�cls_name�	interfacer'r(z    �
)r�split�INTERFACE_CLASS_TEMPLATErr'r(r)rrrr)rr,�chunksr&rrrr9s�

zInterface.make_codeN)rr r!rrrrrrr"2sr"z�"""Auto-generated DBus bindings

Generated by jeepney version {version}

Object path: {path}
Bus name   : {bus_name}
"""

from jeepney.wrappers import MessageGenerator, new_method_call

>�org.freedesktop.DBus.Peer�org.freedesktop.DBus.Properties�#org.freedesktop.DBus.IntrospectablecCs�t|ttf�r#t|d��}t||||�Wd�S1swYt�|�}|�tj	t
||d��d}|�d�D]}|jdt
vrDq:|�t|||����|d7}q:|S)N�w)�versionr'r(rr-rr)�
isinstance�bytes�str�open�
code_from_xml�ET�
fromstring�write�MODULE_TEMPLATErrr
r
�IGNORE_INTERFACESr"r)�xmlr'r(�fh�f�root�i�interface_noderrrr;Us �
�
r;�SESSIONcCsDt|�}tt||�|�}|��\}t||||�}td�||��dS)Nz#Written {} interface wrappers to {})rrr�
Introspectr;�printr)r'r�output_file�bus�conn�introspectablerA�n_interfacesrrr�generategs

rOcCs�t��}|jdddd�|jdddd�|jddd	�|�d
d�|��}|jp4|jdd��d
d�d}t|j|j||j	�dS)Nz-nz--nameT)�requiredz-pz--pathz--busrG)�defaultz-oz--outputr�/�_z.py)
�argparse�ArgumentParser�add_argument�
parse_args�outputr'�replacerOrrK)�aprrXrrr�mainps r[�__main__)rG)�__doc__rT�textwrapr�xml.etree.ElementTree�etree�ElementTreer<�jeepney.wrappersr�jeepney.io.blockingrr�jeepneyrrr0r"r?r@r;rOr[rrrrr�<module>s$	
	
�

Anon7 - 2022
AnonSec Team