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 is 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:

log_decoder = 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.1.tar.gz (4.1 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.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tau_log-0.1.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for tau_log-0.1.1.tar.gz
Algorithm Hash digest
SHA256 493ed4f98d0f2ef0c6b0569235f77c14c1db0ce94114f7e2ff2664bc95ac232a
MD5 37ff9422811ce0982881c12713628006
BLAKE2b-256 98ac17bc143e89df3467f36a69339948d9aef9da816a67ced33ffc25bb8f50db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tau_log-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for tau_log-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6a2a568443567d84e2dfe887219643fd445adf6565c8609ef2941cb8252c49fa
MD5 2191d015d25e6bc4300c032cf668c5b4
BLAKE2b-256 43a2a943e582c477d2c95fb7bb8f6e731b65460aa173b699035c2fb364f3e251

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