Skip to content

Latest commit

 

History

History
105 lines (73 loc) · 1.61 KB

api.md

File metadata and controls

105 lines (73 loc) · 1.61 KB

API

Packing

.. autofunction:: umsgpack.packb

Also available under the ``umsgpack.dumps()`` alias.
.. autofunction:: umsgpack.pack

Also available under the ``umsgpack.dump()`` alias.

Unpacking

.. autofunction:: umsgpack.unpackb

Also available under the ``umsgpack.loads()`` alias.
.. autofunction:: umsgpack.unpack

Also available under the ``umsgpack.load()`` alias.

Packing Exceptions

.. autoexception:: umsgpack.PackException
.. autoexception:: umsgpack.UnsupportedTypeException

Unpacking Exceptions

.. autoexception:: umsgpack.UnpackException
.. autoexception:: umsgpack.InsufficientDataException
.. autoexception:: umsgpack.InvalidStringException
.. autoexception:: umsgpack.UnsupportedTimestampException
.. autoexception:: umsgpack.ReservedCodeException
.. autoexception:: umsgpack.UnhashableKeyException
.. autoexception:: umsgpack.DuplicateKeyException

Ext Class

.. autoclass:: umsgpack.Ext
   :member-order: bysource
   :special-members: __init__, __eq__, __ne__, __str__, __hash__

Ext Serializable Decorator

.. autodecorator:: umsgpack.ext_serializable

Invalid String Class

.. autoclass:: umsgpack.InvalidString

Attributes

.. autodata:: umsgpack.compatibility

Constants

.. autodata:: umsgpack.version
.. autodata:: umsgpack.__version__