Skip to main content

python-sotools

Collection of tools to debug and diagnose ELF objects dynamic linking.

Dynamic linker

The module contains methods to mimic the default dynamic linker on Linux. The resolve method implements all the rules involving the search and selection of a shared object given a shared object name (soname) string.

Dynamic linker cache

The dynamic linker cache (usually present at /etc/ld.so.cache) is a database generated at install time to cache the locations of select shared objects on the system. python-sotools supports reading and parsing this file, along with customized search for matches.

Library set

To simplify the use of the linker, the LibrarySet object is a specialization of a python set that allows to quickly resolve a dependency tree. It contains Library objects and is complete when all dependencies are contained in the set, and allows to verify all the members' required definitions are also present in another set member.

Scripts

The following scripts are installed automatically when installing python-sotools:

ldd.py

Simple re-implementation of ldd with the contents of python-sotools. This version does not use the actual linker and can be trusted not to run any code when executed with unknown executables, unlike the original.

sowhich

Which library is resolved ? This command returns the path for the library name given as an argument. That's it.

Metadata

Release files for python-sotools 0.1.3

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

Source distribution (sdist)

Source distribution for python-sotools 0.1.3
File Size Uploaded
python-sotools-0.1.3.tar.gz 45.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-sotools 0.1.3
File Interpreter ABI Platform
python_sotools-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 64.6 kB

Release files / python-sotools-0.1.3.tar.gz

Download URL python-sotools-0.1.3.tar.gz
Size 45.1 kB
Tags Source
SHA-256 checksum
How to use checksums
866b392b5be9a5e54c8d8221bd89e6cef1b0ebdc65c61a44d1e4f6f63807be5b
BLAKE2b-256 checksum
How to use checksums
6a9264ff7995fd0ffda472149c1e11ed6db41cb95ec0c30d33c8adc6d63d49a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release files / python_sotools-0.1.3-py3-none-any.whl

Download URL python_sotools-0.1.3-py3-none-any.whl
Size 19.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
818c3f84d3dd2720b51132bd6cd7642ce916409324421c0d13c84b81e24c83a9
BLAKE2b-256 checksum
How to use checksums
efbaa840a467aa591039ad564517e37cdda67a9588dae14b1f8e651b44abeee7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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