Skip to main content

A python implementation of the UDBF (Universal Data bin File) format.

Project description

pyudbf

General

A python implementation of the UDBF ("Universal Data Bin File") data format version 1.07. The UDBF format is e.g. frequently used for data exchange with Gantner Instruments data acquisition systems.

Installation via pip

pip install pyudbf

Examples

The "tests"-folder in the projects github repository contains a small example UDBF file called example.udbf. In the following, it is assumed that this file is located at "./tests/example.udbf".

Simple file reader

python tests/udbf_file_reader.py --help
python tests/udbf_file_reader.py --in tests/example.udbf

Example for usage in own projects

The following python code provides an entry point for the usage of pyudbf in own projects.

from pyudbf import UDBFFileReader
# get access to the file
udbf_data = UDBFFileReader('./tests/example.udbf')

# show all information of data file header
print(udbf_data.header.__dict__)
print('Channel count: ' + str(udbf_data.n_channels))
print('Data point count: ' + str(udbf_data.n_points))
print('Data record: ' + str(udbf_data.runlength) + ' s')

# show all existing channels
print(udbf_data.header.channel_names)

# get data of specific channels
timestamp = udbf_data.timestamps
camera_links_X = udbf_data.signal(7)  # get values of selected channel by index
camera_links_X = udbf_data.channel('camera links X')  # get values of selected channel by name

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

pyudbf-0.3.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

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

pyudbf-0.3.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file pyudbf-0.3.0.tar.gz.

File metadata

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

File hashes

Hashes for pyudbf-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6047a624d2fc4950196472f830ab50641eb9dc7d43ba10b86369fbc794165493
MD5 3a5de54f232fcadef59995fd421e2c25
BLAKE2b-256 b057c5197989ed928d41fb1b3ede19592617175a6ebc84c47afa02dcca35bfd9

See more details on using hashes here.

File details

Details for the file pyudbf-0.3.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for pyudbf-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2722f680c12db9c9d30016af56e6455d1d97b65971d64c333a01f74e29036f80
MD5 c949208cb115df2a1069c279afd63b67
BLAKE2b-256 6c5402ed8b8f73fa0212d0bbab5857aaf2dd0e6a5436a9a80539b149fffc7966

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