Initial commit

This commit is contained in:
2022-10-02 19:25:41 +02:00
commit 03fd9ae389
17 changed files with 1151 additions and 0 deletions

32
README.md Normal file
View File

@@ -0,0 +1,32 @@
# qbit-ci
A micro CI/CD framework for qBittorrent Web.
## Example
```yml
name: test
type: pipeline
steps:
- name: "Notify completed uncategorized torrents"
commands:
- >
curl
-H "Content-Type: application/json"
-d '{"username": "Botterboy", "content": "{{ torrent.name }} complete"}'
<webhook_url>
when:
- '{{ changes.completion_on not in [None, -1] }}'
- '{{ torrent.state == "uploading" }}'
```
## Usage
```py
# Install requirements
pip install -r requirements.txt
pip install -e .
# Create a qbit-ci config file
nano .qbit-ci.yaml
# Start the app
python qbit_ci
```