Skip to main content

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.

Metadata

Release files for nclib 1.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nclib 1.0.8
File Size Uploaded
nclib-1.0.8.tar.gz 22.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nclib 1.0.8
File Interpreter ABI Platform
nclib-1.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 47.0 kB

Release files / nclib-1.0.8.tar.gz

Download URL nclib-1.0.8.tar.gz
Size 22.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2159d6a87a68605e5bcde9346965a22ad956894697d63719abe0df2cad051a82
BLAKE2b-256 checksum
How to use checksums
b7fdffddb22481e7409ea0bb39dfb2da13210088f93573b20e80d66b7d435785
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.11

Release files / nclib-1.0.8-py3-none-any.whl

Download URL nclib-1.0.8-py3-none-any.whl
Size 24.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
62986a0e45f6dda0f1736cef62474d2e7be35a8a83cc8a1520889307f4c0871f
BLAKE2b-256 checksum
How to use checksums
fef5b1d6c1dace10a93a6fd2f1665057631694d8aa36ddfee0c00ed77667bee7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.11
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page