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

python -m pip install --upgrade qanuni-sdk

Quickstart

import os

from dotenv import load_dotenv
from qanuni import LegalClient

load_dotenv()
client = LegalClient(api_key=os.getenv("OPENAI_API_KEY"))

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

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

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.4.tar.gz (63.8 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.4-py3-none-any.whl (104.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qanuni_sdk-0.2.4.tar.gz
  • Upload date:
  • Size: 63.8 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.4.tar.gz
Algorithm Hash digest
SHA256 079797f97f39bc6e12f0b537402a4deb1773c9d1cb116c8cde11ed859ed3a7a4
MD5 f8c6376051fbe0c1438d4b9b2f67a065
BLAKE2b-256 867c158fc885b13e63a2321c058a8a3eb510566b805d187beea22e3874363d1d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qanuni_sdk-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 104.8 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 309235569af0c35123db5c304b6037f7e6d48d0cd437407b9b8a611ec5aca28e
MD5 5ac87cef16d2f103b25bb6bd9e0d987e
BLAKE2b-256 a16c746238d063f938f414a605dc1889b2469a2c0192cd01af58bebd3d08b3af

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