Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Libraries

    msgpack-rpc-python 0.3.3

    Download button

    No screenshots available
    Downloads: 186  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Masahiro Nakagawa | More programs
    The Apache License 2.0 / FREE
    April 25th, 2012, 15:52 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    msgpack-rpc-python description

    MessagePack RPC

    msgpack-rpc-python is an extremely efficient object serialization library. It's like JSON, but very fast and small.

    What's MessagePack?

    MessagePack is a binary-based efficient object serialization library. It enables to exchange structured objects between many languages like JSON. But unlike JSON, it is very fast and small.

    Typical small integer (like flags or error code) is saved only in 1 byte, and typical short string only needs 1 byte except the length of the string itself. [1,2,3] (3 elements array) is serialized in 4 bytes using MessagePack as follows:

    require 'msgpack'
    msg = [1,2,3].to_msgpack #=> "\x93\x01\x02\x03"
    MessagePack.unpack(msg) #=> [1,2,3]


    MessagePack-RPC is cross-language RPC library for client, server and cluster applications. Because it releases you from complicated network programming completely and provides well-designed API, you can easily implement advanced network applications with MessagePack-RPC.

    require 'msgpack/rpc'
    class MyHandler
     def add(x,y) return x+y end
    end
    svr = MessagePack::RPC::Server.new
    svr.listen('0.0.0.0', 18800, MyHandler.new)
    svr.run

    require 'msgpack/rpc'
    c = MessagePack::RPC::Client.new('127.0.0.1',18800)
    result = c.call(:add, 1, 2) #=> 3


    Getting Started

    Usage and other documents about implementations in each language are found at the web site.


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    MessagePack RPC | Python library | object serialization | Python | MessagePack | RPC

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM