aries_cloudagent.core.in_memory package¶
In-memory wallet support.
-
class
aries_cloudagent.core.in_memory.
InMemoryProfile
(*, context: aries_cloudagent.config.injection_context.InjectionContext = None, name: str = None)[source]¶ Bases:
aries_cloudagent.core.profile.Profile
Provide access to in-memory profile management.
Used primarily for testing.
-
BACKEND_NAME
= 'in_memory'¶
-
TEST_PROFILE_NAME
= 'test-profile'¶
-
session
(context: aries_cloudagent.config.injection_context.InjectionContext = None) → aries_cloudagent.core.profile.ProfileSession[source]¶ Start a new interactive session with no transaction support requested.
-
classmethod
test_profile
(settings: Mapping[str, Any] = None, bind: Mapping[Type, Any] = None) → aries_cloudagent.core.in_memory.profile.InMemoryProfile[source]¶ Used in tests to create a standard InMemoryProfile.
-
classmethod
test_session
(settings: Mapping[str, Any] = None, bind: Mapping[Type, Any] = None) → aries_cloudagent.core.in_memory.profile.InMemoryProfileSession[source]¶ Used in tests to quickly create InMemoryProfileSession.
-
transaction
(context: aries_cloudagent.config.injection_context.InjectionContext = None) → aries_cloudagent.core.profile.ProfileSession[source]¶ Start a new interactive session with commit and rollback support.
If the current backend does not support transactions, then commit and rollback operations of the session will not have any effect.
-
-
class
aries_cloudagent.core.in_memory.
InMemoryProfileManager
[source]¶ Bases:
aries_cloudagent.core.profile.ProfileManager
Manager for producing in-memory wallet/storage implementation.
-
class
aries_cloudagent.core.in_memory.
InMemoryProfileSession
(profile: aries_cloudagent.core.profile.Profile, *, context: aries_cloudagent.config.injection_context.InjectionContext = None, settings: Mapping[str, Any] = None)[source]¶ Bases:
aries_cloudagent.core.profile.ProfileSession
An active connection to the profile management backend.
-
storage
¶ Get the BaseStorage implementation (helper specific to in-memory profile).
-
wallet
¶ Get the BaseWallet implementation (helper specific to in-memory profile).
-
Subpackages¶
Submodules¶
aries_cloudagent.core.in_memory.profile module¶
Manage in-memory profile interaction.
-
class
aries_cloudagent.core.in_memory.profile.
InMemoryProfile
(*, context: aries_cloudagent.config.injection_context.InjectionContext = None, name: str = None)[source]¶ Bases:
aries_cloudagent.core.profile.Profile
Provide access to in-memory profile management.
Used primarily for testing.
-
BACKEND_NAME
= 'in_memory'¶
-
TEST_PROFILE_NAME
= 'test-profile'¶
-
session
(context: aries_cloudagent.config.injection_context.InjectionContext = None) → aries_cloudagent.core.profile.ProfileSession[source]¶ Start a new interactive session with no transaction support requested.
-
classmethod
test_profile
(settings: Mapping[str, Any] = None, bind: Mapping[Type, Any] = None) → aries_cloudagent.core.in_memory.profile.InMemoryProfile[source]¶ Used in tests to create a standard InMemoryProfile.
-
classmethod
test_session
(settings: Mapping[str, Any] = None, bind: Mapping[Type, Any] = None) → aries_cloudagent.core.in_memory.profile.InMemoryProfileSession[source]¶ Used in tests to quickly create InMemoryProfileSession.
-
transaction
(context: aries_cloudagent.config.injection_context.InjectionContext = None) → aries_cloudagent.core.profile.ProfileSession[source]¶ Start a new interactive session with commit and rollback support.
If the current backend does not support transactions, then commit and rollback operations of the session will not have any effect.
-
-
class
aries_cloudagent.core.in_memory.profile.
InMemoryProfileManager
[source]¶ Bases:
aries_cloudagent.core.profile.ProfileManager
Manager for producing in-memory wallet/storage implementation.
-
class
aries_cloudagent.core.in_memory.profile.
InMemoryProfileSession
(profile: aries_cloudagent.core.profile.Profile, *, context: aries_cloudagent.config.injection_context.InjectionContext = None, settings: Mapping[str, Any] = None)[source]¶ Bases:
aries_cloudagent.core.profile.ProfileSession
An active connection to the profile management backend.
-
storage
¶ Get the BaseStorage implementation (helper specific to in-memory profile).
-
wallet
¶ Get the BaseWallet implementation (helper specific to in-memory profile).
-