semvec/pypi-packages huggingface dataset:
weekly-menu 0.0.59
Automate your weekly menu with AI

## weeklymenu-api

### Model Upload

```
flyctl sftp shell
    >> put models/ingredient_parser_model_v1.tar.gz /etc/weeklymenu/models/ingredient_parser_model_v1.tar.gz
```

```
flyctl ssh console
    >> cd /etc/weeklymenu/models/
    >> tar -xf ingredient_parser_model_v1.tar.gz
```
traccar-api 0.3.0
Python client for interacting with Traccar GPS tracking API
Requires Python: >=3.9

## Import

```
from traccar_api.api import TraccarApi
```

## Initial
```
traccar = TraccarApi(URL, MAIL, PASS)
 ```

## Login

```
current_user = traccar.login()

```

## Bulks
 ```
 server = traccar.get_server()
 ```
```
devices = traccar.get_devices()
```
```
devices_criteria = traccar.get_device(device_ids=[3, 38], device_unique_ids=["01442517SKYD066", "01433630SKYC6D3"])
```
```
users = traccar.get_users()
```
```
drivers = traccar.get_drivers()
```
```
groups = traccar.get_groups()
```
## Singles

```
device = traccar.get_device(device_unique_ids=["01433630SKYC6D3"])
```
```
user = traccar.get_user(1)
```
```
driver = traccar.get_driver(301)
```
## Permissions
```
permissions = traccar.get_current_user_permissions()
```
```
link_driver1_device1 = traccar.link_diver_device(driver_id=301, device_id=3)
```
```
link_driver2_device1 = traccar.link_diver_device(driver_id=302, device_id=3)
```
```
unlink_driver1_device1 = traccar.unlink_diver_device(driver_id=301, device_id=3)
```
```
unlink_driver2_device1 = traccar.unlink_diver_device(driver_id=302, device_id=3)
```
# Errors
```
try:

    current_user = traccar.login()
    
except TraccarApiAuthenticationError as e:

    print(f"Authentication error: {e}")
    
except TraccarApiError as e:

    print(f"API error: {e}")
```
# LogOut
```
traccar.logout()
```