Add EntryType enum

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

View File

@@ -4,7 +4,7 @@
from importlib import import_module from importlib import import_module
__all__ = ["PasswordManager", "ConfigManager", "Vault"] __all__ = ["PasswordManager", "ConfigManager", "Vault", "EntryType"]
def __getattr__(name: str): def __getattr__(name: str):
@@ -14,4 +14,6 @@ def __getattr__(name: str):
return import_module(".config_manager", __name__).ConfigManager return import_module(".config_manager", __name__).ConfigManager
if name == "Vault": if name == "Vault":
return import_module(".vault", __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}'") raise AttributeError(f"module '{__name__}' has no attribute '{name}'")

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"