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.1?

  • Bug fixes
  • HTTP_req | For obtaining web content & status codes
  • Fixed Errors

Github

  1. Github

libraries.io

  1. Netstock

Instalation / Update

  • Run: python -m install Netstock
  • Update: python -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.1-py3.11.egg (12.5 kB view details)

Uploaded Egg

File details

Details for the file Netstock-1.1-py3.11.egg.

File metadata

  • Download URL: Netstock-1.1-py3.11.egg
  • Upload date:
  • Size: 12.5 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for Netstock-1.1-py3.11.egg
Algorithm Hash digest
SHA256 ac4012ba307141a925418a8afe1f54414e46dbadb60c1df0b3f1573df2ebbfbe
MD5 80a35fd7d3cd2e6d4dde07747411e33e
BLAKE2b-256 ad75c4057e4b897f51a4aad0966b25616e1180e11ba43bb2ef142c331647d745

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