⚠️ This is a test assignment, not intended for production use.
A web application for viewing and downloading files from Yandex.Disk public links.
- View files from Yandex.Disk public links
- Download single or multiple files
- Filter files by type
- OAuth authorization support
- Python 3.12
- Poetry (not required, you can use
pip install -r requirements-dev.txt
)
- Clone the repository
- Install Poetry:
pip install poetry
- Install dependencies:
poetry install
- Clone the repository
- Create
.env
file with the following parameters - Run the application:
task run_docker
or
docker compose up --build -d
- Register your application at Yandex OAuth
- Get Client ID and Client Secret
- Create
.env
file with the following parameters:
YANDEX_CLIENT_ID=your_client_id
YANDEX_CLIENT_SECRET=your_client_secret
YANDEX_OAUTH_TOKEN=your_oauth_token
YANDEX_REDIRECT_URI=http://localhost:8000/oauth/callback/
- Apply migrations:
poetry run python manage.py migrate
- Start the development server:
poetry run python manage.py runserver
- Open http://localhost:8000 in your browser
- Enter a Yandex.Disk public link
- Select files to download
- Click "Скачать выбранные файлы" for download
- Code style: Ruff
- Template formatting: djLint
- Python version: 3.12+
Project includes Taskfile.yaml for common development tasks. If you have Task installed, run task --list
to see available commands.