examples.transport package

Submodules

examples.transport.transport_integration_demo module

Demo script showing the new transport integration capabilities in py-libp2p.

This script demonstrates: 1. How to use the transport registry 2. How to create transports dynamically based on multiaddrs 3. How to register custom transports 4. How the new system automatically selects the right transport

Usage:

python examples/transport/transport_integration_demo.py

examples.transport.transport_integration_demo.demo_custom_transport_registration()

Demonstrate how to register custom transports.

examples.transport.transport_integration_demo.demo_integration_with_libp2p()

Demonstrate how the new system integrates with libp2p.

examples.transport.transport_integration_demo.demo_multiaddr_transport_selection()

Demonstrate automatic transport selection based on multiaddrs.

examples.transport.transport_integration_demo.demo_transport_factory()

Demonstrate the transport factory functions.

examples.transport.transport_integration_demo.demo_transport_registry()

Demonstrate the transport registry functionality.

async examples.transport.transport_integration_demo.main()

Run all demos.

Module contents