{"id":24964736,"url":"https://github.com/gaming32/network-script","last_synced_at":"2025-10-15T11:24:26.019Z","repository":{"id":57445748,"uuid":"236617784","full_name":"Gaming32/Network-Script","owner":"Gaming32","description":"Library for calling methods over sockets","archived":false,"fork":false,"pushed_at":"2020-03-08T20:23:31.000Z","size":88,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-10T16:37:02.449Z","etag":null,"topics":["library","network","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Gaming32.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-27T23:24:17.000Z","updated_at":"2020-03-08T20:23:33.000Z","dependencies_parsed_at":"2022-09-26T17:30:56.780Z","dependency_job_id":null,"html_url":"https://github.com/Gaming32/Network-Script","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Gaming32/Network-Script","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gaming32%2FNetwork-Script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gaming32%2FNetwork-Script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gaming32%2FNetwork-Script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gaming32%2FNetwork-Script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gaming32","download_url":"https://codeload.github.com/Gaming32/Network-Script/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gaming32%2FNetwork-Script/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270505997,"owners_count":24596506,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-14T02:00:10.309Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["library","network","python"],"created_at":"2025-02-03T10:17:50.624Z","updated_at":"2025-10-15T11:24:20.974Z","avatar_url":"https://github.com/Gaming32.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Installing\nTo install use the command `python -m pip install Network-Script`.\n# Basic Tutorial\n## Server\nTo start off import the `Server` class:\n``` python\nfrom netsc import Server\n```\nThen create a subclass of the `Server` class, defining `bind_addr` and possibly `sock_family`, `sock_type`, and `sock_proto`:\n``` python\nclass MyServer(Server):\n    bind_addr = ('', 1920)\n```\nThen create an instance, define the object it wraps, and accept a connection:\n``` python\nserver = MyServer(wrapped_obj)\nserver.accept()\n```\n## Client\nTo start off import the `Client` class:\n``` python\nfrom netsc import Client\n```\nThen create a subclass of the `Client` class, possibly defining `sock_family`, `sock_type`, and `sock_proto`:\n``` python\nclass MyClient(Client):\n    pass\n```\nThen create an instance, define the object it wraps, and connect to a server:\n``` python\nclient = MyClient(wrapped_obj)\nclient.connect(('localhost', 1920))\n```\n## From then\nFrom now on one end can call the `poll` method, and the other end can then call any method and get any attribute of the wrapped class. Note concerning attributes: to get an attribute the attribute must be listed in the `attrs` attribute of the end initiating the attribute get.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaming32%2Fnetwork-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgaming32%2Fnetwork-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaming32%2Fnetwork-script/lists"}