To use EasyNetwork, first install it using :program:`pip`:
(.venv) $ pip install easynetwork
EasyNetwork has no required dependencies, but comes with many optional dependencies to meet specific needs.
Here is the full list:
Serializer extensions:
cbor
: Installs the required dependencies for :class:`.CBORSerializer`.msgpack
: Installs the required dependencies for :class:`.MessagePackSerializer`.
Asynchronous I/O extensions:
sniffio
: Installs the version supported and tested of :github:repo:`sniffio <python-trio/sniffio>`.
Example where the cbor
and msgpack
extensions are installed:
(.venv) $ pip install "easynetwork[cbor,msgpack]"
.. seealso:: :doc:`/api/lowlevel/async/backend` See how ``sniffio`` is used.