UNKNOWN
Project description
This Python module allows to manipulate binary packed objects as classes.
Similarly to the standard library struct module, objects can be packed or unpacked.
Usage example
>>> from structclass import StructClass >>> SomePacket = StructClass('SomePacket', '<II', ['length', 'age']) >>> my_packet = SomePacket.unpack(b'12345678')[0] >>> my_packet SomePacket(length=875770417, age=943142453) >>> my_packet.age 943142453 >>> my_packet.pack() b'12345678'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
StructClass-1.0.0.tar.gz
(2.0 kB
view details)
Built Distribution
File details
Details for the file StructClass-1.0.0.tar.gz
.
File metadata
- Download URL: StructClass-1.0.0.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 449a99b1e810bd904d74ebf21700cf04757ad81b2a7a3104179c4f67e04b2af4 |
|
MD5 | adfa65fe151da4d6ec9f123f4f17a38a |
|
BLAKE2b-256 | 4e110253ce35e300c4742c377bac42079332c7f0cf855a444f77c92f9b67fd5b |
File details
Details for the file StructClass-1.0.0.linux-x86_64.exe
.
File metadata
- Download URL: StructClass-1.0.0.linux-x86_64.exe
- Upload date:
- Size: 64.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98e873e78ecf30b2c8945218165a7a3a651a0ec8ed8c0e1cf57923987285a55e |
|
MD5 | 40d76dfe32657afb5809d160128a65f5 |
|
BLAKE2b-256 | b0e7eb54c9f8894f39632361201667de4fdfe42f0bfbe5934ba01043c80ab119 |