
    k7iJ                         S r SSKJr  SSKJrJrJr  SSKJrJ	r	J
r
JrJrJrJr  SSKJrJrJrJrJr  SSKJr  SSKJr  SrS	R5                  \" \\5      5      r/ S
QrS\4S jrS\S\ 4S jr!g)zThis 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_any_collectionget_collection_by_aliasget_default_collectionsearch_items)ItemNotFoundExceptionLockedExceptionPromptDismissedException"SecretServiceNotAvailableExceptionSecretStorageException)Item)add_match_rules)      r   .)r   r   r   r   r   r   r   check_service_availabilityr   	dbus_initr	   r
   r   r   r   returnc                       [        5       n [        U 5        U $ ! [         a$  nSUR                  S    S3n[	        U5      UeSnAf[
        [        4 a  n[	        [        U5      5      UeSnAff = f)a  Returns 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 r   z	 is unsetN)r   r   KeyErrorargsr   ConnectionError
ValueErrorstr)
connectionexreasons      P/home/james-whalen/.local/lib/python3.13/site-packages/secretstorage/__init__.pyr   r   6   ss    8	B)+

# A(I>08b@Z( B0R9rABs     
A/AA/A**A/r!   c                     SSK Jn  [        [        U 5      nUR	                  U5      S   S:H  =(       d    XR                  5       S   ;   $ )zReturns True if the Secret Service daemon is either running or
available for activation via D-Bus, False otherwise.

.. versionadded:: 3.2
r   )BUS_NAME   )secretstorage.utilr&   r   r   NameHasOwnerListActivatableNames)r!   r&   proxys      r$   r   r   ^   sI     ,+z*Ex(+q0 ;557::<    N)"__doc__jeepney.bus_messagesr   jeepney.io.blockingr   r   r   secretstorage.collectionr   r   r	   r
   r   r   r   secretstorage.exceptionsr   r   r   r   r   secretstorage.itemr   r(   r   __version_tuple__joinmapr    __version____all__r   boolr    r,   r$   <module>r:      s{    - K K    $ . hhs3 123&%B> %BP	<> 	<d 	<r,   