A library for searching Tunisian court cases from the public judicial repository e-justice.tn.
Project description
Court Case Search
A Python library for searching Tunisian court cases.
Installation
You can install the library using pip:
pip install tun_justice
Usage
Here's a basic example of how to use the library:
from tun_justice import MadaniCase, MahdharCase, JazaiiCase, Tribunal
import logging
# Configure the root logger
logging.basicConfig(
level=logging.INFO, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s"
)
# Optionally, set a specific level for the tun_justice logger
logging.getLogger("tun_justice").setLevel(logging.DEBUG)
case = MadaniCase(
tribunal=Tribunal("محكمة ناحية باردو"), annee="2023", numero_dossier="10737"
)
case1 = MahdharCase(
tribunal=Tribunal("المحكمة الابتدائية بنابل"), annee="2023", numero_dossier="3"
)
case2 = JazaiiCase(
tribunal=Tribunal("1100"), annee="2023", numero_dossier="4"
) # محكمة الاستئناف بتونس
results = [c.search() for c in [case, case1, case2]]
for result in results:
print("-------------------------------------")
for case in result:
print(f"Case Number: {case.numero_dossier}")
print(f"Type of Case: {case.tribunal}")
print("Details:")
print(case.details)
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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 tun_justice-0.2.0-py3-none-any.whl.
File metadata
- Download URL: tun_justice-0.2.0-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
664a229f56428441595995ab511bab3c65ccd97d146f69cd6867e5be09556135
|
|
| MD5 |
188925a3abe14ab42aeea8ce1d06002d
|
|
| BLAKE2b-256 |
4686c36b338a91344d2c9896972b499635fb75f81e8f42f5e7295ac8faddabf9
|