Skip to main content

Build Status Downloads Anaconda-Server Badge

symstore

A python module and command line utility for publishing windows debugging symbols to symbols store. The symbols published in this format can be consumed by the common development tools for windows, such as Visual Studio and WinDbg. See Using SymStore for more information on windows symbols store.

Currently it is possible to publish PDB and PE (exe and dll) files to a local file system.

Installing

Symstore is available on pypi and conda package repositories. It can be installed with pip or conda utilities, see below.

Pip

Install symstore with pip utility by running:

$ pip install symstore

This will install the command line utility symstore as well as python module symstore.

It is also possible to install symstore package from source code. For example, clone symstore's git repository with:

$ git clone <repo-url> symstore

and install it with pip:

$ pip install symstore/

Conda

The symstore package is available on conda-forge channel. To install it, activate your conda environment and run:

$ conda install --channel conda-forge symstore

To enable compression support, additionally install gcab and pygobject packages.

$ conda install --channel conda-forge gcab pygobject

Using

command line

Use the symstore command to publish the symbols. Run symstore --help for details.

Python module

To publish symbols programmatically use the symstore module. See symstore/command_line.py for an example on how to use the API.

Compression

The symstore package supports compressing the data files when publishing them. This can lead to significant reduction of data that needs to be transferred while accessing symbols.

The compression mode is activated with --compress or -z flag to symstore command line utility.

On non-Windows systems, symstore uses the native gcab library via python bindings to compress data. The required packages must be available on the system for the compression mode to work.

On Ubuntu 22.04, install following packages:

  • gir1.2-gcab-1.0
  • python3-gi

On Ubuntu 20.04 or 18.04, install following packages:

  • gir1.2-gcab-1.0
  • python-gi

On Ubuntu 16.04, install following packages:

  • gir1.2-libgcab-1.0
  • python-gi

On FreeBSD 12.2, install following binary packages:

  • gcab
  • py37-gobject3

If symstore is unable to load required packages while compression mode is requested, following error message will be displayed:

gcab module not available, compression not supported

Virtual Environments

When installing symstore inside virtual environment, care needs to be taken in order to make compression work. The gcab library and it's bindings must be accessible from the virtual environment.

This can be accomplished by enabling access to system site packages inside the environment. When creating the environment with venv or virtualenv, use --system-site-packages flag to enable access.

Below is an example of enabling access to system site packages when using venv module.

$ python3 -m venv --system-site-packages  <evironment-name>

Note that the gcab packages listed above needs to be installed before creating the virtual environment.

Windows

On Windows systems, symstore uses the standard makecab.exe utility. The makecab.exe utility normally is included by default in Windows installations, thus symstore compression will work out-of-box.

Change Log

0.3.5 (25 May 2025)

  • pad PE hash values correctly (issue #36)
  • dropped support for python 3.6
  • officially support python 3.12 and 3.13

0.3.4 (6 December 2022)

  • adds support for transaction comments (--comment cli argument)
  • parallelized transaction publication code (pull request #26)
  • --max-compress cli argument to disable compression on big files (pull request #27)
  • fixed issue with wrong symstore paths of some PE-files (issue #25)
  • dropped support for python 2.7, 3.4, 3.5
  • officially support python 3.11

0.3.3 (30 September 2021)

  • add --skip-published cli flag (pull request #19)
  • support publishing PE files with non-standard file extension (issue #20)

0.3.2 (28 June 2021)

  • support compression on windows (pull request #18)

0.3.1 (14 March 2021)

  • fixes EXE/DLL parsing bug which generated wrong hashes (pull request #16)
  • add information on enabling compression on FreeBSD 12.2 and Ubuntu 20.04
  • officially support python 3.9

0.3.0 (1 October 2020)

  • support for deleting transactions
  • better error message when specified PDB/EXE/DLL is not found
  • officially support python 3.8

0.2.7 (25 September 2019)

  • explicitly put this code under MIT license

0.2.6 (29 August 2019)

  • don't leak open file handles during operation (issue #10)

0.2.5 (16 December 2018)

  • officially support python 3.7
  • fixed write errors to history.txt on windows/python2.7

0.2.4 (31 January 2018)

  • improved error handling on missing GCab python binding

0.2.3 (24 June 2017)

  • support publishing PDBs with longer root stream (even larger files)
  • officially support python 3.6

0.2.2 (16 January 2017)

  • support republishing same file in a new transaction
  • print nice error message on unexpected file extensions
  • more details in the docs on how to setup gcab to enable compression

0.2.1 (29 September 2016)

  • generate correct signature for PDBs with age larger then 10
  • support publishing PDBs with multi-page root stream (larger files)
  • fetch PDB age from DBI stream
  • support publishing PDBs without DBI stream

0.2.0 (22 March 2016)

  • added compression support

0.1.1 (10 February 2016)

  • dropped dependency to pdbparse and construct modules
  • added support for python 3

0.1.0 (14 January 2016)

  • dropped dependency to pefile module
  • print nice error message on currupt PE files

Metadata

Release files for symstore 0.3.5

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

Source distribution (sdist)

Source distribution for symstore 0.3.5
File Size Uploaded
symstore-0.3.5.tar.gz 17.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for symstore 0.3.5
File Interpreter ABI Platform
symstore-0.3.5-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 33.3 kB

Release files / symstore-0.3.5.tar.gz

Download URL symstore-0.3.5.tar.gz
Size 17.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0b7a4101d73be42f8e6c4d955770465be523a302d699031c5a1acbb9fd5a8e9f
BLAKE2b-256 checksum
How to use checksums
e2f1c95d49727f3e766afd8660164905596415d7dec40c5677d248761da67098
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

Release files / symstore-0.3.5-py2.py3-none-any.whl

Download URL symstore-0.3.5-py2.py3-none-any.whl
Size 16.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
c79dd72b1808a26e8076b1472665f2648610a911a78ff6970b0af25e9284c504
BLAKE2b-256 checksum
How to use checksums
28387b2f47da25445fa5c4bbe5733f007c4f7d05690969224867cb8db245cfd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

Release history Release notifications | RSS feed

This release

0.3.5 This release

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.0

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