Commit Graph

1801 Commits

Author SHA1 Message Date
bb9c8235a8 Add Windows setup and reorganize dependencies by OS in contributing.rst
Moved dependencies into Linux, macOS, and Windows sections per Paul's suggestion. Fixed reST formatting (blank lines, title underlines) to resolve Sphinx warnings from ReadTheDocs CI. Tested on Windows 10 (Python 3.11.0).
2025-04-11 18:28:38 -06:00
a1f57920a7 Add Windows development setup instructions to contributing.rst 2025-04-11 18:28:38 -06:00
293f081428 add newsfragments/559.docs.rst 2025-04-11 18:01:57 -06:00
03e2661982 modified multiplexer getting_started doc section 2025-04-11 18:01:57 -06:00
d0e997061e doc: add install and getting started documentation 2025-04-11 18:01:57 -06:00
90657a3b23 update license info in description per latest python packaging guide 2025-04-07 16:25:17 -06:00
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
7793e322dc Add news fragment for test_simple_last_seen_cache fix 2025-04-06 14:17:15 -06:00
eca5e526f5 Fix flaky test_simple_last_seen_cache with retry loop and docstring 2025-04-06 14:17:15 -06:00
23e05177ef docs: add newsfragment on how to add examples 2025-04-02 03:13:20 -06:00
31d0f8a79c docs: add section about adding examples to contributing guide 2025-04-02 03:13:20 -06:00
563a447244 add identify to README feature breakdown 2025-03-28 14:23:46 -06:00
46781e7fc1 update badges on README 2025-03-28 14:23:46 -06:00
71b3bf2a55 Bump version: 0.2.3 → 0.2.4 2025-03-27 15:53:49 -06:00
aec7995eba Compile release notes for v0.2.4 2025-03-27 15:53:34 -06:00
3bdbde57c7 feat: Add Windows compatibility using coincurve 2025-03-27 15:49:30 -06:00
479b12f64d Bump version: 0.2.2 → 0.2.3 2025-03-27 14:47:07 -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
24b2704d8c move factories to tests/utils/factories 2025-03-27 14:21:45 -06:00
95f0e84418 use console script entry for identify demo 2025-03-24 17:55:16 -06:00
604a447287 feat: add identify protocol example 2025-03-24 17:55:16 -06:00
51c7d53453 test: add test_complete_remote_address_delegation_chain 2025-03-24 08:02:21 -06:00
9350caa65c feat: Add observed addresses of remote peer using get_remote_address 2025-03-24 08:02:21 -06:00
fabf2cefc4 feat: implement get_remote_address via delegation pattern 2025-03-24 08:02:21 -06:00
798229cd3a feat: add observed_addr to identify protocol 2025-03-24 08:02:21 -06:00
bd8bd953ec feat: add agent version to identify protocol and improved tests 2025-03-24 08:02:21 -06:00
dc903460dc fix some imports 2025-03-24 07:59:35 -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
b2a6294cfa feat(host): add get_live_peers() to track connection state 2025-03-23 15:01:18 -06:00
f6279c23ac added : demos to test ci 2025-03-23 14:46:24 -06:00
bef8a82a52 fixed lint 2025-03-17 09:27:13 -06:00
3c01c03e4e incorporated import changes as suggested 2025-03-17 09:27:13 -06:00
c86f3d0467 added dedicated test file and moved timed_cache to tools 2025-03-17 09:27:13 -06:00
bf699351e1 improved newsfragment description 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
0fa8711ca7 updated : seen message map type to bool from int 2025-03-17 09:27:13 -06:00
f392f47822 update the newsfragment 2025-03-16 07:02:53 -06:00
ea85067beb check other cases and add test_rsa.py 2025-03-16 07:02:53 -06:00
d1390c824c fixed: newsfragment 2025-03-16 07:02:53 -06:00
dc6de9b53a rufuse large RSA keys 2025-03-16 07:02:53 -06:00
e150d3153a rufuse large RSA keys 2025-03-16 07:02:53 -06:00
7d324b129b add newsfragment 2025-03-13 19:59:04 -06:00
3b187348ff docs: add Sphinx-style docstrings in abc.py 2025-03-13 19:59:04 -06:00
65bc17a739 update Feature Breakdown to more closely match official implementations list of features 2025-02-25 06:50:26 -07:00
0c4ea5064f fix: broken import in the examples after net_stream_interface rename 2025-02-25 06:37:09 -07:00