Add pyproject.toml and uv support, update README

This commit is contained in:
√(noham)²
2025-11-16 17:36:37 +01:00
parent 5962130d1d
commit 5c5e52f688
3 changed files with 1244 additions and 2 deletions

View File

@@ -7,7 +7,8 @@ This application is not endorsed by or affiliated with Oqee. This application en
## Installation ## Installation
### Prerequisites ### Prerequisites
- Python 3.x - Python 3.9+
- [uv](https://docs.astral.sh/uv/) (recommended) or pip
- Go ([Installation Guide](https://go.dev/doc/install)) - Go ([Installation Guide](https://go.dev/doc/install))
- ffmpeg - ffmpeg
- mp4ff-decrypt - mp4ff-decrypt
@@ -17,6 +18,14 @@ go install github.com/Eyevinn/mp4ff/cmd/mp4ff-decrypt@latest
### Steps ### Steps
Clone the repository and install dependencies: Clone the repository and install dependencies:
**Using uv (recommended - faster):**
```bash
git clone https://github.com/NohamR/OqeeRewind && cd OqeeRewind
uv sync
```
**Using pip:**
```bash ```bash
git clone https://github.com/NohamR/OqeeRewind && cd OqeeRewind git clone https://github.com/NohamR/OqeeRewind && cd OqeeRewind
pip install -r requirements.txt pip install -r requirements.txt
@@ -38,13 +47,20 @@ API_URL=https://example.com/get-cached-keys
## Usage ## Usage
### Via Command Line ### Via Command Line
**Using uv:**
```bash
uv run main.py
```
**Using Python directly:**
```bash ```bash
python main.py python main.py
``` ```
### Via CLI Arguments ### Via CLI Arguments
```bash ```bash
python main.py --output-dir ./downloads -id channel_id --start DATE --end DATA -sv best -sa best uv run main.py --output-dir ./downloads -id channel_id --start DATE --end DATA -sv best -sa best
``` ```
## DRM Decryption ## DRM Decryption

31
pyproject.toml Normal file
View File

@@ -0,0 +1,31 @@
[project]
name = "oqee-rewind"
version = "0.1.0"
description = "Oqee TV Live Downloader"
readme = "README.md"
requires-python = ">=3.9"
license = { file = "LICENSE" }
authors = [
{ name = "NohamR" }
]
dependencies = [
"aiohttp==3.13.2",
"InquirerPy==0.3.4",
"python-dotenv==1.2.1",
"pywidevine==1.9.0",
"Requests==2.32.5",
]
[project.scripts]
oqee-rewind = "main:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["."]
[dependency-groups]
dev = []

1195
uv.lock generated Normal file

File diff suppressed because it is too large Load Diff