Skip to main content

A framework for serializing data with headers

Project description

Struct Frame

A framework for serializing data with headers

Quick Start

Python Usage

# Install dependencies
pip install -e .

# Generate code from proto file
python src/main.py examples/myl_vehicle.proto --build_c --build_ts --build_py

# Generated files will be in the generated/ directory

TypeScript Example

# Install TypeScript dependencies
npm i -D typescript typed-struct @types/node

# Generate TypeScript code first
python src/main.py examples/myl_vehicle.proto --build_ts

# Compile and run the example
npx tsc examples/index.ts --outDir generated/
node generated/examples/index.js

C Example

# Generate C code first  
python src/main.py examples/myl_vehicle.proto --build_c

# Compile the C example
gcc examples/main.c -I generated/c -o main
./main

Project Structure

  • src/ - Source code for the struct-frame library
  • examples/ - Example usage and demo files
  • generated/ - Generated output files (ignored by git)

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

struct_frame-0.0.27.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

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

struct_frame-0.0.27-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file struct_frame-0.0.27.tar.gz.

File metadata

  • Download URL: struct_frame-0.0.27.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for struct_frame-0.0.27.tar.gz
Algorithm Hash digest
SHA256 7aa31017469ffc93bf20ff500c77d2c59100a16021d0cc43d4041de687ae3ea9
MD5 c4dc9b54c7d40406af2a95cd208b1826
BLAKE2b-256 07aa03c11705138b991ae6f9fb63949ed71920a5fe070c7c686073ef6f5edbcd

See more details on using hashes here.

File details

Details for the file struct_frame-0.0.27-py3-none-any.whl.

File metadata

  • Download URL: struct_frame-0.0.27-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for struct_frame-0.0.27-py3-none-any.whl
Algorithm Hash digest
SHA256 5663ff88999d8b8a58dda3c6a4b7425726495ca56a6a07accd10483457e1358c
MD5 b587f940eba6624b8ef7275d7e255d93
BLAKE2b-256 eaa97c85c65b213fa5fba2a18c12f4cea9ae5dfc4ad5ab3391dce6892d9e14e8

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