YggPeer
YggPeer is a Python library for peer-to-peer communication over the Yggdrasil network, providing easy-to-use tools for status management, messaging, and chat between peers.
Features
- Integration with Yggdrasil
- Peer-to-peer messaging
- Status management (available, busy, etc.)
Installation
Install YggPeer using pip:
pip install yggpeer
Example
# example_chat.py
from yggpeer import PeerManager
import time
def example_chat():
peer_manager = PeerManager(local_port=12345, discovery_port=10799)
# Add a peer (Yggdrasil IP and chat port)
peer_manager.add_peer("Yggdrasil_IP_of_Peer", 12345)
# Start the PeerManager services
peer_manager.start()
# Start sending messages to the peer
time.sleep(2) # Wait for the services to initialize
while True:
message = input("You: ")
if message.lower() == 'quit':
print("Exiting chat...")
break
peer_manager.send_message("Yggdrasil_IP_of_Peer", message)
if __name__ == "__main__":
example_chat()
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for yggpeer 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| yggpeer-0.1.1.tar.gz | 4.1 kB | Without provenance | Details for yggpeer-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| yggpeer-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for yggpeer-0.1.1-py3-none-any.whl |
Total release size: 8.4 kB
Release files / yggpeer-0.1.1.tar.gz
| Download URL | yggpeer-0.1.1.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a9affccda0fe2cd36f4f8676bd7689e94fe0be5813fece8cf04667376bb8315
|
|
BLAKE2b-256 checksum How to use checksums |
11951e69392f58bed99866ec8d3d12f8d23c31b78d73f332945a724c4b11437f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.2
|
Release files / yggpeer-0.1.1-py3-none-any.whl
| Download URL | yggpeer-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
757128f91d93b6cd635f27bfc61425eef685e2d48d654cbb0ead54448a20137d
|
|
BLAKE2b-256 checksum How to use checksums |
b7fea2d89bf70a6a7884f05289238501e8e11c3247402d30f60e255e8425c62b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.2
|
Security for yggpeer 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.