Skip to main content

OSIDB Bindings

A Pythonic way to talk to OSIDB without getting lost in HTTP details.

Requirements

  • gcc
  • krb5-devel
  • pip
  • python3
  • python3-devel

Installation

Install the bindings using pip (recommended within a virtual environment):

pip install osidb-bindings

Quick Start

Basic Authentication

import osidb_bindings

# For local OSIDB instances with username/password authentication
session = osidb_bindings.new_session(
    osidb_server_uri="http://localhost:8000/",
    username="your_username",
    password="your_password"
)

Kerberos Authentication

# For production/staging instances with Kerberos authentication (default)
session = osidb_bindings.new_session(osidb_server_uri="https://your-osidb-instance.com/")

Basic Operations

# Check connection status
status = session.status()

# Retrieve a specific flaw
flaw = session.flaws.retrieve(id="CVE-1111-2222")

# Access flaw attributes
print(flaw.title)
print(flaw.impact)

# Convert to dictionary for easier manipulation
flaw_dict = flaw.to_dict()
print(flaw_dict["title"])
print(flaw_dict["impact"])

# Retrieve multiple flaws with filtering
critical_flaws = session.flaws.retrieve_list(impact="CRITICAL")
recent_flaws = session.flaws.retrieve_list(changed_after="2023-01-01")

# Access paginated results
print(f"Total flaws found: {critical_flaws.count}")
for flaw in critical_flaws.results:
    print(f"CVE: {flaw.cve_id}, Impact: {flaw.impact}")

API Version Control

# Use latest API version (default behavior)
flaw = session.flaws.retrieve(id="CVE-1111-2222")

# Specify a particular API version for stability
flaw = session.flaws.retrieve(id="CVE-1111-2222", api_version="v1")

# Discover available API versions
print(session.endpoints)

Documentation

Features

  • Automatic Authentication - Handles JWT token refresh automatically
  • Multiple API Versions - Support for v1, v2, and future API versions
  • Intuitive Interface - Pythonic API that mirrors OSIDB REST endpoints
  • Comprehensive Coverage - Access to flaws, affects, trackers, and more
  • Pagination Support - Built-in handling of paginated responses
  • Error Handling - Clear exceptions for better debugging

Metadata

Release files for osidb-bindings 5.20.1

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

Source distribution (sdist)

Source distribution for osidb-bindings 5.20.1
File Size Uploaded Provenance Actions
osidb_bindings-5.20.1.tar.gz 397.1 kB Without provenance Details for osidb_bindings-5.20.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for osidb-bindings 5.20.1
File Interpreter ABI Platform Actions
osidb_bindings-5.20.1-py3-none-any.whl Python 3 none any Details for osidb_bindings-5.20.1-py3-none-any.whl

Total release size: 1.4 MB

Release files / osidb_bindings-5.20.1.tar.gz

Download URL osidb_bindings-5.20.1.tar.gz
Size 397.1 kB
Tags Source
SHA-256 checksum
How to use checksums
dfe6861a56c8d4bd79461350f82f6ede518fbb2ffd7d160a9d95ea2b3e812802
BLAKE2b-256 checksum
How to use checksums
2a37841027afe5fded7e05d5aa75b94bbef072ce17b66b6668f10f929fbaa4a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / osidb_bindings-5.20.1-py3-none-any.whl

Download URL osidb_bindings-5.20.1-py3-none-any.whl
Size 1.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
e238e0669850f03b346cef09e4afb426863669a9f1e428a3e53186907e14efaa
BLAKE2b-256 checksum
How to use checksums
8a542e82f03a24a7caca6a8d64692a22f3989e8a6ed9ca5ad9c41d49b16b9419
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for osidb-bindings 5.20.1

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.

Release history Release notifications | RSS feed

This release

5.20.1 This release

2 release files No provenance

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