A package for building TCP Server and other Networking options.
Project description
NETSTOCK
Code Example
import Netsock
# Server Side
def Stock():
try:
Server = Netstock.TCPserver('localhost', 4000)
Server.create()
Server.start_listener()
while (True):
Server.accept_all()
rb = Server.recv_bytes()
print(rb)
Server.disconnect_client()
except Exception as error:
print(error)
# Client Side
def clientStock():
Client = Netstock.TCPClient()
Client.connectToServer('localhost', 4000)
Client.sendMsg('Hello')
Code Example:2
from Netstock.HTTP import UploadCurrentDirectory
def __init__(host: str, port: int) -> None:
try:
main = UploadCurrentDirectory()
main.Create(host, port)
main.get_all_req()
main.run_forever()
# Other options below
# main.getServerByPort()
# main.close_server()
main.Server()
except Exception as error:
print(error)
__init__('localhost', 80)
What new in v1.3?
- Bug fixes
- HTTP_req Changed To "req"
- More Networking Options!
Github
Lib.io
Instalation / Update
Run: py -m install Netstock Update: py -m install Netstock --upgrade
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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
Netstock-1.3-py3.11.egg
(13.0 kB
view details)
File details
Details for the file Netstock-1.3-py3.11.egg.
File metadata
- Download URL: Netstock-1.3-py3.11.egg
- Upload date:
- Size: 13.0 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59f0c8ae6e87c30d1cfe4169ab2767a7aa57891d668c8c1c533f2c9df85d7158
|
|
| MD5 |
aa523b018fdbae5f63c8c14b4559b2cc
|
|
| BLAKE2b-256 |
b40c1a9d64923ddf839913335487faa581a6da20161952dcaa839ff368b02b62
|