You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

dllist

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dllist

List the shared libraries loaded by the current process.

2.0.0
pipPyPI
Maintainers
1

dllist

[!NOTE] This functionality is available in the standard library starting in Python 3.14

A very small Python library to list the DLLs loaded by the current process. This is equivalent to the dllist function in Julia.

Note: This library is tested on macOS, Linux, and Windows. Some platforms which provide the same API as Linux (e.g. FreeBSD) also work.

Installation

dllist is available on PyPI:

pip install dllist

Usage

The single function this library provides is dllist(), which returns a list of the shared ibraries loaded by the current process. The first element is usually a representation of the current process itself (often, the empty string), and the rest are the shared libraries loaded by the process.

import dllist
print(dllist.dllist())
# ['', 'linux-vdso.so.1', '/lib/x86_64-linux-gnu/libpthread.so.0', '/lib/x86_64-linux-gnu/libdl.so.2', ... ]

Note: The library paths are not postprocessed by this library. Depending on your usage, you may need to convert them to absolute paths and/or perform case-normalization (Windows).

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts