aries_cloudagent.core.in_memory package
In-memory wallet support.
- class aries_cloudagent.core.in_memory.InMemoryProfile(*, context: Optional[InjectionContext] = None, name: Optional[str] = None, profile_class: Optional[Any] = None)[source]
Bases:
Profile
Provide access to in-memory profile management.
Used primarily for testing.
- TEST_PROFILE_NAME = 'test-profile'
- session(context: Optional[InjectionContext] = None) ProfileSession [source]
Start a new interactive session with no transaction support requested.
- classmethod test_profile(settings: Optional[Mapping[str, Any]] = None, bind: Optional[Mapping[Type, Any]] = None, profile_class: Optional[Any] = None) InMemoryProfile [source]
Used in tests to create a standard InMemoryProfile.
- classmethod test_session(settings: Optional[Mapping[str, Any]] = None, bind: Optional[Mapping[Type, Any]] = None) InMemoryProfileSession [source]
Used in tests to quickly create InMemoryProfileSession.
- transaction(context: Optional[InjectionContext] = None) 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:
ProfileManager
Manager for producing in-memory wallet/storage implementation.
- class aries_cloudagent.core.in_memory.InMemoryProfileSession(profile: Profile, *, context: Optional[InjectionContext] = None, settings: Optional[Mapping[str, Any]] = None)[source]
Bases:
ProfileSession
An active connection to the profile management backend.
- property handle: aries_askar.Session
Accessor for the Session instance.
- property storage: BaseStorage
Get the BaseStorage implementation (helper specific to in-memory profile).
- property wallet: BaseWallet
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: Optional[InjectionContext] = None, name: Optional[str] = None, profile_class: Optional[Any] = None)[source]
Bases:
Profile
Provide access to in-memory profile management.
Used primarily for testing.
- TEST_PROFILE_NAME = 'test-profile'
- session(context: Optional[InjectionContext] = None) ProfileSession [source]
Start a new interactive session with no transaction support requested.
- classmethod test_profile(settings: Optional[Mapping[str, Any]] = None, bind: Optional[Mapping[Type, Any]] = None, profile_class: Optional[Any] = None) InMemoryProfile [source]
Used in tests to create a standard InMemoryProfile.
- classmethod test_session(settings: Optional[Mapping[str, Any]] = None, bind: Optional[Mapping[Type, Any]] = None) InMemoryProfileSession [source]
Used in tests to quickly create InMemoryProfileSession.
- transaction(context: Optional[InjectionContext] = None) 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:
ProfileManager
Manager for producing in-memory wallet/storage implementation.
- class aries_cloudagent.core.in_memory.profile.InMemoryProfileSession(profile: Profile, *, context: Optional[InjectionContext] = None, settings: Optional[Mapping[str, Any]] = None)[source]
Bases:
ProfileSession
An active connection to the profile management backend.
- property handle: aries_askar.Session
Accessor for the Session instance.
- property storage: BaseStorage
Get the BaseStorage implementation (helper specific to in-memory profile).
- property wallet: BaseWallet
Get the BaseWallet implementation (helper specific to in-memory profile).