Skip to main content

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/QBittorrent and check for new torrent files to download. If new torrents are available, they are downloaded and added to Transmission/QBittorrent client.

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:

  1. 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
    
  2. Reload systemd and enable the service:

    sudo systemctl daemon-reload
    sudo systemctl enable cdm-client.service
    sudo systemctl start cdm-client.service
    

Add automatic update (optional)

To keep CDMClient updated automatically, you can add a cron job. Run:

crontab -e

Then add the following line to the crontab file:

0 3 * * * /usr/bin/python3 -m pip install --upgrade CDMClient --user && systemctl restart 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://cdmserver.com"
api_key = "1409d6ed79280aadcbe20f8f21981e89"
client_host =
client_port =
client_username =
client_password =
client_type= transmission # possible values: transmission or qbitorrent

Configuration Details:

  • server_host: The full URL of the CDM Server (e.g., https://cdmserver.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.
  • client_username and client_password: Required authentication for the selected torrent client.
  • client_type: Specify either transmission or qbitorrent, depending on the torrent client you are using.
  • client_host and client_port: Optional. If not specified, defaults to localhost and the default port for the selected client type.

Viewing Logs

To monitor the service logs, use the following command:

journalctl -fu cdm-client

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cdmclient-1.1.0.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cdmclient-1.1.0-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file cdmclient-1.1.0.tar.gz.

File metadata

  • Download URL: cdmclient-1.1.0.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for cdmclient-1.1.0.tar.gz
Algorithm Hash digest
SHA256 ce32b03f90c8ed16817953576f1b00265f7857d1f9f19d5c20bc4458de47f9a0
MD5 bf1493c362d8cffcfd3b606e11cc0665
BLAKE2b-256 64fcc7b823c7df9cac4ed7fa69498a8d8636d69eb6c5a33df6d6f1ffb0978962

See more details on using hashes here.

File details

Details for the file cdmclient-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: cdmclient-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for cdmclient-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 188e0d16eeec6ada41bd845b5218e0ff895274d913aac0757a9e6c6875204a90
MD5 b83742138cc770a7f4c5e380e99fe8f2
BLAKE2b-256 e230698a4332b5cb6a30693f8552da807459ad10a4bae209c731ffd8bad5222b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page