Skip to main content

Symbolic library for Alpine Linux - A python library for dealing with symbol files and more.

Project description

Symbolic for Alpine Linux


Symbolic is a Alpine Linux version of Python library that can work with debug symbol files.

Web:

Installation

For Python 3.x (Recommended)

Install directly using pip:

pip install symbolic-alpine

For Python 2.7

Important: Python 2.7 uses pip 20.3.4, which does not support the musllinux_1_1_x86_64 platform tag (introduced in PEP 656, requires pip >= 21.0).

To install on Python 2.7:

  1. Download the musllinux_1_1_x86_64 wheel file from PyPI:

  2. Use the pip-musl script to install:

# Make the script executable
chmod +x python2_assets/pip-musl

# Install the downloaded wheel file
./python2_assets/pip-musl install symbolic_alpine-8.0.4-cp27-cp27mu-musllinux_1_1_x86_64.whl

Why the special handling for Python 2.7?

The musllinux_1_1_x86_64 platform tag was introduced in PEP 656 and requires pip >= 21.0. Python 2.7 reached end-of-life in 2020, and pip 20.3.4 was the last version to support Python 2.7. Therefore, pip 20.3.4 cannot install wheels with musllinux platform tags.

The pip-musl script works around this limitation by manually extracting and installing the wheel file when it detects a musllinux wheel on an older pip version.

Usage

import symbolic

# Demangle C++ symbols
from symbolic import demangle
result = demangle('_ZN4base8internal12CheckedCastINS_6subtle11PrecheckedEdEEEPNS0_13CheckedNumericEdE')
print('Demangle result:', result)

# Check if architecture is known
from symbolic import arch_is_known
print('x86_64 known:', arch_is_known('x86_64'))

Building

See t.sh for build instructions.

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

symbolic_alpine-8.0.4.tar.gz (8.8 MB view details)

Uploaded Source

Built Distributions

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

symbolic_alpine-8.0.4-cp27-cp27mu-musllinux_1_1_x86_64.whl (3.8 MB view details)

Uploaded CPython 2.7mumusllinux: musl 1.1+ x86-64

symbolic_alpine-8.0.4-cp27-cp27mu-manylinux_2_17_x86_64.whl (2.0 MB view details)

Uploaded CPython 2.7mumanylinux: glibc 2.17+ x86-64

File details

Details for the file symbolic_alpine-8.0.4.tar.gz.

File metadata

  • Download URL: symbolic_alpine-8.0.4.tar.gz
  • Upload date:
  • Size: 8.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.8.3 requests/2.18.4 setuptools/44.1.1 requests-toolbelt/1.0.0 tqdm/4.64.1 CPython/2.7.18

File hashes

Hashes for symbolic_alpine-8.0.4.tar.gz
Algorithm Hash digest
SHA256 eafd71e532c8a1709ad278d04b7ef533c6467bca5c44111700261f45cc752982
MD5 d4714af7a09432e7c13a45b6719a49f3
BLAKE2b-256 0057857aac302a727e9af5c10462e91c78ee9310ac8aa2460c5a512f41bb861a

See more details on using hashes here.

File details

Details for the file symbolic_alpine-8.0.4-cp27-cp27mu-musllinux_1_1_x86_64.whl.

File metadata

  • Download URL: symbolic_alpine-8.0.4-cp27-cp27mu-musllinux_1_1_x86_64.whl
  • Upload date:
  • Size: 3.8 MB
  • Tags: CPython 2.7mu, musllinux: musl 1.1+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.8.3 requests/2.27.1 setuptools/44.1.1 requests-toolbelt/1.0.0 tqdm/4.64.1 CPython/2.7.18

File hashes

Hashes for symbolic_alpine-8.0.4-cp27-cp27mu-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 e3eb8f8ad8422076313988c14fbfc5961364a459f69931a82fb89940f7a04929
MD5 35b8a92414daf6017e117999e15ab335
BLAKE2b-256 95367cd05648cb9e73504f00cd24b1361d877ff839ad586b354b8d9a74f06d55

See more details on using hashes here.

File details

Details for the file symbolic_alpine-8.0.4-cp27-cp27mu-manylinux_2_17_x86_64.whl.

File metadata

  • Download URL: symbolic_alpine-8.0.4-cp27-cp27mu-manylinux_2_17_x86_64.whl
  • Upload date:
  • Size: 2.0 MB
  • Tags: CPython 2.7mu, manylinux: glibc 2.17+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.8.3 requests/2.27.1 setuptools/44.1.1 requests-toolbelt/1.0.0 tqdm/4.64.1 CPython/2.7.18

File hashes

Hashes for symbolic_alpine-8.0.4-cp27-cp27mu-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 3e74e4e71fc2ca3a40bfb434e0ac936f7d3ccc902bc1c81ce46f981f22b7e8c3
MD5 dbc1ee20ccae61573842629f6ca325ed
BLAKE2b-256 3249ac0837c545cb5ae778c80f3207a565ffb319ed71348aa86d9b8e7031083e

See more details on using hashes here.

Supported by

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