Skip to main content

Binary log decoder for Tau project

Project description

tau-log

tau-log is a Python package that provides tools for reading and decoding binary log files, used in Tau project.

How to use it

Messages structure file creation

tau-log needs a json file with the minimum necessary information about all messages types in log file. An example of such file with only one message is given below:

{
  "TestMessage": {
    "index": 168,
    "data_field_names": [
      "time_ms",
      "pressure",
      "temperature",
      "altitude"
    ],
    "data_field_types": [
      "uint32",
      "float",
      "float",
      "double"
    ]
  }
}

In this example structure:

  • TestMessage is a message unique name
  • index is message unique id, which is 168 in this example. Index is always the first message field and always has uint8 type
  • data_field_names contains names of all message fields. All names must be unique within one message
  • data_field_types contains types of data in all message fields. This package currently supports only the following data types:
    • 4-byte signed integers: int, int32, long
    • 4-byte unsigned integers: uint32
    • 2-byte signed integers: int16
    • 2-byte unsigned integers: uint16
    • 1-byte signed integers: int8
    • 1-byte unsigned integers: uint8
    • 4-byte floating point numbers: float
    • 8-byte floating point numbers: double
    • 1-byte boolean numbers: bool

Log file decoding

Typical use of tau-log decoder:

import tau_log

log_decoder = tau_log.TauLogDecoder()
log_decoder.load_structure_from_json("structure.json")
log_decoder.decode_log("log_1.tau")

data = log_decoder.data

The decoder provides data in the form of a dictionary, where the data from each message is stored in a separate pandas DataFrame.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tau_log-0.1.3.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tau_log-0.1.3-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file tau_log-0.1.3.tar.gz.

File metadata

  • Download URL: tau_log-0.1.3.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for tau_log-0.1.3.tar.gz
Algorithm Hash digest
SHA256 06672692a2a8a3d33f67427e1d765cce4e79486b0868238fee89a53d547e5b9a
MD5 5ddce09d2cbb3a8aea632d4fac30ce71
BLAKE2b-256 c6f0f617c548ea1e37eb29274ac5d6ab2b1b5e0698e9e765c41b31a684f18187

See more details on using hashes here.

File details

Details for the file tau_log-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: tau_log-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for tau_log-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f02b3a99a9e6c7b4fbb182dc3e00ef23b7507646fd867c9c2ed58e4f0df6bde2
MD5 10e6b95bdbc72143ca49e05f37105591
BLAKE2b-256 9065bd165642f242e6c06f242b76e4d8f52ca332cc17a612bf6c32487040f4c6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page