Difference between revisions of "TruxtonMessage"
Jump to navigation
Jump to search
(Created page with "This class encapsulates the message object that is the basis for the Truxton's [https://en.wikipedia.org/wiki/Extract,_transform,_load ETL] pipeline. =Attributes and Methods=...") |
|||
| Line 1: | Line 1: | ||
| − | This class encapsulates the message object that is the basis for the Truxton's [https://en.wikipedia.org/wiki/Extract,_transform,_load ETL] pipeline. | + | This class encapsulates the [[Message Bus Messages#Message Structure | message object]] that is the basis for the Truxton's [https://en.wikipedia.org/wiki/Extract,_transform,_load ETL] pipeline. |
=Attributes and Methods= | =Attributes and Methods= | ||
==<code>depotid</code>== | ==<code>depotid</code>== | ||
| + | |||
==<code>depotlength</code>== | ==<code>depotlength</code>== | ||
==<code>depotname</code>== | ==<code>depotname</code>== | ||
Revision as of 10:44, 27 May 2020
This class encapsulates the message object that is the basis for the Truxton's ETL pipeline.
Contents
Attributes and Methods
depotid
depotlength
depotname
depotoffset
dontroute
file()
fileid
filetype
hash
mediaid
parentid
priority
queueempty
routeid
signature
Sample
import truxton
def main():
etl = truxton.etl()
etl.name = "My New ETL"
etl.description = "This ETL processes files in the Truxton system"
etl.queue = "anewetl"
etl.stage = 40
etl.expanderid = 0x05fc0bf6a57726a0
etl.version = 0
etl.depot = "thumbnail"
etl.depotype = truxton.DEPOT_TYPE_THUMBNAILS
etl.poly = 0
etl.addarg("--verbose")
etl.addarg("Yes")
etl.sendmefileid("5ecbebc4-9937-2b88-f691-91a800000024")
etl.sendmehash("baa51f0cc8361660df911e06e7637485")
etl.sendmefiles(truxton.Type_JPEGWithExif, 100)
etl.sendmefiles(truxton.Type_TIFFWithExif, 500)
etl.sendmelocalfile( "C:/Test Files/Video/Fragmented/Recovered Video.mp4", truxton.Type_MPEG4Video, 0 )
message = etl.getmessage()
while message is not None:
file_in_truxton = message.file()
# YOUR FORENSIC CODE GOES HERE
line_of_text = file_in_truxton.readline()
if "[SetupAPI" in line_of_text:
child = file_in_truxton.newchild()
child.name = "Child file from New ETL"
child.write("This is the file you were looking for.")
child.save()
if __name__ == "__main__":
main()