Commit Graph

72 Commits

Author SHA1 Message Date
346a0a14db Pubsub example for py-libp2p (#515)
* Initial setup for pubsup

* Created node and trying to setup gossipsub

* Fix: Use pubsub object for publishing messages instead of gossipsub

* Correct help message for port argument.

* Fix: Used pubsub object instead of gossipsub object on Client side

* Fix: handle_new_peer method of pubsub is used to connect to new peers.

* used for host.connect to connect to peers

* Corrected script for connecting to other peers.

* message receiving function created

* message publishing function created

* Refactored the code for improved clarity and maintainability.

* fix: make publish loop input non-blocking to prevent event loop blocking

* refactored the code for better user experience while publishing message

* corrected the name of protocol

* Fix: Correct the implementation of the port argument

* Added pubsub initialization

* added logging

* pubsub instance is running

* Enhance publish loop with user prompts and error handling

* Connection monitoring added

* Add key pair generation and security options to pubsub host initialization

* Refactor pubsub logging and corrected gossipsub protocol id

* Started gossipsub service

* Add dynamic port assignment

* Refactor pubsub example for CI

* feat: monitor_peer_topics function added

* Noise protocol added

* refactor: default port set to none and some logging changes.

* refactor: Add graceful shutdown with termination events

- Replace infinite loops with termination events
- Add proper shutdown handling for all loops
- Implement clean resource cleanup on exit
- Add shutdown message for better user feedback
- Update signal handling for graceful termination

* Changed import path for factories file.
- to align import statement with changes from PR 543

* Added News Fragment

* Added pub-sub demo to the console_scripts section in setup.py

* Added pubsub example to Documentation

* Fix formatting and path in PubSub documentation example

* Added pubsub example in toctree

* Added tests for pubsub example

* updated the description of pubsub example

* corrected the name of pubsub docs file

* Remove unused imports and security options from pubsub example

* Update script usage instructions in pubsub example

* Enhanced compatibility for python 3.9

* Corrected console output
2025-04-06 14:38:14 -06:00
31d0f8a79c docs: add section about adding examples to contributing guide 2025-04-02 03:13:20 -06:00
aec7995eba Compile release notes for v0.2.4 2025-03-27 15:53:34 -06:00
f9b8ac9da1 Compile release notes for v0.2.3 2025-03-27 14:46:44 -06:00
1613cf02d4 fix: add missing examples/identify/__init__.py and doc docs/examples.identify.rst 2025-03-27 14:37:43 -06:00
9379deab5a add macos details, update details
Signed-off-by: Dave Grantham <dwg@linuxprogrammer.org>
2025-03-27 14:31:11 -06:00
4514e86ee4 move pubsub testing tools into tests/utils 2025-03-27 14:21:45 -06:00
604a447287 feat: add identify protocol example 2025-03-24 17:55:16 -06:00
df72979606 moved factories to tests 2025-03-24 07:59:35 -06:00
ddf68ee4e0 rebuild protobufs with protoc v30.1 2025-03-23 16:49:19 -06:00
c86f3d0467 added dedicated test file and moved timed_cache to tools 2025-03-17 09:27:13 -06:00
ddd8930854 fixed doc errors 2025-03-17 09:27:13 -06:00
e5f3e88134 added : timed_cache sub-module 2025-03-17 09:27:13 -06:00
d7eab27564 refactored and moved all interfaces to abc.py (#504)
* refactored : host_interface

Co-authored-by: mystical-prog <jdgt.vd.0405@gmail.com>

* refactored : network_interface

Co-authored-by: mystical-prog <jdgt.vd.0405@gmail.com>

* refactored : notifee_interface

Co-authored-by: mystical-prog <jdgt.vd.0405@gmail.com>

* refactored : net_connection_interface

Co-authored-by: mystical-prog <jdgt.vd.0405@gmail.com>

* refactored: raw_connection_interface, secure_conn_interface and stream_muxer abc.py

* refactored: addrbook_interface

* refactored :peerdata_interface

Co-authored-by: mystical-prog <jdgt.vd.0405@gmail.com>

* refactored :peermetadata_interface

Co-authored-by: mystical-prog <jdgt.vd.0405@gmail.com>

* refactored :multiselect_client_interface

Co-authored-by: mystical-prog <jdgt.vd.0405@gmail.com>

* refactored :multiselect_communicator_interface

Co-authored-by: mystical-prog <jdgt.vd.0405@gmail.com>

* refactored :multiselect_muxer_interface

Co-authored-by: mystical-prog <jdgt.vd.0405@gmail.com>

* refactored :interfaces

Co-authored-by: mystical-prog <jdgt.vd.0405@gmail.com>

* refactored :security_transport_interface

Co-authored-by: mystical-prog <jdgt.vd.0405@gmail.com>

* refactored :listener_interface

Co-authored-by: mystical-prog <jdgt.vd.0405@gmail.com>

* moved all interfaces and typing files

Co-authored-by: mystical-prog <jdgt.vd.0405@gmail.com>

* fixed documentation and moved pubsub abc.py

Co-authored-by: Khwahish Patel <khwahish.p1@ahduni.edu.in>

* added exclude-members in custom_types docs

* added : newsfragment for moving all interfaces to libp2p.abc

---------

Co-authored-by: mystical-prog <jdgt.vd.0405@gmail.com>
Co-authored-by: Mystical <125946525+mystical-prog@users.noreply.github.com>
2025-02-21 16:01:45 -07:00
68f6a362fd Compile release notes for v0.2.2 2025-02-20 09:15:25 -07:00
e7a9ee78a8 rename typing.py to custom_types.py for clarity 2025-02-02 07:18:52 -07:00
e0814c9860 move interop tests tools into tests folder 2025-01-25 15:28:32 -07:00
460db3dce8 merge template, fill vars, lint 2025-01-25 14:43:45 -07:00
ae5b634d7b Update code_of_conduct.rst
making -> make
2025-01-04 15:44:50 -07:00
a72dbaa58d set demos as console scripts, update chat instructions 2025-01-01 17:36:41 -07:00
ba0d07ed66 Compile release notes for v0.2.1 2024-12-20 11:56:33 -07:00
83887422fb correct use of __file__ 2024-12-02 12:13:04 -07:00
c2dee2a538 replase display_version with two other options 2024-10-28 14:54:25 -06:00
40ce3a8174 fix code blocks and version parsing 2024-10-24 16:12:44 -06:00
bcc7d256a6 added ping docs 2024-10-24 11:34:32 -06:00
8488883705 Compile release notes for v0.2.0 2024-07-09 11:22:00 -06:00
125df142f6 bump protobufs dep to >= 5.27.2 and rebuild protobufs definitions with protoc 27.2 2024-07-04 17:04:06 -06:00
2ccc679d6d fix docs error by removing protobuf defs from docs 2024-07-04 13:19:00 -06:00
d9b92635c1 drop async-service dep and copy relevant code into a local async_service
tool, updated for modern handling of ExceptionGroup
2024-05-27 12:14:36 -06:00
d8d0f05a88 update default docs and release process, drop bumpversion for
bump-my-version
2024-05-21 14:01:08 -06:00
7de6cbaab0 display example code and usage instructions in docs 2024-05-19 13:34:13 -06:00
04cce0c925 switch to xelatex for building latexpdf as it supports more unicode 2024-04-24 15:52:24 -06:00
f0fbd2d8c8 add logo to readthedocs 2024-04-20 09:18:26 -06:00
eea065fb57 reorg test structure to match tox and CI jobs, drop bumpversion for bump-my-version and move config to pyproject.toml, fix docs building 2024-04-20 09:18:26 -06:00
1206fbef3d moving contributing info from README to Contributing docs 2024-04-20 09:18:26 -06:00
9af46b679a Create frame for friendlier docs, rebuild autodocs 2024-04-06 11:40:14 -06:00
42605c0288 merge template updates and refill vars 2024-02-19 14:49:30 -07:00
7099bbaaa4 Add pre commit (#103)
* add pre-commit

* run pre-commit

* skip lint on README.md as it breaks template filling
2023-10-04 13:32:07 -06:00
23a192f62c change references to doc to all be docs 2023-05-03 14:20:55 -06:00
2a1c8f83b4 minor formatting updates, remove contributing docs 2023-05-01 16:29:09 -06:00
da9b95f37c introduce contributing doc + main branch convention (#84) 2023-05-01 15:19:16 -06:00
484b6b55cd Template updates post ssz and ethabi (#82)
* add updates found when merging template with py-ssz and eth-abi

* add wheel and wheel-windows to ci and reorg
2023-05-01 15:19:15 -06:00
3314247037 apply template updates found following merge with eth-typing (#81)
* apply template updates found following merge with eth-typing

* add build as a dev dependency

* remove timeout from pytest.ini, it doesn't do anything without pytest-timeout as a dep
2023-05-01 15:19:14 -06:00
431db89753 template cleanup following initial merge with py-evm (#80)
* template cleanup following initial merge with py-evm

* add flake8 pin comment

* correct license years

* add pin note to mypy
2023-05-01 15:19:14 -06:00
fe19f5a77a bump docs dependencies 2023-05-01 15:17:17 -06:00
99af2f4d53 Misc Updates (#65)
* Tweaks to release process

* Drop python 3.6
2022-09-19 14:35:39 -06:00
e712995024 Release notes fix: v0.1.15 -> v0.1.5
Also, update to the actual release date.
2020-03-25 15:59:45 -07:00
c5e1d3263f add release notes for v0.1.15 2020-03-23 18:06:40 -07:00
e02bba93b1 Noise: fix docs
`connection.py` is removed.
2020-02-28 15:49:59 +08:00
4620544d45 Noise: fix docs 2020-02-15 12:35:36 +08:00