VeriBits Python SDK
Official Python SDK for the VeriBits security API.
Installation
pip install veribits
Quick Start
from veribits import VeriBits
# Initialize client
client = VeriBits(api_key="your_api_key")
# Threat intelligence lookup
result = client.threat_intel.lookup("d41d8cd98f00b204e9800998ecf8427e")
print(f"Threat score: {result['threat_score']}")
# Submit file to sandbox
scan = client.sandbox.submit("/path/to/suspicious/file.exe")
print(f"Task ID: {scan['task_id']}")
# Generate SBOM for your project
sbom = client.cicd.generate_sbom(format="cyclonedx")
Features
Threat Intelligence
# Lookup hash
result = client.threat_intel.lookup("sha256_hash")
# Batch lookup
results = client.threat_intel.batch_lookup(["hash1", "hash2", "hash3"])
# Search threats
threats = client.threat_intel.search(query="ransomware", limit=10)
Malware Sandbox
# Submit file for analysis
submission = client.sandbox.submit("/path/to/file", analysis_type="full")
# Check status
status = client.sandbox.status(submission['task_id'])
# Get results
results = client.sandbox.result(submission['task_id'])
CI/CD Integration
# Generate SBOM
sbom = client.cicd.generate_sbom(format="cyclonedx")
# Scan dependencies for vulnerabilities
vulns = client.cicd.scan_dependencies("requirements.txt")
# Scan for hardcoded secrets
secrets = client.cicd.scan_secrets("./src")
Cryptographic Services
# Publish a public key
key_info = client.crypto.publish_key(pgp_key, key_type="pgp")
# Lookup a key
key = client.crypto.lookup_key("user@example.com")
# Verify signature
result = client.crypto.verify_signature(data, signature)
# Validate certificate
validation = client.crypto.validate_certificate(cert_pem)
Error Handling
from veribits import VeriBits, APIError, AuthenticationError, RateLimitError
client = VeriBits(api_key="your_api_key")
try:
result = client.threat_intel.lookup("hash")
except AuthenticationError:
print("Invalid API key")
except RateLimitError as e:
print(f"Rate limited. Retry after {e.retry_after} seconds")
except APIError as e:
print(f"API error: {e.status_code} - {e}")
Configuration
# Custom API endpoint
client = VeriBits(
api_key="your_api_key",
api_url="https://custom.veribits.com"
)
Requirements
- Python 3.8+
- requests >= 2.28.0
License
MIT License - see LICENSE for details.
Links
Metadata
Release files for veribits 1.0.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 |
|---|---|---|---|---|
| veribits-1.0.0.tar.gz | 6.9 kB | Without provenance | Details for veribits-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| veribits-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for veribits-1.0.0-py3-none-any.whl |
Total release size: 14.6 kB
Release files / veribits-1.0.0.tar.gz
| Download URL | veribits-1.0.0.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1abb5d82cbbec4e295914554e8626c345320daca2f633347a9fbf54813d63341
|
|
BLAKE2b-256 checksum How to use checksums |
5893e2d8aef9bd3966b3980618e9db39a19a9a12915e02d5a9fafe451fd504a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / veribits-1.0.0-py3-none-any.whl
| Download URL | veribits-1.0.0-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0eca8f69bd85b1fb58bf2c6816125697b734aff86c2bbd5fe2e0a969f3444ac2
|
|
BLAKE2b-256 checksum How to use checksums |
78c877df998fe19c6ddb1563e1456c883b652f268a5722ed8038c7724115ac9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for veribits 1.0.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.