Skip to content

Instantly share code, notes, and snippets.

@oberstet
Created November 16, 2020 00:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oberstet/905c140969c71fdfa8be84ac9994e40b to your computer and use it in GitHub Desktop.
Save oberstet/905c140969c71fdfa8be84ac9994e40b to your computer and use it in GitHub Desktop.
(cpy390_1) oberstet@intel-nuci7:~/scm/crossbario/zlmdb$ clear && python tests/test_fbs_reflection.py
processing schema /tmp/test/bfbs/climate.bfbs (2464 bytes) ..
{'enums': {},
'objects': {'Void': {'attrs': {}, 'bytesize': 0, 'docs': '', 'fields': {}, 'is_struct': False, 'min_align': 1, 'name': 'Void'},
'io.crossbar.crossbarfxmarkets.schema.climate.Climate': {'attrs': {},
'bytesize': 0,
'docs': 'A single climate sample.',
'fields': {'entity': {'attrs': {'uuid': '0'},
'default_int': 0,
'default_real': 0.0,
'deprecated': False,
'docs': 'Persistent (static) ID of the entity '
'(device owned by person) tracking its '
'surrounding climate.',
'id': 0,
'name': 'entity',
'offset': 4,
'required': False,
'type': {'basetype': 'Vector',
'element': 'UByte',
'index': -1}},
'humidity': {'attrs': {},
'default_int': 0,
'default_real': 0.0,
'deprecated': False,
'docs': 'Surrounding environment relative '
'humidity (in %).',
'id': 4,
'name': 'humidity',
'offset': 12,
'required': False,
'type': {'basetype': 'Double',
'element': 'None',
'index': -1}},
'pressure': {'attrs': {},
'default_int': 0,
'default_real': 0.0,
'deprecated': False,
'docs': 'Surrounding environment atmospheric '
'pressure (in hPa).',
'id': 3,
'name': 'pressure',
'offset': 10,
'required': False,
'type': {'basetype': 'Double',
'element': 'None',
'index': -1}},
'temperature': {'attrs': {},
'default_int': 0,
'default_real': 0.0,
'deprecated': False,
'docs': 'Surrounding environment ambient '
'temperature (in degrees '
'Celsius).',
'id': 2,
'name': 'temperature',
'offset': 8,
'required': False,
'type': {'basetype': 'Double',
'element': 'None',
'index': -1}},
'timestamp': {'attrs': {},
'default_int': 0,
'default_real': 0.0,
'deprecated': False,
'docs': 'Sample: point in time (UTC) when '
'sample was measured, in Unix time '
'(ns precision).',
'id': 1,
'name': 'timestamp',
'offset': 6,
'required': False,
'type': {'basetype': 'ULong',
'element': 'None',
'index': -1}}},
'is_struct': False,
'min_align': 1,
'name': 'io.crossbar.crossbarfxmarkets.schema.climate.Climate'},
'io.crossbar.crossbarfxmarkets.schema.climate.ClimateSeries': {'attrs': {},
'bytesize': 0,
'docs': 'A series of climate samples.',
'fields': {'entity': {'attrs': {'uuid': '0'},
'default_int': 0,
'default_real': 0.0,
'deprecated': False,
'docs': 'Persistent (static) ID of the '
'entity (device owned by person) '
'tracking its surrounding '
'climate.',
'id': 0,
'name': 'entity',
'offset': 4,
'required': False,
'type': {'basetype': 'Vector',
'element': 'UByte',
'index': -1}},
'humidity': {'attrs': {},
'default_int': 0,
'default_real': 0.0,
'deprecated': False,
'docs': 'Samples: surrounding '
'environment relative humidity '
'(in %).',
'id': 4,
'name': 'humidity',
'offset': 12,
'required': False,
'type': {'basetype': 'Vector',
'element': 'Double',
'index': -1}},
'pressure': {'attrs': {},
'default_int': 0,
'default_real': 0.0,
'deprecated': False,
'docs': 'Samples: surrounding '
'environment atmospheric '
'pressure (in hPa).',
'id': 3,
'name': 'pressure',
'offset': 10,
'required': False,
'type': {'basetype': 'Vector',
'element': 'Double',
'index': -1}},
'temperature': {'attrs': {},
'default_int': 0,
'default_real': 0.0,
'deprecated': False,
'docs': 'Samples: surrounding '
'environment ambient '
'temperature (in degrees '
'Celsius).',
'id': 2,
'name': 'temperature',
'offset': 8,
'required': False,
'type': {'basetype': 'Vector',
'element': 'Double',
'index': -1}},
'timestamp': {'attrs': {},
'default_int': 0,
'default_real': 0.0,
'deprecated': False,
'docs': 'Samples: point in time (UTC) '
'when sample was measured, in '
'Unix time (ns precision).',
'id': 1,
'name': 'timestamp',
'offset': 6,
'required': False,
'type': {'basetype': 'Vector',
'element': 'ULong',
'index': -1}}},
'is_struct': False,
'min_align': 1,
'name': 'io.crossbar.crossbarfxmarkets.schema.climate.ClimateSeries'}},
'schema': {'enums': 0,
'filename': 'climate.bfbs',
'objects': 3,
'services': 1,
'sha256': 'b187f0046566a67296523d8a0130998de86593adeedf235938d1b6d14319314f',
'size': 2464},
'services': {'io.crossbar.crossbarfxmarkets.schema.climate.Climate': {'attrs': {'type': 'interface',
'uuid': 'fcd4d873-e24b-4239-a5fc-7ff1de027538'},
'calls': {'get_climate': {'attrs': {'type': 'procedure'},
'docs': 'Retrieve the current (latest) '
'climate sensor readings.',
'name': 'get_climate',
'request': {'attrs': {},
'bytesize': 0,
'docs': '',
'fields': {},
'is_struct': False,
'min_align': 1,
'name': 'Void'},
'response': {'attrs': {},
'bytesize': 0,
'docs': 'A single climate '
'sample.',
'fields': {},
'is_struct': False,
'min_align': 1,
'name': 'io.crossbar.crossbarfxmarkets.schema.climate.Climate'}},
'on_climate_series': {'attrs': {'type': 'topic'},
'docs': 'Event published for a new '
'ClimateSeries.',
'name': 'on_climate_series',
'request': {'attrs': {},
'bytesize': 0,
'docs': 'A series of '
'climate '
'samples.',
'fields': {},
'is_struct': False,
'min_align': 1,
'name': 'io.crossbar.crossbarfxmarkets.schema.climate.ClimateSeries'},
'response': {'attrs': {},
'bytesize': 0,
'docs': '',
'fields': {},
'is_struct': False,
'min_align': 1,
'name': 'Void'}}},
'docs': '',
'name': 'io.crossbar.crossbarfxmarkets.schema.climate.Climate'}}}
(cpy390_1) oberstet@intel-nuci7:~/scm/crossbario/zlmdb$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment