Commit Graph

1840 Commits

Author SHA1 Message Date
dc2f77ccbd Fix check-rst-files hook to work cross-platform 2025-05-09 19:21:42 -06:00
6064c96563 feat(autonat): add make targets for autonat protobuf generation and formatting 2025-05-09 17:31:15 -06:00
05d89cb20e added all and docs dependencies in tox.ini for testenv:docs 2025-05-09 17:31:15 -06:00
171b2a26e3 removed grpcio dependency from setup.py 2025-05-09 17:31:15 -06:00
e9674d2bca refractored Peer_Info to PeerInfo as imports 2025-05-09 17:31:15 -06:00
99238403dd added logger in test file and added dependency in tox.ini 2025-05-09 17:31:15 -06:00
04da30b7fe refractor: remove suppress warning in conf.py 2025-05-09 17:31:15 -06:00
8d98e93c27 refractor: remove suppress warning in conf.py 2025-05-09 17:31:15 -06:00
d55c57769f Refactor: changed PeerInfo to Peer_Info in autonat.proto to avoid conflicts 2025-05-09 17:31:15 -06:00
627c2cfe8e removed unused imports from conf.py 2025-05-09 17:31:15 -06:00
317eaeda93 fix: add grpcio dependency to extras_require and install_requires 2025-05-09 17:31:15 -06:00
244cc0c42a refactor: update documentation structure for libp2p.host and autonat packages 2025-05-09 17:31:15 -06:00
1bed3304c7 fixed autonat file for pre-commit hook issues 2025-05-09 17:31:15 -06:00
86dce72ae0 fix: regenerate protobuf files to match runtime version 2025-05-09 17:31:15 -06:00
1730999e38 fixed pre commit hook issues in autonat 2025-05-09 17:31:15 -06:00
9655c88788 feat/561-added autonat service 2025-05-09 17:31:15 -06:00
fd893afba6 delete old interop, turn on with placeholders, add py312 and py313 to CI testing 2025-05-08 13:30:00 -06:00
4c02c4ea02 doc: add TODO for limit concurrency 2025-05-01 09:14:46 -06:00
4ad6975ef1 feat: push identify-push info in pararrel 2025-05-01 09:14:46 -06:00
1213710af3 lint: resolved lint issues 2025-05-01 09:14:46 -06:00
e928e6a8cd Refactor: Update test_identify_push.py removing duplicated import 2025-05-01 09:14:46 -06:00
5a05ca0124 Update identify_push_listener_dialer.py debug config lint 2025-05-01 09:14:46 -06:00
95a9bf6c53 Update identify_push_demo.py for double print and debug msgs 2025-05-01 09:14:46 -06:00
c40a1476ac Update docs/examples.identify_push.rst
Co-authored-by: Paul Robinson <5199899+pacrob@users.noreply.github.com>
2025-05-01 09:14:46 -06:00
35905909b5 Update docs/examples.identify_push.rst
Co-authored-by: Paul Robinson <5199899+pacrob@users.noreply.github.com>
2025-05-01 09:14:46 -06:00
6850907a32 Update docs/examples.identify_push.rst
Co-authored-by: Paul Robinson <5199899+pacrob@users.noreply.github.com>
2025-05-01 09:14:46 -06:00
c9dd7b381a Update docs/examples.identify_push.rst
Co-authored-by: Paul Robinson <5199899+pacrob@users.noreply.github.com>
2025-05-01 09:14:46 -06:00
91beff5e63 fix: added identify push to setup.py 2025-05-01 09:14:46 -06:00
e752629212 fix: fixing test_examples.py failing test 2025-05-01 09:14:46 -06:00
66707364a7 doc: adding identify push protocol examples and doc 2025-05-01 09:14:46 -06:00
cef73519d3 feat: identify-push protocol. initial release 2025-05-01 09:14:46 -06:00
b47f978625 bump protobuf dep to >=6.30.1 2025-04-28 19:04:29 -06:00
c416acc4bf chore: add or force update .github/workflows/generated-pr.yml 2025-04-25 05:56:13 -06:00
fcc5b662c9 chore: add or force update .github/workflows/stale.yml 2025-04-25 05:56:13 -06:00
ded8b2d765 Doc: expanding the introduction section (#566) 2025-04-23 19:33:54 -06:00
6054fd7f92 Merge pull request #574 from acul71/fix/issue-565-timedcache-test_reading_after_expiry
Fix/issue 565 timed cache test reading after expiry
2025-04-20 23:00:29 +05:30
e0a08c9a2b fix: test_timed_cache.py::test_readding_after_expiry 2025-04-20 17:11:29 +02:00
0225d188c8 Bump version: 0.2.4 → 0.2.5 2025-04-14 11:12:26 -06:00
f664d03852 Compile release notes for v0.2.5 2025-04-14 11:11:38 -06:00
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