Skip to main content

prophy: fast serialization protocol

Project description

Prophy is a statically typed, binary, tag-free, unpacked serialization protocol.

You can define message schema:

//test.prophy
struct Test
{
    u16 x<>;
};

generate codec for chosen language:

prophyc --python_out . test.prophy

and serialize data:

>>> import test
>>> msg = test.Test()
>>> msg.x[:] = [1, 2, 3, 4]
>>> msg.encode('<')
'\x04\x00\x00\x00\x01\x00\x02\x00\x03\x00\x04\x00'

Documentation: http://prophy.readthedocs.org

Issues: https://github.com/aurzenligl/prophy/issues

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

prophy-cpp-0.4.2.tar.gz (951 Bytes view hashes)

Uploaded Source

prophy-0.4.2.tar.gz (21.7 kB view hashes)

Uploaded Source

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