Official Python SDK for BugBountyKE-KSP platform API
Project description
BugBountyKE-KSP Python SDK
Official Python SDK for the BugBountyKE-KSP Platform.
pip install bugbounty-ksp
Features
- ✨ Official SDK with full type hints
- 🔐 Secure API key authentication
- 📤 Publish articles with image support
- ⚡ Comprehensive error handling
- 🧪 98% test coverage (68 tests)
- 📚 Full documentation & examples
Quick Start
from bugbounty_ksp import BugBountyKSPAPIClient
import os
# Get API key from environment
api_key = os.environ['BUGBOUNTY_API_KEY']
# Create client
client = BugBountyKSPAPIClient(api_key=api_key)
# Publish article
response = client.publish_article(
title="Security Vulnerability Report",
content="# Vulnerability Details\n\nDetails here...",
frontmatter={
"title": "Security Vulnerability Report",
"tags": ["security", "bug-bounty"],
"category": "web"
},
images={},
file_path="/path/to/article.md"
)
print(f"Published! View at: {response.web_url}")
Installation
From PyPI (Recommended)
pip install bugbounty-ksp
From Source
git clone https://github.com/bugbountyksp/bugbounty-ksp-api-client.git
cd bugbounty-ksp-api-client
pip install -e .
Documentation
- Usage Guide - How to use the SDK
- API Reference - Complete API documentation
- Development Guide - Contributing & development
- Examples - Code examples
Getting Your API Key
- Log in to https://bugbountyke-ksp.com
- Go to Settings → API Keys
- Click "Generate New Key"
- Copy the key immediately (shown only once)
- Store securely in environment variables
# .env or environment
export BUGBOUNTY_API_KEY="sk_test_your_key_here"
Error Handling
from bugbounty_ksp import BugBountyKSPAPIClient
from bugbounty_ksp.api.exceptions import (
ValidationError,
AuthenticationError,
APIError,
)
try:
response = client.publish_article(...)
except ValidationError as e:
print(f"Invalid input: {e}")
except AuthenticationError as e:
print(f"Invalid API key: {e}")
except APIError as e:
print(f"API error: {e}")
Development
# Setup
python -m venv venv
source venv/bin/activate
pip install -e ".[dev]"
# Run tests
pytest -v
# Code quality
black src/ tests/
flake8 src/ tests/
mypy src/
Testing
68 tests with 98% code coverage:
pytest -v --cov=bugbounty_ksp
Tests included for:
- Authentication & API key validation
- Article publishing & management
- Error handling & edge cases
- API key generation & security
- Configuration & integration
License
MIT License - see LICENSE
Support
- 📖 Documentation
- 🐛 Issues
- 📧 Support: support@bugbountyke-ksp.com
Made with ❤️ by BugBountyKE-KSP Team
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 bugbounty_ksp_api_client-1.0.0.tar.gz.
File metadata
- Download URL: bugbounty_ksp_api_client-1.0.0.tar.gz
- Upload date:
- Size: 14.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd4bfa24ef3f35da3544203e8ffcf7b0494696f8c944c5e136abe8df6cd31746
|
|
| MD5 |
32c8aac23eda5adddcedb23c370ef0e5
|
|
| BLAKE2b-256 |
87cec467c4451870d38f6bde606d3a7d518481fff9afc15b3ee983940454ed38
|
File details
Details for the file bugbounty_ksp_api_client-1.0.0-py3-none-any.whl.
File metadata
- Download URL: bugbounty_ksp_api_client-1.0.0-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d21f284816781b809926edff0e9689d25de01ec29b3e1930c4f73c0d997077b
|
|
| MD5 |
28c3ecb67fa96f02bfd62f51a05a0b78
|
|
| BLAKE2b-256 |
cdece417765136c18c5b9460bd639fa3e5bdd2dc8e77fa1db19ccc59fab42274
|