OXIESEC PANEL
- Current Dir:
/
/
usr
/
lib
/
python3
/
dist-packages
/
secretstorage
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/17/2025 09:32:20 AM
rwxr-xr-x
📄
__init__.py
1.93 KB
08/27/2016 08:51:43 AM
rw-r--r--
📁
__pycache__
-
05/09/2024 06:58:01 AM
rwxr-xr-x
📄
collection.py
7.64 KB
05/06/2016 02:37:57 PM
rw-r--r--
📄
defines.py
792 bytes
05/06/2016 02:37:57 PM
rw-r--r--
📄
dhcrypto.py
2.37 KB
08/17/2016 05:52:22 PM
rw-r--r--
📄
exceptions.py
1.5 KB
08/13/2015 11:34:26 AM
rw-r--r--
📄
item.py
5 KB
07/04/2016 04:36:22 PM
rw-r--r--
📄
util.py
6.11 KB
08/17/2016 05:52:40 PM
rw-r--r--
Editing: __init__.py
Close
# SecretStorage module for Python # Access passwords using the SecretService DBus API # Author: Dmitry Shachnev, 2013 # License: BSD """This file provides quick access to all SecretStorage API. Please refer to documentation of individual modules for API details. It also provides some functions for compatibility with older SecretStorage releases. Those functions are not recommended for use in new software.""" import dbus from secretstorage.collection import Collection, create_collection, \ get_all_collections, get_default_collection, get_any_collection, \ get_collection_by_alias, search_items from secretstorage.item import Item from secretstorage.defines import DBUS_NOT_SUPPORTED, DBUS_EXEC_FAILED, \ DBUS_NO_REPLY, DBUS_ACCESS_DENIED from secretstorage.exceptions import SecretStorageException, \ SecretServiceNotAvailableException, LockedException, \ ItemNotFoundException __version_tuple__ = (2, 3, 1) __version__ = '.'.join(map(str, __version_tuple__)) def dbus_init(main_loop=True, use_qt_loop=False): """Returns new SessionBus_. If `main_loop` is :const:`True` and no D-Bus main loop is registered yet, registers a default main loop (PyQt5 main loop if `use_qt_loop` is :const:`True`, otherwise GLib main loop). .. _SessionBus: https://www.freedesktop.org/wiki/IntroductionToDBus/#buses .. note:: Qt uses GLib main loops on UNIX-like systems by default, so one will rarely need to set `use_qt_loop` to :const:`True`. """ if main_loop and not dbus.get_default_main_loop(): if use_qt_loop: from dbus.mainloop.pyqt5 import DBusQtMainLoop DBusQtMainLoop(set_as_default=True) else: from dbus.mainloop.glib import DBusGMainLoop DBusGMainLoop(set_as_default=True) try: return dbus.SessionBus() except dbus.exceptions.DBusException as e: if e.get_dbus_name() in (DBUS_NOT_SUPPORTED, DBUS_EXEC_FAILED, DBUS_NO_REPLY, DBUS_ACCESS_DENIED): raise SecretServiceNotAvailableException( e.get_dbus_message()) raise