Setup Docker image and connection for testing

This commit is contained in:
2023-05-12 20:51:23 -04:00
commit 7bcf5714d4
4 changed files with 22 additions and 0 deletions
+6
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
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
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
View File
@@ -0,0 +1 @@
python-qbittorrent==0.4.3