nclib is a python socket library that wants to be your friend.
nclib provides:
- Easy-to-use interfaces for connecting to and listening on TCP and UDP sockets
- The ability to handle any python stream-like object with a single interface
- A better socket class, the Netcat object
- Convenient receive methods for common socket usage patterns
- Highly customizable logging
- Interactive mode, connecting the socket to your stdin/stdout
- Intelligent detection of socket closes and connection drops
- Long-running functions cleanly abortable with ctrl-c
- Lots of aliases in case you forget the right method name
- Mechanisms to launch processes with their in/out streams connected to sockets
- Launch a process with gdb attached
- TCP and UDP server classes for writing simple python daemons
- A script to easily daemonize command-line programs
Documentation is available at https://nclib.readthedocs.io/ and source code is
available at https://github.com/rhelmot/nclib
If you are familiar with pwntools, nclib provides much of the functionaly that
pwntools' socket wrappers do, but with the bonus feature of not being pwntools.
Raw data
{
"_id": null,
"home_page": "https://github.com/rhelmot/nclib",
"name": "nclib",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.5",
"maintainer_email": null,
"keywords": "netcat nc socket sock file pipe tcp udp recv until logging interact handle listen connect server serve stdio process gdb",
"author": "rhelmot",
"author_email": "audrey@rhelmot.io",
"download_url": "https://files.pythonhosted.org/packages/b7/fd/ffddb22481e7409ea0bb39dfb2da13210088f93573b20e80d66b7d435785/nclib-1.0.8.tar.gz",
"platform": null,
"description": "\nnclib is a python socket library that wants to be your friend.\n\nnclib provides:\n\n- Easy-to-use interfaces for connecting to and listening on TCP and UDP sockets\n- The ability to handle any python stream-like object with a single interface\n- A better socket class, the Netcat object\n\n - Convenient receive methods for common socket usage patterns\n - Highly customizable logging\n - Interactive mode, connecting the socket to your stdin/stdout\n - Intelligent detection of socket closes and connection drops\n - Long-running functions cleanly abortable with ctrl-c\n - Lots of aliases in case you forget the right method name\n\n- Mechanisms to launch processes with their in/out streams connected to sockets\n\n - Launch a process with gdb attached\n\n- TCP and UDP server classes for writing simple python daemons\n- A script to easily daemonize command-line programs\n\nDocumentation is available at https://nclib.readthedocs.io/ and source code is\navailable at https://github.com/rhelmot/nclib\n\nIf you are familiar with pwntools, nclib provides much of the functionaly that\npwntools' socket wrappers do, but with the bonus feature of not being pwntools.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Netcat as a library: convienent socket interfaces",
"version": "1.0.8",
"project_urls": {
"Homepage": "https://github.com/rhelmot/nclib"
},
"split_keywords": [
"netcat",
"nc",
"socket",
"sock",
"file",
"pipe",
"tcp",
"udp",
"recv",
"until",
"logging",
"interact",
"handle",
"listen",
"connect",
"server",
"serve",
"stdio",
"process",
"gdb"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "fef5b1d6c1dace10a93a6fd2f1665057631694d8aa36ddfee0c00ed77667bee7",
"md5": "c8f02d0b316cd69122e20a3215356d49",
"sha256": "62986a0e45f6dda0f1736cef62474d2e7be35a8a83cc8a1520889307f4c0871f"
},
"downloads": -1,
"filename": "nclib-1.0.8-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c8f02d0b316cd69122e20a3215356d49",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.5",
"size": 24470,
"upload_time": "2025-08-15T05:27:54",
"upload_time_iso_8601": "2025-08-15T05:27:54.320778Z",
"url": "https://files.pythonhosted.org/packages/fe/f5/b1d6c1dace10a93a6fd2f1665057631694d8aa36ddfee0c00ed77667bee7/nclib-1.0.8-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "b7fdffddb22481e7409ea0bb39dfb2da13210088f93573b20e80d66b7d435785",
"md5": "a2811b7ef287ee56e3ec5db5a7dcb724",
"sha256": "2159d6a87a68605e5bcde9346965a22ad956894697d63719abe0df2cad051a82"
},
"downloads": -1,
"filename": "nclib-1.0.8.tar.gz",
"has_sig": false,
"md5_digest": "a2811b7ef287ee56e3ec5db5a7dcb724",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.5",
"size": 22483,
"upload_time": "2025-08-15T05:27:55",
"upload_time_iso_8601": "2025-08-15T05:27:55.471604Z",
"url": "https://files.pythonhosted.org/packages/b7/fd/ffddb22481e7409ea0bb39dfb2da13210088f93573b20e80d66b7d435785/nclib-1.0.8.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-15 05:27:55",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "rhelmot",
"github_project": "nclib",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "nclib"
}