Skip to main content

kobil-sign

KOBIL digital signature client for Python, with automatic OAuth token management.

pip install kobil-sign
from kobil.sign import SignClient

sign = SignClient(
    sign_base_url="https://idp.cloud.kobil.com/auth/realms/{TENANT}/mpower/v1/users/{USER_ID}",
    tenant_name="acme",
    default_callback_url="https://yourapi.com/signature-callback",
    # credentials optional if KOBIL_* env vars are set
)

res = sign.initiate_pdf_signature(
    user_id=user_id,
    file=open("Agreement.pdf", "rb").read(),
    position={"page_number": 1, "bottom_left_x": 59, "bottom_left_y": 89, "top_right_x": 85, "top_right_y": 96},
    file_name="Agreement.pdf",
    message_text="Please sign here",
)
# res["messageId"], res["instanceId"]

POST {sign_base_url}/signature as multipart (signatureFile PDF + signatureData JSON). The signed PDF is delivered to your callback; download it via kobil.chat's get_attachment_file. Failures raise kobil.sign.KobilSignError.

License

MIT

Metadata

Release files for kobil-sign 1.2.0

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

Source distribution (sdist)

Source distribution for kobil-sign 1.2.0
File Size Uploaded Provenance Actions
kobil_sign-1.2.0.tar.gz 3.0 kB Without provenance Details for kobil_sign-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for kobil-sign 1.2.0
File Interpreter ABI Platform Actions
kobil_sign-1.2.0-py3-none-any.whl Python 3 none any Details for kobil_sign-1.2.0-py3-none-any.whl

Total release size: 6.1 kB

Release files / kobil_sign-1.2.0.tar.gz

Download URL kobil_sign-1.2.0.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f14094dfc1ffcdca37307fdb8a06245cb49f40e54b82300de7fc5870008ff4e4
BLAKE2b-256 checksum
How to use checksums
3fa522b9cdc6c12eec351d58fd0a48108cb273430a71c9f34384f1be7641d4c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / kobil_sign-1.2.0-py3-none-any.whl

Download URL kobil_sign-1.2.0-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
56c253d2974f6052b994badc870728d4de3156f2d5f34ad2789973ea824cc772
BLAKE2b-256 checksum
How to use checksums
748ee463341d42aff8b79a1b82bf0a6525d07302f5b7fac0d314d96bca0bb534
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for kobil-sign 1.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.

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