Setup Docker image and connection for testing
This commit is contained in:
commit
7bcf5714d4
6
Dockerfile
Normal file
6
Dockerfile
Normal 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
5
README.md
Normal 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
10
main.py
Normal 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
1
requirements.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
python-qbittorrent==0.4.3
|
Loading…
Reference in New Issue
Block a user