Setup Docker image and connection for testing

This commit is contained in:
Kris Lamoureux 2023-05-12 20:51:23 -04:00
commit 7bcf5714d4
Signed by: kris
GPG Key ID: 3EDA9C3441EDA925
4 changed files with 22 additions and 0 deletions

6
Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM python:3.11.3
WORKDIR /app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["python", "./main.py"]

5
README.md Normal file
View File

@ -0,0 +1,5 @@
# qbittorrent-manager
Utilizing the python-qbittorrent library, the goal is to streamline and automate
various tasks such as reconciling data with torrents, managing torrent lifecycles,
and maintaining optimal seeding ratios. Built with Docker compatibility in mind.

10
main.py Normal file
View File

@ -0,0 +1,10 @@
from qbittorrent import Client
qb = Client('http://host.docker.internal:8080')
qb.login('admin', 'adminadmin')
torrents = qb.torrents()
for torrent in torrents:
print(torrent['name'])

1
requirements.txt Normal file
View File

@ -0,0 +1 @@
python-qbittorrent==0.4.3