Skip to main content

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


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

If you're not sure about the file name format, learn more about wheel file names.

Netstock-1.3-py3.11.egg (13.0 kB view details)

Uploaded Egg

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

Hashes for Netstock-1.3-py3.11.egg
Algorithm Hash digest
SHA256 59f0c8ae6e87c30d1cfe4169ab2767a7aa57891d668c8c1c533f2c9df85d7158
MD5 aa523b018fdbae5f63c8c14b4559b2cc
BLAKE2b-256 b40c1a9d64923ddf839913335487faa581a6da20161952dcaa839ff368b02b62

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page