libgs
libgs.utils
libgs.scheduler
libgs.rpc
libgs.restapi
libgs.hardware
libgs.groundstation
libgs.visualisation
libgs.database
libgs.database.tfilterstr2query
libgs.database.CommsLog
libgs.database.Database
libgs.database.Database.count_rows
libgs.database.Database.create_table
libgs.database.Database.get_df
libgs.database.Database.get_file
libgs.database.Database.put_df
libgs.database.KVDb
libgs.database.MonitorDb
libgs.database.PassDb
libgs.monitoring
libgs.protocols.protocolbase
libgs entrypoints
libgs
Docs
»
libgs.database
»
libgs.database.Database
»
libgs.database.Database.get_file
View page source
libgs.database.Database.get_file
¶
Database.
get_file
(
fname
)
[source]
¶
Grab a file resource and return the bytes or string (.bin or .txt)
Parameters:
fname
– The name of the file resource
Returns:
The resource, either as a string (if its a .txt file) or as a bytearray (if its a .bin file)