semvec/pypi-packages huggingface dataset:
tun-justice 0.2.0
A library for searching Tunisian court cases from the public judicial repository e-justice.tn.
Requires Python: >=3.6

# 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:

```python
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.
white124 0.1.6
Combining methods for convenience in new projects
Requires Python: >=3.6

# White124
**Combining methods for convenience in new projects:**  

from white124 import MySQL  
&nbsp;&nbsp;&nbsp;&nbsp;def connect  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Query to MySQL database  
&nbsp;&nbsp;&nbsp;&nbsp;def send_bd  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Request to the server via socket, sterilization if necessary  

from white124 import DomGosuslugi  
&nbsp;&nbsp;&nbsp;&nbsp;def apiFias  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Uses the Dadata library to generate the correct address in FIAS format