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/secretstorage/__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/secretstorage/__pycache__/__init__.cpython-310.pyc
o

�y"`l�@s�dZddlmZddlmZmZmZddlmZm	Z	m
Z
mZmZm
Z
mZddlmZddlmZmZmZmZmZddlmZdZd	�eee��Zgd
�Zdefdd
�Zdede fdd�Z!dS)zThis file provides quick access to all SecretStorage API. Please
refer to documentation of individual modules for API details.
�)�message_bus)�DBusConnection�Proxy�open_dbus_connection)�
Collection�create_collection�get_all_collections�get_default_collection�get_any_collection�get_collection_by_alias�search_items)�Item)�SecretStorageException�"SecretServiceNotAvailableException�LockedException�ItemNotFoundException�PromptDismissedException)�add_match_rules)�r��.)rr
rrrrr�check_service_availabilityr�	dbus_initrr
rr	r�returnc
Cspz
t�}t|�|WSty#}z
d�|jd�}t|�|�d}~wttfy7}ztt|��|�d}~ww)aReturns a new connection to the session bus, instance of
	jeepney's :class:`DBusConnection` class. This connection can
	then be passed to various SecretStorage functions, such as
	:func:`~secretstorage.collection.get_default_collection`.

	.. warning::
	   The D-Bus socket will not be closed automatically. You can
	   close it manually using the :meth:`DBusConnection.close` method,
	   or you can use the :class:`contextlib.closing` context manager:

	   .. code-block:: python

	      from contextlib import closing
	      with closing(dbus_init()) as conn:
	          collection = secretstorage.get_default_collection(conn)
	          items = collection.search_items({'application': 'myapp'})

	   However, you will not be able to call any methods on the objects
	   created within the context after you leave it.

	.. versionchanged:: 3.0
	   Before the port to Jeepney, this function returned an
	   instance of :class:`dbus.SessionBus` class.

	.. versionchanged:: 3.1
	   This function no longer accepts any arguments.
	z Environment variable {} is unsetrN)	rr�KeyError�format�argsr�ConnectionError�
ValueError�str)�
connection�ex�reason�r#�8/usr/lib/python3/dist-packages/secretstorage/__init__.pyr+s
���rr cCs8ddlm}tt|�}|�|�ddkp||��dvS)z�Returns True if the Secret Service daemon is either running or
	available for activation via D-Bus, False otherwise.

	.. versionadded:: 3.2
	r)�BUS_NAMEr)�secretstorage.utilr%rr�NameHasOwner�ListActivatableNames)r r%�proxyr#r#r$rSs

�rN)"�__doc__�jeepney.bus_messagesr�jeepney.io.blockingrrr�secretstorage.collectionrrrr	r
rr�secretstorage.itemr
�secretstorage.exceptionsrrrrrr&r�__version_tuple__�join�mapr�__version__�__all__r�boolrr#r#r#r$�<module>s$(

Anon7 - 2022
AnonSec Team