redvypr.data_packets.compare_datastreams

redvypr.data_packets.compare_datastreams(datastream1, datastream2, hostinfo=None)

Checks if the two datastreams match

Examples of datastreams:

d1 = data/rand1:randredvypr
d2 = 't/randdata::5c9295ee-6f8e-11ec-9f01-f7ad581789cc'
d3 = '?data/randdata_1:redvypr@192.168.178.26::04283d40-ef3c-11ec-ab8f-21d63600f1d0'
d4 = 'data/randdata_1:redvypr@192.168.178.26::04283d40-ef3c-11ec-ab8f-21d63600f1d0'
d5 = 'data/randdata_1:redvypr'
d6 = 'data/randdata_1::04283d40-ef3c-11ec-ab8f-21d63600f1d0'
d7 = '*/randdata_1::04283d40-ef3c-11ec-ab8f-21d63600f1d0'
d8 = 'data/randdata_1:*'
Parameters:
  • datastream1 (str) – redvypr datastream1

  • datastream2 (str) – redvypr datastream2

Returns:

True if datastreams match, False otherwise

Return type:

bool