5.3.1.22.1. cli.db.FoxDB
- class cli.db.FoxDB(db_root: Path)
Access and validate the foxBMS cell database.
The database can be provided either as a directory or as a ZIP archive containing one root directory with cell subdirectories.
- cells
All parsed cells in the database.
- __init__(db_root: Path) None
Initialize the database from a root path.
The root can point to a directory or a ZIP archive. The database is validated for duplicate entries and required files.
- Parameters:
db_root – Path to the database directory or a ZIP archive.
- Raises:
SystemExit – If the database structure is invalid or parsing fails.
Methods
__init__(db_root)Initialize the database from a root path.
list_cells()List all cells as unique identifiers.
show_cell(identifier)Return a cell by its identifier.