From 4bc7154593a9841e6b658322af3a81d3b7b66ab5 Mon Sep 17 00:00:00 2001 From: Rishiraj Acharya <44090649+rishiraj@users.noreply.github.com> Date: Mon, 23 Sep 2024 05:24:36 +0530 Subject: [PATCH] Update README.md --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 300012a..2037546 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,8 @@ pip install firerequests Accelerate your downloads with just a few lines of code: +### Python Usage + ```python from firerequests import FireRequests @@ -34,6 +36,18 @@ fr = FireRequests() fr.download(url, filename) ``` +### Command Line Interface + +```bash +!firerequests https://mirror.clarkson.edu/zorinos/isos/17/Zorin-OS-17.2-Core-64-bit.iso --filename Zorin-OS-17.2-Core-64-bit.iso +``` + +#### Parameters: +- `url` (required): The URL to download the file from. +- `--filename` (optional): The name to save the downloaded file. Defaults to filename from URL. +- `--max_files` (optional): The number of concurrent file chunks. Defaults to 10. +- `--chunk_size` (optional): The size of each chunk in bytes. Defaults to `2 * 1024 * 1024` (2 MB). + ## Real-World Speed Test 🏎️ FireRequests delivers significant performance improvements over traditional download methods. Below is the result of a real-world speed test: