Skip to main content

Arabic-first free legal intelligence SDK for Saudi-focused legal workflows.

Project description

Qanuni SDK

Qanuni is an Arabic-first Python SDK for Saudi legal workflows.

This build is the fully free distribution:

  • no activation
  • no license token
  • no premium gate
  • all shipped tools are available immediately

Users bring their own OpenAI API key for prompt-backed tools. Deterministic tools such as Saudi labor calculations work without OpenAI.

Install

pip install qanuni-sdk

Quickstart

from qanuni import LegalClient

client = LegalClient(api_key="sk-...")

benefit = client.labor.end_of_service(
    monthly_salary=12000,
    years_of_service=7.5,
    termination_reason="resignation",
    contract_type="indefinite",
)

print(benefit.total_amount)
from qanuni import LegalClient

client = LegalClient(api_key="sk-...")

result = client.contracts.gap_analysis(
    contract_text="يلتزم الطرف الثاني بتنفيذ الأعمال، ويتم السداد لاحقًا."
)

print(result.summary)

Included Tools

  • labor.end_of_service
  • labor.probation_check
  • contracts.gap_analysis
  • contracts.generate_nda
  • contracts.generate_mou
  • drafting.improve
  • drafting.summarize
  • drafting.simplify
  • compliance.generate_privacy_policy
  • compliance.demand_letter
  • policies.generate_hr_policy
  • policies.job_description

Examples Command

qanuni-examples --list

Default Behavior

  • Arabic-first prompts and outputs
  • Saudi-oriented legal framing
  • structured Pydantic outputs
  • async methods available in this free build

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qanuni_sdk-0.2.0.tar.gz (59.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qanuni_sdk-0.2.0-py3-none-any.whl (100.5 kB view details)

Uploaded Python 3

File details

Details for the file qanuni_sdk-0.2.0.tar.gz.

File metadata

  • Download URL: qanuni_sdk-0.2.0.tar.gz
  • Upload date:
  • Size: 59.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for qanuni_sdk-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0879eaae55385a37bc494d0d91e71ee084b6bc0058f782c7252bf12d2ef0205c
MD5 8f18f65f0667d122cf15063d280aff2d
BLAKE2b-256 382399a9a551d79640c2d2389e435438ed2b1a0fda19e45b63d0c8154024c837

See more details on using hashes here.

File details

Details for the file qanuni_sdk-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: qanuni_sdk-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 100.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for qanuni_sdk-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d586240b6941780e972a3adf1bc8c06a4dbd5f656679363d06adcec21664e0aa
MD5 d4db8e2cba7d8c70590564e0ea1b0313
BLAKE2b-256 072f2739ca7fc738fd95207ede5209086cd7cba88758f48401512e9b413c99c2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page