winConnect
Communicate Client-Server via Windows NamedPipe
ToDo:
- Add support for sending and receiving data (0.1.0)
- Add support for safe closing (0.9.0)
- Add support for other header settings (0.9.0)
- Add logging (0.9.1)
- Send data in chunks (if data is too large) (0.9.3)
- Add support for encryption (0.9.2)
- simple (via char xor'ing; auto-pairing) (0.9.2)
- password (via AES and PBKDF2) (0.9.3)
- certificate (via RSA)
- Add support for multiple clients
Description
This is a simple client-server communication system for Windows. The client and server communicate via a named pipe. The client sends a message to the server, and the server responds with a message. The client and server can be run on the same machine or on different machines.
Installation
To install the package, use the following command:
pip install winConnect
Usage
You can find examples in the examples directory.
Server
The server is a daemon that listens for incoming messages from clients. The server can be run on the same machine as the client or on a different machine. To run the server, use the following command:
from winConnect import WinConnectDaemon
connector = WinConnectDaemon('test') # test - name of the pipe
for data in connector.listen():
print(f"({type(data)}) {data=}")
if data is None and connector.closed:
break
connector.send_data(data)
Client
The client sends a message to the server and waits for a response. To run the client, use the following command:
from winConnect import WinConnectClient
connector = WinConnectClient('test')
with connector as conn:
while True:
i = input(":> ")
if i == "exit": break
conn.send_data(i)
print(conn.read_pipe())
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for winConnect 0.9.3
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 |
|---|---|---|---|---|
| winconnect-0.9.3.tar.gz | 10.3 kB | Without provenance | Details for winconnect-0.9.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| winconnect-0.9.3-py3-none-any.whl | Python 3 | none | any | Details for winconnect-0.9.3-py3-none-any.whl |
Total release size: 21.0 kB
Release files / winconnect-0.9.3.tar.gz
| Download URL | winconnect-0.9.3.tar.gz |
|---|---|
| Size | 10.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5fb836b04b33e89f87190d2a27fb9850ee4a802956e0c93a2cbe6c6338ca5b89
|
|
BLAKE2b-256 checksum How to use checksums |
c7a54261ba074ec62824ccc8e9ddcc0602ce0f66af2d3c47ced22481f931a02a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / winconnect-0.9.3-py3-none-any.whl
| Download URL | winconnect-0.9.3-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ab7f2a446c5d090f4dfdbb0fe35fbe46e77e8ec20ac683b33f46d020ec259a8d
|
|
BLAKE2b-256 checksum How to use checksums |
03e567da009cba67ff8c81573edcca27f4a4ecccd815c4a38d3fa59146702633
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Security for winConnect 0.9.3
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.