All Projects → pgollangi → fastget

pgollangi / fastget

Licence: MIT License
⚡ A CLI tool and Go library to ultra fast download files over HTTP(S)

Programming Languages

go
31211 projects - #10 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to fastget

streams
Simple Go stream processor
Stars: ✭ 20 (-20%)
Mutual labels:  go-library
goelftools
Library for parsing ELF files written in pure Go.
Stars: ✭ 26 (+4%)
Mutual labels:  go-library
go-httpheader
A Go library for encoding structs into Header fields.
Stars: ✭ 38 (+52%)
Mutual labels:  go-library
telegram
📚 Golang bindings for Telegram API
Stars: ✭ 15 (-40%)
Mutual labels:  go-library
random
Random data generator AKA faker
Stars: ✭ 14 (-44%)
Mutual labels:  go-library
go-opendota
Go client library for accessing the OpenDota API
Stars: ✭ 34 (+36%)
Mutual labels:  go-library
froggit-go
Froggit-Go is a universal Go library, allowing to perform actions on VCS providers.
Stars: ✭ 19 (-24%)
Mutual labels:  go-library
veryfi-go
Go module for communicating with the Veryfi OCR API
Stars: ✭ 18 (-28%)
Mutual labels:  go-library
go-localize
i18n (Internationalization and localization) engine written in Go, used for translating locale strings.
Stars: ✭ 45 (+80%)
Mutual labels:  go-library
ratelimiter
A concurrent rate limiter library for Golang based on Sliding-Window rate limiter algorithm.
Stars: ✭ 218 (+772%)
Mutual labels:  go-library
currency
A currency computations package.
Stars: ✭ 52 (+108%)
Mutual labels:  go-library
godzilla
a powerful go web framework
Stars: ✭ 22 (-12%)
Mutual labels:  go-library
googletrans
G文⚡️: Concurrency-safe, Free and Unlimited google translate api for Golang. 🔥免费、无限、并发安全的谷歌翻译包
Stars: ✭ 94 (+276%)
Mutual labels:  go-library
webfr
moved to: https://github.com/godzillaframework/godzilla.git
Stars: ✭ 13 (-48%)
Mutual labels:  go-library
go-ovirt
Go SDK Source-Code for oVirt 4.x, generated by ovirt/ovirt-engine-sdk-go.
Stars: ✭ 27 (+8%)
Mutual labels:  go-library
Goxygen
Generate a modern Web project with Go and Angular, React or Vue in seconds 🚀
Stars: ✭ 2,318 (+9172%)
Mutual labels:  go-library
connect
CLI tool and Go client library for the Kafka Connect REST API
Stars: ✭ 45 (+80%)
Mutual labels:  go-library
echotron
An elegant and concurrent library for Telegram bots in Go.
Stars: ✭ 95 (+280%)
Mutual labels:  go-library

build Go Report Card GitHub go.mod Go version GitHub release (latest by date) PkgGoDev Maintainability Code Climate technical debt License: MIT

FastGet

A CLI tool as well as go library to ultrafast download files over HTTP(s).

DISCLAIMER: FastGet performance heavily reliant on the network and CPU performance of the client machine. More importantly HTTP(s) endpoint must allow partial requests presenting Accept-Ranges and accepting Range headers.

Demo

fastget Demo

Usage

fastget available as Commnad-Line tool and Go library.

Commnad-Line

fastget [options] <URL_TO_DOWNLOAD>

Examples

$ fastget http://speedtest.tele2.net/10MB.zip
Download started..
3.50 MB / 3.50 MB 100 % [===========================================================================| 0s ] 267.59 KB/s
3.50 MB / 3.50 MB 100 % [===========================================================================| 0s ] 165.65 KB/s
3.50 MB / 3.50 MB 100 % [===========================================================================| 0s ] 116.10 KB/s
Download finished in 3s. File: E:\10MB.zip

Read the documentation for more information on the CLI usage.

Go Library

Here is a simple example that finds fastest hosts:

fg, err := fastget.NewFastGetter("http://speedtest.tele2.net/10MB.zip")
if err != nil {
    panic(err)
}

result, err := fg.Get()
if err != nil {
    panic(err)
}
file := result.OutputFile
elapsedTime := result.ElapsedTime

Read the API documentation for more information on the library usage.

Installation

Download suitable binary for your OS at the releases page.

Bash Install

You can install or update fastget with:

curl -s https://raw.githubusercontent.com/pgollangi/fastget/master/scripts/install.sh | sudo bash

Installs into /usr/local/bin

Scoop

scoop bucket add pgollangi-bucket https://github.com/pgollangi/scoop-bucket.git
scoop install fastget

Updating:

scoop update fastget

Homebrew

brew install pgollangi/tap/fastget

Updating:

brew upgrade fastget

Go

$ go get github.com/pgollangi/fastget/cmd/fastget
$ fastget

Manual

  1. Download and install binary from the latest release.
  2. Recommended: add fastget executable to your $PATH.

Building from source

fastget CLI is written in the Go programming language, so to build the CLI yourself, you first need to have Go installed and configured on your machine.

Install Go

To download and install Go, please refer to the Go documentation. Please download Go 1.14.x or above.

Clone this repository

$ git clone https://gitlab.com/pgollangi/fastget.git
$ cd fastget

Build

$ go build cmd/fastget/main.go
$ fastget

Contributing

Thanks for considering contributing to this project!

Please read the Contributions and Code of conduct.

Feel free to open an issue or submit a pull request!

License

Copyright © Prasanna Kumar

fastget is open-sourced software licensed under the MIT license.

Author

Built with by Prasanna Kumar

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].