Python SDK for the Needine Certificate API
Project description
needine-sdk
Python SDK for the Needine Certificate API.
Install
pip install needine-sdk
Quick Start
from needine import NeedineClient
client = NeedineClient(api_key="ndn_...")
# Create a certificate
cert = client.create_certificate({
"certificateType": "ai_generated_report",
"signerName": "Ana García",
"issuingCompany": "Acme Corp",
"model": {"provider": "openai", "modelName": "gpt-4o"},
"inputEvidence": [{"sha256Hash": "abc123...", "mimeType": "text/plain"}],
"outputEvidence": [{"sha256Hash": "def456...", "mimeType": "application/pdf"}],
})
print(cert["certificateId"])
# Verify
result = client.verify_certificate(cert["certificateId"])
print(result["valid"], result["trustLevel"])
# Export
bundle = client.export_json(cert["certificateId"])
pdf_bytes = client.export_pdf(cert["certificateId"])
Configuration
| Parameter | Env var | Default |
|---|---|---|
api_key |
NEEDINE_API_KEY |
— |
base_url |
NEEDINE_BASE_URL |
https://api.needine.com |
API
| Method | Description |
|---|---|
create_certificate() |
Issue a new certificate |
list_certificates() |
Paginated list |
get_certificate(id) |
Get full certificate details |
verify_certificate(id) |
Cryptographic + trust validation |
get_provenance(id) |
Lineage/provenance tree |
export_json(id) |
Full verifiable JSON bundle |
export_pdf(id) |
PDF as bytes |
verify_anchor(id) |
Blockchain anchor verification |
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
needine_sdk-0.1.0.tar.gz
(3.2 kB
view details)
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 needine_sdk-0.1.0.tar.gz.
File metadata
- Download URL: needine_sdk-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20360581511f1cdd4d4f47b57c15f42ae5f4ce804020e4f41791a314a0d8472f
|
|
| MD5 |
f1f6ef67f22b4881091d990471d91deb
|
|
| BLAKE2b-256 |
a1afa528fe161bd0012c35823aeaaedae93faa252bff841188e3aa3cc9e1291e
|
File details
Details for the file needine_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: needine_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b91a39a6c98d1216187d5b4a37233a0868aa46af51ad941d0c2425d436eb0ab
|
|
| MD5 |
3dc869009911e15e5a6ae0b98229fd00
|
|
| BLAKE2b-256 |
d5c714110d32945e64cb7a0ea6dc7e664b4e4c25ab61cccc258cbd5d7c9efe8e
|