ssocket - Tek satırda socket programlama
Project description
ssocket
Socket modülü için basit ve kullanışlı bir wrapper kütüphanesi.
Kurulum
pip install ssocket
Özellikler
- Standart Python socket modülünün tüm özelliklerini içerir
- Kolay ve anlaşılır kullanım
- TCP/IP socket programlama için idealdir
- Tek satırda server ve client oluşturma
En Basit Mesajlaşma örneği server.py
import ssocket
server = ssocket.socket.easy_server(5000)
conn, addr = server.accept()
while True:
gelen_mesaj = conn.recv(1024).decode('utf-8')
print(f"Gelen: {gelen_mesaj}")
mesaj = input("Sen: ")
conn.send(mesaj.encode('utf-8'))
En Basit Mesajlaşma örneği client.py
import ssocket
client = ssocket.socket.easy_client("localhost", 5000)
while True:
# Mesaj gönder
mesaj = input("Sen: ")
client.send(mesaj.encode('utf-8'))
gelen_mesaj = client.recv(1024).decode('utf-8')
print(f"Gelen: {gelen_mesaj}")
Yazar
Özgür Özen
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ssocket-0.1.tar.gz
(3.9 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
ssocket-0.1-py3-none-any.whl
(4.4 kB
view details)
File details
Details for the file ssocket-0.1.tar.gz.
File metadata
- Download URL: ssocket-0.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a394cffbfc07c56f13fd08db0f92ecd78a7a713896e93df0c0857ffa645c165a
|
|
| MD5 |
dfdfff80e465c7727a458daf1bc672ae
|
|
| BLAKE2b-256 |
68815e1e5b1fa116098c63b18d71d32785c4d297f20038cb4983ca56bea890a1
|
File details
Details for the file ssocket-0.1-py3-none-any.whl.
File metadata
- Download URL: ssocket-0.1-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc4f0e73f37020e4d9d2c800e93a3248f929ad7a678435098eddfd5543be614f
|
|
| MD5 |
86593a4697f9cf16ce82c920ef9d94ff
|
|
| BLAKE2b-256 |
266194df42ed966b154726530ff253ee73de16e69135ae3551f4a7f9426dcf00
|