Skip to main content

Osef python library.

Project description

OSEF library

Library containing utilities to read and parse a stream, live or recorded, retrieved from Shift.

The stream is in the OSEF format (Open SErialization Format): it's an Outsight-defined serialisation binary format used to encode data streaming out of Shift. It is based on TLV-encoding.

For the full documentation, see: Developer documentation.
You can contact us @ https://support.outsight.ai

Installation

Install from PyPi using pip:

pip install osef

Usage

Open and parse an osef file or stream:

import osef

osef_path = "path/to/my/file.osef"
# or osef_path="tcp://192.168.2.2:11120"

for frame_dict in osef.parse(osef_path):
    print(frame_dict)

Additional parameters:

  • first/last: the first and the last frame to parse
  • auto_reconnect: enable parser auto_reconnection (default: True)
  • real_frequency: If False, parse data as fast as your computer can. If True, process the data as the same pace as the real time stream from Shift (default: False)
  • lazy: If lazy, the dict only unpack the values when they are accessed to save up resources (default: True)

To find more code samples, see Outsight Code Samples repository.

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

osef-3.0.0.tar.gz (45.9 kB view details)

Uploaded Source

Built Distribution

osef-3.0.0-py3-none-any.whl (45.0 kB view details)

Uploaded Python 3

File details

Details for the file osef-3.0.0.tar.gz.

File metadata

  • Download URL: osef-3.0.0.tar.gz
  • Upload date:
  • Size: 45.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.18

File hashes

Hashes for osef-3.0.0.tar.gz
Algorithm Hash digest
SHA256 94ff86a48753355b29ca0837477da7ca3b9bb16270152e3212c709ecb80f89e1
MD5 7260826c14da1afb4527741658abe578
BLAKE2b-256 d852f1d8cc263bf19f0636e48d637bf7c3368d71b07738e1f9bca86b03718f3d

See more details on using hashes here.

File details

Details for the file osef-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: osef-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 45.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.18

File hashes

Hashes for osef-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4129f07d50f3955adc6483196c249ffe1c8b118a4812dddf78f5e1ac27e8dc6d
MD5 1bdd5150f3bba2f08460e72325a5a310
BLAKE2b-256 947f0cdf6c2e9db7521205185a0d5de37e24f3802688a4c507c3781f9e95feb4

See more details on using hashes here.

Supported by

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