Skip to main content

A serializer for typed data in the Drift infrastructure.

Project description

Python DriftBytes

Python bindings for DriftBytes.

Requirements

  • Python >= 3.8
  • CMake >= 3.16 (for building)
  • C++17 compiler (for building)
  • conan >= 1.56, < 2.0 (for building)

Installation

pip install drift-bytes

Usage Example

from drift_bytes import Variant, InputBuffer, OutputBuffer

out_buf = OutputBuffer(3)
out_buf[0] = None
out_buf[1] = Variant(2)
out_buf[2] = [1.0, 2.0, 3.0]

in_buf = InputBuffer(out_buf.bytes())

assert in_buf[0].value is None
assert in_buf[1].value == 2
assert in_buf[2].value == [1.0, 2.0, 3.0]

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

drift-bytes-0.3.0.tar.gz (22.4 kB view hashes)

Uploaded Source

Built Distributions

drift_bytes-0.3.0-cp311-cp311-win_amd64.whl (115.8 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

drift_bytes-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (167.8 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

drift_bytes-0.3.0-cp311-cp311-macosx_10_13_x86_64.whl (127.4 kB view hashes)

Uploaded CPython 3.11 macOS 10.13+ x86-64

drift_bytes-0.3.0-cp310-cp310-win_amd64.whl (115.2 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

drift_bytes-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (166.7 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

drift_bytes-0.3.0-cp310-cp310-macosx_10_13_x86_64.whl (126.0 kB view hashes)

Uploaded CPython 3.10 macOS 10.13+ x86-64

drift_bytes-0.3.0-cp39-cp39-win_amd64.whl (113.6 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

drift_bytes-0.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (167.1 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

drift_bytes-0.3.0-cp39-cp39-macosx_10_13_x86_64.whl (126.1 kB view hashes)

Uploaded CPython 3.9 macOS 10.13+ x86-64

drift_bytes-0.3.0-cp38-cp38-win_amd64.whl (115.2 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

drift_bytes-0.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (166.4 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

drift_bytes-0.3.0-cp38-cp38-macosx_10_13_x86_64.whl (127.0 kB view hashes)

Uploaded CPython 3.8 macOS 10.13+ x86-64

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