Skip to main content

tests status code coverage

package description

the purpose of this package is to provide high level API to work with elf files.

installation

using pip

install the package by running the following command: pip install sauci-pyelf

from source

this package uses pyelftools package. if it is not already installed, install it first. once the above prerequisite is installed:

  • download the pyelf package
  • unzip it
  • move to the directory containing the setup.py file
  • run the command python setup.py install

note: the above command might require privileged access to succeed.

example of usage

the bellow code snippet shows how to load an elf file and get some of its properties.

from pyelf import ElfFile

elf = ElfFile('tests/input.elf')

# get a list of all symbols in file tests/input.elf.
symbols = elf.symbols()
assert 'symbol_uint8' in symbols

# get an instance of Symbol class for symbol named symbol_uint8.
symbol = elf.get_symbol('symbol_uint8')

# get address of symbol symbol_uint8.
assert isinstance(symbol.address, int)

# get size of symbol symbol_uint8.
assert symbol.size == 1

Metadata

Release files for sauci-pyelf 0.1.2

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

Source distribution (sdist)

Source distribution for sauci-pyelf 0.1.2
File Size Uploaded
sauci-pyelf-0.1.2.tar.gz 5.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sauci-pyelf 0.1.2
File Interpreter ABI Platform
sauci_pyelf-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 11.8 kB

Release files / sauci-pyelf-0.1.2.tar.gz

Download URL sauci-pyelf-0.1.2.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ec6ebe5df21ffc164569dd2c04a45ffb16eb28ea9cd4c79eebe09985cec6798c
BLAKE2b-256 checksum
How to use checksums
94825081cecdecc06d68149d22dfe43994af8893f1bace28fa8c196ab34dfa42
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

Release files / sauci_pyelf-0.1.2-py3-none-any.whl

Download URL sauci_pyelf-0.1.2-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
77139671108cf869e1a95f2ebb818cd22f53bc445d516383ff216aff671dd2bf
BLAKE2b-256 checksum
How to use checksums
29ecbbe24a0cb7671ddba8aae1d9ebaf32ef71ce9a2b74363ada8764c24e27fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

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