A simplified socket programming toolkit for Python
Project description
kn-sock
A simplified socket programming toolkit for Python.
🚀 Features
- TCP/UDP Messaging (sync and async)
- JSON over sockets
- File transfer over TCP
- Threaded server support
- CLI for quick socket actions
- Decorators and utility functions
💡 Use Cases
- Build custom TCP/UDP servers quickly
- Transfer files between machines
- Send structured (JSON) data across a network
- Create automated socket tests
- Use CLI for local or remote debugging
📦 Installation
pip install kn-sock
🔧 Quick Example
from kn_sock import send_tcp_message
send_tcp_message("localhost", 8080, "Hello, World!")
📚 Documentation
Full documentation is available at kn-sock Documentation.
🤝 Contributing
Have ideas or found bugs? Open an issue or submit a pull request!
If you're new:
- See the contributing guide
- Or just start with a ⭐ star :)
🧾 License
This project is licensed under the MIT License.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kn-sock-0.2.3.tar.gz
(16.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
kn_sock-0.2.3-py3-none-any.whl
(15.4 kB
view details)
File details
Details for the file kn-sock-0.2.3.tar.gz.
File metadata
- Download URL: kn-sock-0.2.3.tar.gz
- Upload date:
- Size: 16.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb1beabec28528c8017f7e54ab470212b9546c1a74b6d6455eebf88aa123154d
|
|
| MD5 |
3ca1d7083f42723150cf6109eeb845ee
|
|
| BLAKE2b-256 |
2f593176d303d8a88afce0dae65676a2e619a085e9bd03304ecbc6599b0697c3
|
File details
Details for the file kn_sock-0.2.3-py3-none-any.whl.
File metadata
- Download URL: kn_sock-0.2.3-py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c66a1591ae5a9b23d63b97f2ab39c700f474180cae13c73b9b8b80ca4c63d8a
|
|
| MD5 |
fc37e3631d2078d365460d902986bd75
|
|
| BLAKE2b-256 |
797fd79fecb08c4f5ed908242dc984891806d30b0ee4fd2032db373b7b8688eb
|