foxes.utils.data_book.DataBook¶
- class foxes.utils.data_book.DataBook[source]¶
Bases:
object
Container class for file paths, either directly given or as static data within a package.
- Parameters:
data_book (DataBook, optional) – A data book to start from
Methods
__init__
([data_book])add_data_package
(context, package, file_sfx)Add static files from a package location.
add_data_package_file
(context, package, ...)Add a static file from a package location.
add_file
(context, file_path)Add a file path
add_files
(context, file_paths)Add file paths
get_file_path
(context, file_name[, ...])Get path of a file
toc
(context)Get list of contents
- add_data_package_file(context, package, file_name)[source]¶
Add a static file from a package location.