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.2.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.2-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tau_log-0.1.2.tar.gz
  • Upload date:
  • Size: 4.2 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.2.tar.gz
Algorithm Hash digest
SHA256 f81e6308456bb057c7d9f34cc6babd5c51b1c4bf3c751611a0920663e42e2864
MD5 8ce9797ecd59016bbe32600a595ee0b3
BLAKE2b-256 27985476cf6c70997796ab396df1745b20d94cc3c11050defc6a2e967c5b0d9e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tau_log-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4dd9981c79378db20839d43e8fc106268cdabda40518d0251f3d36f9f7c0becc
MD5 22eca6b9dde22947b4d87a1a20b7fb81
BLAKE2b-256 fdb15446b283dd9e586abed23a6798c785ecfb327122f49230f62a47b6673f6b

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