Let us walk on the 3-isogeny graph
Loading...
Searching...
No Matches
pip._vendor.msgpack Namespace Reference

Namespaces

namespace  exceptions
 
namespace  ext
 
namespace  fallback
 

Functions

 pack (o, stream, **kwargs)
 
 packb (o, **kwargs)
 
 unpack (stream, **kwargs)
 

Variables

tuple version = (1, 0, 5)
 
 load = unpack
 
 loads = unpackb
 
 dump = pack
 
 dumps = packb
 

Function Documentation

◆ pack()

pack (   o,
  stream,
**  kwargs 
)
Pack object `o` and write it to `stream`

See :class:`Packer` for options.

Definition at line 22 of file __init__.py.

22def pack(o, stream, **kwargs):
23 """
24 Pack object `o` and write it to `stream`
25
26 See :class:`Packer` for options.
27 """
28 packer = Packer(**kwargs)
30
31
for i

References i.

Referenced by pip._vendor.msgpack.packb().

Here is the caller graph for this function:

◆ packb()

packb (   o,
**  kwargs 
)
Pack object `o` and return packed bytes

See :class:`Packer` for options.

Definition at line 32 of file __init__.py.

32def packb(o, **kwargs):
33 """
34 Pack object `o` and return packed bytes
35
36 See :class:`Packer` for options.
37 """
38 return Packer(**kwargs).pack(o)
39
40

References pip._vendor.msgpack.pack().

Here is the call graph for this function:

◆ unpack()

unpack (   stream,
**  kwargs 
)
Unpack an object from `stream`.

Raises `ExtraData` when `stream` contains extra bytes.
See :class:`Unpacker` for options.

Definition at line 41 of file __init__.py.

41def unpack(stream, **kwargs):
42 """
43 Unpack an object from `stream`.
44
45 Raises `ExtraData` when `stream` contains extra bytes.
46 See :class:`Unpacker` for options.
47 """
48 data = stream.read()
49 return unpackb(data, **kwargs)
50
51
52# alias for compatibility to simplejson/marshal/pickle.

References i.

Variable Documentation

◆ dump

dump = pack

Definition at line 56 of file __init__.py.

◆ dumps

dumps = packb

Definition at line 57 of file __init__.py.

◆ load

load = unpack

Definition at line 53 of file __init__.py.

◆ loads

loads = unpackb

Definition at line 54 of file __init__.py.

◆ version

tuple version = (1, 0, 5)

Definition at line 9 of file __init__.py.