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 3.0.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 kobil-sign 3.0.1
File Size Uploaded Provenance Actions
kobil_sign-3.0.1.tar.gz 3.0 kB Without provenance Details for kobil_sign-3.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 6.1 kB

Release files / kobil_sign-3.0.1.tar.gz

Download URL kobil_sign-3.0.1.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
94db3a3d9c08f8f9743b53d1fd1a9ef446a370324d107e59802f5c6d163227f9
BLAKE2b-256 checksum
How to use checksums
e23c41568718adcdadcd8f886101ce01746808fa3a52b26c561db0f416c227f8
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-3.0.1-py3-none-any.whl

Download URL kobil_sign-3.0.1-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
37d966d0c0c22eb9bc615127860511a19b97136612dfb179c0acb0d6201deec5
BLAKE2b-256 checksum
How to use checksums
c7216c61577057bfdb554cc1e87e3b915f5060ea3646d8b4e2f61426b765cf34
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 3.0.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.

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