@@ -330,46 +330,58 @@ class FavaLedger:
330330 #: Dict of list of all (unfiltered) entries by type.
331331 all_entries_by_type : EntriesByType
332332
333+ #: A :class:`.AccountDict` module - details about the accounts.
334+ accounts : AccountDict
335+
336+ #: An :class:`AttributesModule` instance.
337+ attributes : AttributesModule
338+
339+ #: A :class:`.BudgetModule` instance.
340+ budgets : BudgetModule
341+
342+ #: A :class:`.ChartModule` instance.
343+ charts : ChartModule
344+
345+ #: A :class:`.CommoditiesModule` instance.
346+ commodities : CommoditiesModule
347+
348+ #: A :class:`.ExtensionModule` instance.
349+ extensions : ExtensionModule
350+
351+ #: A :class:`.FileModule` instance.
352+ file : FileModule
353+
354+ #: A :class:`.DecimalFormatModule` instance.
355+ format_decimal : DecimalFormatModule
356+
357+ #: A :class:`.IngestModule` instance.
358+ ingest : IngestModule
359+
360+ #: A :class:`.FavaMisc` instance.
361+ misc : FavaMisc
362+
363+ #: A :class:`.QueryShell` instance.
364+ query_shell : QueryShell
365+
333366 def __init__ (self , path : str , * , poll_watcher : bool = False ) -> None :
334367 #: The path to the main Beancount file.
335368 self .beancount_file_path = path
336369 self ._is_encrypted = is_encrypted_file (path )
337370 self .get_filtered = lru_cache (maxsize = 16 )(self ._get_filtered )
338371 self .get_entry = lru_cache (maxsize = 16 )(self ._get_entry )
339372
340- #: An :class:`AttributesModule` instance.
373+ self . accounts = AccountDict ( self )
341374 self .attributes = AttributesModule (self )
342-
343- #: A :class:`.BudgetModule` instance.
344375 self .budgets = BudgetModule (self )
345-
346- #: A :class:`.ChartModule` instance.
347376 self .charts = ChartModule (self )
348-
349- #: A :class:`.CommoditiesModule` instance.
350377 self .commodities = CommoditiesModule (self )
351-
352- #: A :class:`.ExtensionModule` instance.
353378 self .extensions = ExtensionModule (self )
354-
355- #: A :class:`.FileModule` instance.
356379 self .file = FileModule (self )
357-
358- #: A :class:`.IngestModule` instance.
380+ self .format_decimal = DecimalFormatModule (self )
359381 self .ingest = IngestModule (self )
360-
361- #: A :class:`.FavaMisc` instance.
362382 self .misc = FavaMisc (self )
363-
364- #: A :class:`.DecimalFormatModule` instance.
365- self .format_decimal = DecimalFormatModule (self )
366-
367- #: A :class:`.QueryShell` instance.
368383 self .query_shell = QueryShell (self )
369384
370- #: A :class:`.AccountDict` module - details about the accounts.
371- self .accounts = AccountDict (self )
372-
373385 self .watcher = WatchfilesWatcher () if not poll_watcher else Watcher ()
374386
375387 self .load_file ()
0 commit comments