CDMClient
Project description
CDMClient
CDM - Centralized Download Manager Client CDMClient is the client application for the CDM Server.
This client communicates with the CDM Server to periodically send the download status from Transmission and check for new torrent files to download. If new torrents are available, they are downloaded and added to Transmission using the transmission-rpc library.
Installation
Install or Upgrade the Package
Run the following command to install or upgrade CDMClient:
python3 -m pip install --upgrade CDMClient --user
Create a Systemd Service
To set up CDMClient as a systemd service, execute the following commands:
-
Create the service file:
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
-
Reload systemd and enable the service:
sudo systemctl daemon-reload sudo systemctl enable cdm-client.service sudo systemctl start cdm-client.service
Configuration
The configuration file is located at:
~/.config/cdm_client/config.ini
This file is automatically generated when the service starts. Below is an example configuration:
[connection]
server_host = "https://cdm.test.com"
api_key = "1409d6ed79280aadcbe20f8f21981e89"
rpc_user = "admin"
rpc_password = "admin"
Configuration Details:
server_host: The full URL of the CDM Server (e.g.,https://cdm.server.com).api_key: The API key generated when adding a new device on the CDM Server's devices page. Refer to the Devices Page Documentation.rpc_userandrpc_password: Required only if Transmission RPC authentication is enabled. See the Transmission RPC Configuration Guide for more details.
Viewing Logs
To monitor the service logs, use the following command:
journalctl -fu cdm-client
Project details
Release history Release notifications | RSS feed
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 cdmclient-0.1.4.tar.gz.
File metadata
- Download URL: cdmclient-0.1.4.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
118408c5916d0ebc582e78c84a4720a69f301c5b23e80a7930b8ef5306100c8b
|
|
| MD5 |
6a7ecb87f9aebb3026b53e0db4dbee22
|
|
| BLAKE2b-256 |
9cc92f13fc75b167da421fef7af98886175054ab4d431f4517bb217affeb1e29
|
File details
Details for the file cdmclient-0.1.4-py3-none-any.whl.
File metadata
- Download URL: cdmclient-0.1.4-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60bc524f7766404aeba8720df13dd85684405b1a88f9d246bfcebec958793d09
|
|
| MD5 |
d648a6832349352d085f04181d8956ff
|
|
| BLAKE2b-256 |
b2e4259ef61a76bd8e583583c355151f97a968c2efbd71421f6ce9a4e9c974ba
|