A python client for the debuginfod server
Project description
pydebuginfod
pydebuginfod is a Python client implementation of the debuginfod spec.
import pydebuginfod
client = pydebuginfod.Client()
dbginfo = client.get_debuginfo("c0e8c127f1f36dd10e77331f46b6e2dbbbdb219b")
dbginfo
>>> '/home/matt/.cache/debuginfod/buildid/c0e8c127f1f36dd10e77331f46b6e2dbbbdb219b/debuginfo'
client = pydebuginfod.Client()
executable = client.get_executable("c0e8c127f1f36dd10e77331f46b6e2dbbbdb219b")
dbginfo
>>> '/home/matt/.cache/debuginfod/buildid/c0e8c127f1f36dd10e77331f46b6e2dbbbdb219b/executable'
pydebuginfod allows you to easily get started with debuginfod.
Configurations
pydebuginfod allows configurations to passed in via:
- A configuration file
- ENV variables
- Member variables
Configurations are set in that order (config file < env vars < direct).
The following items can be configured:
- URLs: The URLs of the servers you are querying
- Cache-Path: The cache location to store the downloaded artifacts
- Verbose: Sets the logging level to verbose
- Timeout: How long to wait on a connection before giving up
- Progress: Show download progress via stdout during download?
Configuration File
The configuraton file follows the
XDG
specification. pydebuginfod will look for a file named pydebuginfo.yml
under the XDG_CONFIG_HOME directory.
The structure of the yaml file is as follows
cache-path: /opt/cache
verbose: false
timeout: 90
progress: true
urls:
- "https://server1.com"
- "https://server2/com"
Environment Variables
- DEBUGINFOD_CACHE_PATH
- DEBUGINFOD_VERBOSE
- DEBUGINFOD_TIMEOUT
- DEBUGINFOD_PROGRESS
- DEBUGINFOD_URLS
Member variables
client = pydebuginfod.Client()
client.cache = "/opt/cache"
client.verbose = False
client.timeout = 90
client.progress = True
client.urls = ["https://server1.com"]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pydebuginfod-0.1.0.tar.gz.
File metadata
- Download URL: pydebuginfod-0.1.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.9.1 Linux/5.4.0-1036-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
482005c23e761f8331e7e5f7a64d5e39954243b92499b2e9af6f3ee3fdeda780
|
|
| MD5 |
7c6519550112146c43e1a88fa6e7bb6d
|
|
| BLAKE2b-256 |
cac0c4e710e338f4778960e76c36d8f84f017a6ca7b22d356c3027b2c5d4a05e
|
File details
Details for the file pydebuginfod-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pydebuginfod-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.9.1 Linux/5.4.0-1036-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa556ad82ae2ffdd79ca551e2919272980c5a9fdf38e5a547ee8eb5755f2d4d5
|
|
| MD5 |
159c6a10a3b4cfc94cf584e7365325e2
|
|
| BLAKE2b-256 |
c6ebff44d97323baa5311bfcb7d02a003964a2613a33890e76cadf6a3d1ec332
|