python-suitcase icon indicating copy to clipboard operation
python-suitcase copied to clipboard

DSL for describing binary structures and protocols generating symmetric parsers, packers, and protocol handlers

Results 15 python-suitcase issues
Sort by recently updated
recently updated
newest added

Hi, I'm trying to use Suitcase to define the Apple iAP protocol received through a stream. I'm not sure my approach to handle the payload length is smart enough. The...

Using the following code: ```python from suitcase.structure import Structure from suitcase.fields import UBInt8 class Base(Structure): a = UBInt8() b = UBInt8() class Subclass(Base): c = UBInt8() Subclass.from_data(b'\x00') ``` Intuitively I...

Suppose there exists a protocol whose messages are laid out as follows: | Offset | Size (octets) | Description | | --- | --- | --- | | 0 |...

enhancement

It would be very useful if one could define default values for fields. That way optional or seldom used fields wouldn't need to be specified for every use.

Among other things, the protocol I'm working with includes a type and length in its metadata. The payload is a list of substructures that will be of the type specified....

The protocol I'm working with includes two pieces of data in individual fields needed to determine the total payload length that I would have in a `FieldArray`'s `length_provider`: 1. The...

tl;dr: It would be nice if Payload() consumed data until the first None/null-character if no length is specified, rather than the last instance of it as it appears to currently...

I've just come across this library and after checking out the documentation at https://digidotcom.github.io/python-suitcase/latest/api.html I was wondering why there isn't support for floats?

Hi, How do I describe a fixed length character field that is always 8 bytes long? Payload() works if the field is variable length but in my case I have...