Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moved all interfaces to libp2p/abc #502

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
174 changes: 87 additions & 87 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,94 +29,94 @@ py-libp2p aims for conformity with [the standard libp2p modules](https://libp2p.

> Legend: ✅: Done   🛠️: In Progress   🚫: Missing   ❌: Not planned

| libp2p Node | Status |
| ------------ | :-----------: |
| **`libp2p`** | |

| Core Protocols | Status |
| -------------- | :-----------: |
| **`Ping`** | |
| **`Identify`** | |

| Transport Protocols | Status |
| ------------------- | :-----------: |
| **`TCP`** | |
| **`QUIC`** | 🛠️ |
| **`UDP`** | 🚫 |
| **`WebSockets`** | ❌ |
| **`UTP`** | |
| **`WebRTC`** | ❌ |
| **`SCTP`** | ❌ |
| **`Tor`** | ❌ |
| **`i2p`** | ❌ |
| **`cjdns`** | ❌ |
| **`Bluetooth LE`** | ❌ |
| **`Audio TP`** | ❌ |
| **`Zerotier`** | ❌ |

| Stream Muxers | Status |
| ---------------- | :-----------: |
| **`multiplex`** | |
| libp2p Node | Status |
| ------------ | :----: |
| **`libp2p`** | |

| Core Protocols | Status |
| -------------- | :----: |
| **`Ping`** | |
| **`Identify`** | |

| Transport Protocols | Status |
| ------------------- | :----: |
| **`TCP`** | |
| **`QUIC`** | 🛠️ |
| **`UDP`** | 🚫 |
| **`WebSockets`** | ❌ |
| **`UTP`** | |
| **`WebRTC`** | ❌ |
| **`SCTP`** | ❌ |
| **`Tor`** | ❌ |
| **`i2p`** | ❌ |
| **`cjdns`** | ❌ |
| **`Bluetooth LE`** | ❌ |
| **`Audio TP`** | ❌ |
| **`Zerotier`** | ❌ |

| Stream Muxers | Status |
| ---------------- | :----: |
| **`multiplex`** | |
| **`yamux`** | 🚫 |
| **`benchmarks`** | ❌ |
| **`muxado`** | ❌ |
| **`spdystream`** | ❌ |
| **`spdy`** | ❌ |
| **`http2`** | ❌ |
| **`QUIC`** | ❌ |

| Protocol Muxers | Status |
| ----------------- | :-----------: |
| **`multiselect`** | |

| Switch (Swarm) | Status |
| ------------------ | :-----------: |
| **`Switch`** | |
| **`Dialer stack`** | |

| Peer Discovery | Status |
| -------------------- | :--------: |
| **`bootstrap list`** | 🚫 |
| **`Kademlia DHT`** | |
| **`mDNS`** | |
| **`PEX`** | |
| **`DNS`** | |

| Content Routing | Status |
| ------------------ | :-----------: |
| **`Kademlia DHT`** | ❌ |
| **`floodsub`** | |
| **`gossipsub`** | |
| **`PHT`** | ❌ |

| Peer Routing | Status |
| ------------------ | :-----------: |
| **`Kademlia DHT`** | ❌ |
| **`floodsub`** | |
| **`gossipsub`** | |
| **`PHT`** | ❌ |

| NAT Traversal | Status |
| ------------------------ | :--------: |
| **`nat-pmp`** | |
| **`upnp`** | |
| **`ext addr discovery`** | |
| **`STUN-like`** | |
| **`line-switch relay`** | |
| **`pkt-switch relay`** | |

| Exchange | Status |
| ---------------- | :--------: |
| **`HTTP`** | |
| **`Bitswap`** | |
| **`Bittorrent`** | |

| Consensus | Status |
| -------------- | :--------: |
| **`Paxos`** | |
| **`Raft`** | |
| **`PBTF`** | |
| **`Nakamoto`** | |
| **`benchmarks`** | ❌ |
| **`muxado`** | ❌ |
| **`spdystream`** | ❌ |
| **`spdy`** | ❌ |
| **`http2`** | ❌ |
| **`QUIC`** | ❌ |

| Protocol Muxers | Status |
| ----------------- | :----: |
| **`multiselect`** | |

| Switch (Swarm) | Status |
| ------------------ | :----: |
| **`Switch`** | |
| **`Dialer stack`** | |

| Peer Discovery | Status |
| -------------------- | :----: |
| **`bootstrap list`** | 🚫 |
| **`Kademlia DHT`** | |
| **`mDNS`** | |
| **`PEX`** | |
| **`DNS`** | |

| Content Routing | Status |
| ------------------ | :----: |
| **`Kademlia DHT`** | ❌ |
| **`floodsub`** | |
| **`gossipsub`** | |
| **`PHT`** | ❌ |

| Peer Routing | Status |
| ------------------ | :----: |
| **`Kademlia DHT`** | ❌ |
| **`floodsub`** | |
| **`gossipsub`** | |
| **`PHT`** | ❌ |

| NAT Traversal | Status |
| ------------------------ | :----: |
| **`nat-pmp`** | |
| **`upnp`** | |
| **`ext addr discovery`** | |
| **`STUN-like`** | |
| **`line-switch relay`** | |
| **`pkt-switch relay`** | |

| Exchange | Status |
| ---------------- | :----: |
| **`HTTP`** | |
| **`Bitswap`** | |
| **`Bittorrent`** | |

| Consensus | Status |
| -------------- | :----: |
| **`Paxos`** | |
| **`Raft`** | |
| **`PBTF`** | |
| **`Nakamoto`** | |

## Explanation of Basic Two Node Communication

Expand Down
6 changes: 3 additions & 3 deletions examples/chat/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
from libp2p import (
new_host,
)
from libp2p.abc import (
INetStream,
)
from libp2p.custom_types import (
TProtocol,
)
from libp2p.network.stream.net_stream_interface import (
INetStream,
)
from libp2p.peer.peerinfo import (
info_from_p2p_addr,
)
Expand Down
6 changes: 3 additions & 3 deletions examples/echo/echo.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
from libp2p import (
new_host,
)
from libp2p.abc import (
INetStream,
)
from libp2p.crypto.secp256k1 import (
create_new_key_pair,
)
from libp2p.custom_types import (
TProtocol,
)
from libp2p.network.stream.net_stream_interface import (
INetStream,
)
from libp2p.peer.peerinfo import (
info_from_p2p_addr,
)
Expand Down
6 changes: 3 additions & 3 deletions examples/ping/ping.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
from libp2p import (
new_host,
)
from libp2p.abc import (
INetStream,
)
from libp2p.custom_types import (
TProtocol,
)
from libp2p.network.stream.net_stream_interface import (
INetStream,
)
from libp2p.peer.peerinfo import (
info_from_p2p_addr,
)
Expand Down
18 changes: 6 additions & 12 deletions libp2p/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
from importlib.metadata import version as __version

from libp2p.abc import (
IHost,
INetworkService,
IPeerRouting,
IPeerStore,
)
from libp2p.crypto.keys import (
KeyPair,
)
Expand All @@ -12,15 +18,9 @@
from libp2p.host.basic_host import (
BasicHost,
)
from libp2p.host.host_interface import (
IHost,
)
from libp2p.host.routed_host import (
RoutedHost,
)
from libp2p.network.network_interface import (
INetworkService,
)
from libp2p.network.swarm import (
Swarm,
)
Expand All @@ -30,12 +30,6 @@
from libp2p.peer.peerstore import (
PeerStore,
)
from libp2p.peer.peerstore_interface import (
IPeerStore,
)
from libp2p.routing.interfaces import (
IPeerRouting,
)
from libp2p.security.insecure.transport import (
PLAINTEXT_PROTOCOL_ID,
InsecureTransport,
Expand Down
Loading
Loading