aries_cloudagent.core.in_memory package
In-memory wallet support.
- class aries_cloudagent.core.in_memory.InMemoryProfile(*, context: Optional[aries_cloudagent.config.injection_context.InjectionContext] = None, name: Optional[str] = None)[source]
Bases:
aries_cloudagent.core.profile.Profile
Provide access to in-memory profile management.
Used primarily for testing.
- TEST_PROFILE_NAME = 'test-profile'
- session(context: Optional[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: Optional[Mapping[str, Any]] = None, bind: Optional[Mapping[Type, Any]] = None) aries_cloudagent.core.in_memory.profile.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) aries_cloudagent.core.in_memory.profile.InMemoryProfileSession [source]
Used in tests to quickly create InMemoryProfileSession.
- transaction(context: Optional[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.
- async open(context: aries_cloudagent.config.injection_context.InjectionContext, config: Optional[Mapping[str, Any]] = None) aries_cloudagent.core.profile.Profile [source]
Open an instance of an existing profile.
- async provision(context: aries_cloudagent.config.injection_context.InjectionContext, config: Optional[Mapping[str, Any]] = None) aries_cloudagent.core.profile.Profile [source]
Provision a new instance of a profile.
- class aries_cloudagent.core.in_memory.InMemoryProfileSession(profile: aries_cloudagent.core.profile.Profile, *, context: Optional[aries_cloudagent.config.injection_context.InjectionContext] = None, settings: Optional[Mapping[str, Any]] = None)[source]
Bases:
aries_cloudagent.core.profile.ProfileSession
An active connection to the profile management backend.
- property storage: aries_cloudagent.storage.base.BaseStorage
Get the BaseStorage implementation (helper specific to in-memory profile).
- property wallet: aries_cloudagent.wallet.base.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[aries_cloudagent.config.injection_context.InjectionContext] = None, name: Optional[str] = None)[source]
Bases:
aries_cloudagent.core.profile.Profile
Provide access to in-memory profile management.
Used primarily for testing.
- TEST_PROFILE_NAME = 'test-profile'
- session(context: Optional[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: Optional[Mapping[str, Any]] = None, bind: Optional[Mapping[Type, Any]] = None) aries_cloudagent.core.in_memory.profile.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) aries_cloudagent.core.in_memory.profile.InMemoryProfileSession [source]
Used in tests to quickly create InMemoryProfileSession.
- transaction(context: Optional[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.
- async open(context: aries_cloudagent.config.injection_context.InjectionContext, config: Optional[Mapping[str, Any]] = None) aries_cloudagent.core.profile.Profile [source]
Open an instance of an existing profile.
- async provision(context: aries_cloudagent.config.injection_context.InjectionContext, config: Optional[Mapping[str, Any]] = None) aries_cloudagent.core.profile.Profile [source]
Provision a new instance of a profile.
- class aries_cloudagent.core.in_memory.profile.InMemoryProfileSession(profile: aries_cloudagent.core.profile.Profile, *, context: Optional[aries_cloudagent.config.injection_context.InjectionContext] = None, settings: Optional[Mapping[str, Any]] = None)[source]
Bases:
aries_cloudagent.core.profile.ProfileSession
An active connection to the profile management backend.
- property storage: aries_cloudagent.storage.base.BaseStorage
Get the BaseStorage implementation (helper specific to in-memory profile).
- property wallet: aries_cloudagent.wallet.base.BaseWallet
Get the BaseWallet implementation (helper specific to in-memory profile).