Metadata-Version: 2.1
Name: CDMClient
Version: 0.1.3
Summary: CDMClient
Author-email: Aron Radics <radics.aron.jozsef@gmail.com>
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests
Requires-Dist: transmission_rpc
Requires-Dist: cryptography
Provides-Extra: dev
Requires-Dist: types-requests; extra == "dev"
Requires-Dist: twine; extra == "dev"
Requires-Dist: pylint; extra == "dev"
Requires-Dist: black; extra == "dev"
Requires-Dist: mypy; extra == "dev"

# CDMClient
CDM - Centralized Download Manager Client

## Installation

### Install/Upgrade package
``` shell
python3 -m pip install --upgrade CDMClient --user
```

### Create service
``` shell
echo "[Unit]
Description=cdm-client service
After=multi-user.target
Conflicts=getty@tty1.service
[Service]
User=${USER}
Type=simple
Environment="LC_ALL=C.UTF-8"
Environment="LANG=C.UTF-8"
ExecStart=${HOME}/.local/bin/cdm-client
Restart=on-failure
RestartSec=3
[Install]
WantedBy=multi-user.target" | sudo tee /etc/systemd/system/cdm-client.service
```
``` shell
sudo systemctl daemon-reload
sudo systemctl enable cdm-client.service
sudo systemctl start cdm-client.service
```

## Configuartion
Config file path: ```~/.config/cdm_client/config.ini```

This file automatically generated when the service starts. See the example below.
``` ini
[connection]
server_host =
api_key =
rpc_user =
rpc_password =
```

## Check logs
``` shell
journalctl -fu cdm-client
```
