Add EntryType enum

This commit is contained in:
thePR0M3TH3AN committed 2025-07-02 21:07:13 -04:00
1 parent c3486b793a
commit 92b411beb3
2 files changed
+16 -1

No files matched your search

+3 -1
View File
@@ -4,7 +4,7 @@
from importlib import import_module
__all__ = ["PasswordManager", "ConfigManager", "Vault"]
__all__ = ["PasswordManager", "ConfigManager", "Vault", "EntryType"]
def __getattr__(name: str):
@@ -14,4 +14,6 @@ def __getattr__(name: str):
return import_module(".config_manager", __name__).ConfigManager
if name == "Vault":
return import_module(".vault", __name__).Vault
if name == "EntryType":
return import_module(".entry_types", __name__).EntryType
raise AttributeError(f"module '{__name__}' has no attribute '{name}'")
+13
View File
@@ -0,0 +1,13 @@
# password_manager/entry_types.py
"""Enumerations for entry types used by SeedPass."""
from enum import Enum
class EntryType(str, Enum):
"""Enumeration of different entry types supported by the manager."""
PASSWORD = "password"
TOTP = "totp"
SSH = "ssh"
SEED = "seed"