MessagePack-PythonMessagePack 的 Python 實現(xiàn)
MessagePack-Python 是用于 Python 的 MessagePack 序列化實現(xiàn)。
MessagePack 是一個基于二進(jìn)制高效的對象序列化類庫,可用于跨語言通信。它可以像 JSON 那樣,在許多種語言之間交換結(jié)構(gòu)對象;但是它比 JSON 更快速也更輕巧。
安裝
$ pip install msgpack-python
PyPy
msgpack-python 提供純 python 實現(xiàn)。PyPy 可以使用。
Windows
當(dāng)不能使用二進(jìn)制分發(fā),你需要在 Windows 上安裝 Visual Studio 或 Windows SDK 。 如果沒有擴(kuò)展,在 CPython 上使用純 python 實現(xiàn)會運行緩慢。
對于 Python 2.7,建議使用 Microsoft Visual C ++ Compiler for Python 2.7。
對于 Python 3.5,Microsoft Visual Studio 2015 社區(qū)版或 Express Edition 可用于構(gòu)建擴(kuò)展模塊。
評論
圖片
表情
