Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Simple and fast Python any object serialization with use msgpack.

Project Description

Introduction

Simple pure Python object encoder and decoder using msgpack (u-msgpack-python package at bottom).

It allows encode Python object with high speed and compression since we using msgpack at bottom.

It reduce code overhead to minimum and allow you focus on algorithms.

How to use it

It is very simple:

from cw_msgpack_coder.umsgpack_coder import UmsgpackCoder


class YourNestedClass:
    pass


class YourClass:
    def __init__(name, nested)
        self.name = name
        self.nested = nested


# create coder
coder = UmsgpackCoder()

# register your classes (required because of security reasons)
coder.set_default_coder_for_class(self.YourClass)
coder.set_default_coder_for_class(self.YourNestedClass)

# now create some objects to test
o = YourClass('hello world!', YourNestedClass())

# encode to bytes
encoded = coder.dumps(o)

# decode bytes to objects
o2 = coder.decode(encoded)

# o == o2!
Release History

Release History

This version
History Node

1.1.4

History Node

1.1.3

History Node

1.1.2

History Node

1.1.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
cw_msgpack_coder-1.1.4.tar.gz (3.1 kB) Copy SHA256 Checksum SHA256 Source Jan 10, 2018

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting