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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nclib-1.0.7.tar.gz (22.1 kB view details)

Uploaded Source

Built Distribution

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

nclib-1.0.7-py3-none-any.whl (24.0 kB view details)

Uploaded Python 3

File details

Details for the file nclib-1.0.7.tar.gz.

File metadata

  • Download URL: nclib-1.0.7.tar.gz
  • Upload date:
  • Size: 22.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for nclib-1.0.7.tar.gz
Algorithm Hash digest
SHA256 e3405d92199ddcb899011d6fdfaa6e57d978b60b436fa4fc93d8f4d894d1e09a
MD5 28968d654c1077b7e33aae686c548010
BLAKE2b-256 cc1b8a9aa2e2703ed788f17a90d9126a1330d5b9f7cf21265cfd333c6ddea009

See more details on using hashes here.

File details

Details for the file nclib-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: nclib-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 24.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for nclib-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 e671280c045fe45d48790caaba231803aa487bc32c188de744779b1f450bae23
MD5 c4060b32117c9fecbaf0db4f2d1513e0
BLAKE2b-256 e70547de385fc52617d4088817182120acd7707bcfdfb183f647cf170cff9f34

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.8

2 files

This release

1.0.7 This release

2 files

1.0.6

2 files

1.0.5

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

1 file

1.0.0

1 file

0.8.3

1 file

0.8.2.post1

1 file

0.8.2

1 file

0.8.1

1 file

0.8.0

1 file

0.7.3

1 file

0.7.2

1 file

0.7.1

1 file

0.7.0

1 file

0.6.1

1 file

0.6.0

1 file

0.5.1

1 file

0.5

1 file

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