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"]
Metadata
Release files for pydebuginfod 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pydebuginfod-0.2.0.tar.gz | 4.0 kB | Without provenance | Details for pydebuginfod-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pydebuginfod-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for pydebuginfod-0.2.0-py3-none-any.whl |
Total release size: 8.0 kB
Release files / pydebuginfod-0.2.0.tar.gz
| Download URL | pydebuginfod-0.2.0.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
75892eb1c042df9df2ed9471fff32867a0baca0e089928244ee760d466e4e6b6
|
|
BLAKE2b-256 checksum How to use checksums |
5cb9deaae72ee0862847e7aa5a6fff0894a6530d8dbfa990142d70392c6cf38f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.9.2 Linux/5.4.0-1040-azure
|
Release files / pydebuginfod-0.2.0-py3-none-any.whl
| Download URL | pydebuginfod-0.2.0-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
deffd0f3c51e425107ba262bf6d9e241ffbd9f7cfde3bc9710209f672614a044
|
|
BLAKE2b-256 checksum How to use checksums |
b67b235416a68837e23013ed92ca90e8faec50914c081804f512306a8837eaa9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.9.2 Linux/5.4.0-1040-azure
|
Security for pydebuginfod 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.