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_servicelabor.probation_checkcontracts.gap_analysiscontracts.generate_ndacontracts.generate_moudrafting.improvedrafting.summarizedrafting.simplifycompliance.generate_privacy_policycompliance.demand_letterpolicies.generate_hr_policypolicies.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
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 qanuni_sdk-0.2.5.tar.gz.
File metadata
- Download URL: qanuni_sdk-0.2.5.tar.gz
- Upload date:
- Size: 65.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3f3bfda68f6017acf5896a989a5125dfc872215224d21961884df6b2b8d9fc3
|
|
| MD5 |
09715d207cb5f03a285f201423c05ddc
|
|
| BLAKE2b-256 |
58952d38e58a4151a16d9b5cbbfae4b6b3c54dfb29034df0e04ad775ef2c2e54
|
File details
Details for the file qanuni_sdk-0.2.5-py3-none-any.whl.
File metadata
- Download URL: qanuni_sdk-0.2.5-py3-none-any.whl
- Upload date:
- Size: 106.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee1612b5529ef319e204430598202019dc6a4114c7adfdf941c0c3cb860a1c93
|
|
| MD5 |
c442128f387fc07e560226a4ee9b7bf8
|
|
| BLAKE2b-256 |
338757c43a4758ceeab52d321fde213ffd1f1d649b7a85b226bf8d746287dcb9
|