Metadata-Version: 2.4
Name: p2pclient
Version: 0.3.0
Summary: The libp2p daemon bindings for Python
Author-email: Kevin Mai-Hsuan Chia <kevin.mh.chia@gmail.com>
Project-URL: Homepage, https://github.com/mhchia/py-libp2p-daemon-bindings
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: <4.0,>=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: anyio>=4.0.0
Requires-Dist: base58>=1.0.3
Requires-Dist: multiaddr<1.0.0,>=0.2.0
Requires-Dist: protobuf<7.0.0,>=4.25.0
Requires-Dist: pycryptodome<4.0.0,>=3.9.2
Requires-Dist: py-multihash>=3.0.0
Provides-Extra: test
Requires-Dist: mypy>=1.15.0; extra == "test"
Requires-Dist: pytest-cov>=4.0.0; extra == "test"
Requires-Dist: pytest>=7.0.0; extra == "test"
Requires-Dist: types-protobuf; extra == "test"
Provides-Extra: lint
Requires-Dist: ruff>=0.11.10; extra == "lint"
Requires-Dist: mypy-protobuf>=3.0.0; extra == "lint"
Provides-Extra: dev
Requires-Dist: p2pclient[lint,test]; extra == "dev"
Requires-Dist: tox>=4.0.0; extra == "dev"
Requires-Dist: build>=0.9.0; extra == "dev"
Requires-Dist: pre-commit>=3.4.0; extra == "dev"
Requires-Dist: towncrier<26,>=25; extra == "dev"
Requires-Dist: wheel; extra == "dev"
Dynamic: license-file

# py-libp2p-daemon-bindings

[![Unit tests](https://github.com/mhchia/py-libp2p-daemon-bindings/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/mhchia/py-libp2p-daemon-bindings/actions/workflows/unit-tests.yml)

> The [libp2p daemon](https://github.com/libp2p/go-libp2p-daemon) bindings for Python

Provides a client library to interact with the official libp2p daemons.
Supports the [Go](https://github.com/libp2p/go-libp2p-daemon) and [JavaScript](https://github.com/libp2p/js-libp2p-daemon) daemons.

Features:
- The `Client` class enables communication with a P2P daemon using its protobuf control protocol.
- The `Daemon` class allows to spawn a P2P daemon from Python code. This is especially useful for testing.

Tested with the Go daemon v0.9.2 and the JS daemon v0.10.2.

## Supported features (Go daemon)

- [x] `Identify`
- [x] `Connect`
- [x] `StreamOpen`
- [x] `StreamHandler` - Register
- [x] `StreamHandler` - Inbound stream
- [x] DHT ops
- [x] Conn manager ops
- [x] PubSub ops

## Supported features (JS daemon)
- [x] `Identify`
- [x] `Connect`
- [x] `StreamOpen`
- [x] `StreamHandler` - Register
- [x] `StreamHandler` - Inbound stream
- [ ] DHT ops / most functionalities are bugged and some are not implemented
- [ ] Conn manager ops
- [x] PubSub ops
- [ ] PeerStore
