The cross-platform tool to work with remote connection using sockets
Project description
PSocket
The cross-platform simple tool to work with remote server through sockets. It can establish socket connection to a remote host:port, send commands and receive response. No need to send byte-string. Use usual strings to send command.
Installation
For most users, the recommended method to install is via pip:
pip install psocket
or from source:
python setup.py install
Import
from psocket import SocketClient
Usage
from psocket import SocketClient
client = SocketClient(host='172.16.0.48', port=3261)
print(client.greeting())
from psocket import SocketClient
client = SocketClient(host='172.16.0.48', port=3261)
print(client.send_command(b''))
Changelog
1.0.0a1 (13.01.2020)
- Now connection creates with client property
- New methods added:
- is_host_available()
- get_sock_name()
- get_peer_name()
1.0.0a0 (13.01.2020)
- initial commit
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
psocket-1.0.0a2.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for psocket-1.0.0a2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f40ea6dd27d8631ba8e05a91e541af41efd5e17401e6dfbd9c6bada4cbba939b |
|
MD5 | 8ed6f20436d88c736d4594bdb360fdb8 |
|
BLAKE2b-256 | 30f725d30ce960ce1bf81bbf98d553d892c4e4fe1713f913de5cbaed8b1f9e4f |