Skip to main content

List the shared libraries loaded by the current process.

Project description

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).

Project details


Download files

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

Source Distribution

dllist-2.0.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

dllist-2.0.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file dllist-2.0.0.tar.gz.

File metadata

  • Download URL: dllist-2.0.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0

File hashes

Hashes for dllist-2.0.0.tar.gz
Algorithm Hash digest
SHA256 7413ba963aaa1b2b6827eadd7908e40e635b19108ab431667485eaf75c492bf4
MD5 b890ca298e7200a239da06a8e3350171
BLAKE2b-256 b2cedda13123329d55555de67b414206f14f4f80b96cb273ec59d76d5ce6b5c3

See more details on using hashes here.

File details

Details for the file dllist-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: dllist-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.0

File hashes

Hashes for dllist-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cd307b1a91bc46fae084f8c817d79be7e34951b149a2fd69004772e03573bfb3
MD5 c8bf46684fdaf75f3e5b004de272a59a
BLAKE2b-256 7b07a212ca4cfe56fa35c8315307e37df218e5946c726a792b5c7a795b245c10

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page