Files
py-libp2p/libp2p/utils/__init__.py
acul71 37e4fee9f8 feat: Add identify-push raw format support and yamux logging improvements
- Add comprehensive integration tests for identify-push protocol
- Support both raw protobuf and varint message formats
- Improve yamux logging integration with LIBP2P_DEBUG
- Fix RawConnError handling to reduce log noise
- Add Ctrl+C handling to identify examples
- Enhance identify-push listener/dialer demo

Fixes: #784
2025-07-20 20:19:18 +02:00

30 lines
671 B
Python

"""Utility functions for libp2p."""
from libp2p.utils.varint import (
decode_uvarint_from_stream,
encode_delim,
encode_uvarint,
encode_varint_prefixed,
read_delim,
read_varint_prefixed_bytes,
decode_varint_from_bytes,
decode_varint_with_size,
read_length_prefixed_protobuf,
)
from libp2p.utils.version import (
get_agent_version,
)
__all__ = [
"decode_uvarint_from_stream",
"encode_delim",
"encode_uvarint",
"encode_varint_prefixed",
"get_agent_version",
"read_delim",
"read_varint_prefixed_bytes",
"decode_varint_from_bytes",
"decode_varint_with_size",
"read_length_prefixed_protobuf",
]