What’s Filehub?
What do you do if you want to quickly share a file in your local network? You may want to:
Set up a file server, such as an FTP server, or
Install point-to-point file transfer software, such as IP Messenger, on all the machines you want to share files.
The first way needs you to wait for the shared file to be completely uploaded before you can start downloading, if the file was not on the file server already. And it also needs vast caching space on the file server.
The second way needs you to install the software on all the machines. It’s cumbersome indeed. And what if there’s an incompatible platform that you cannot install the software on?
Filehub solves all these problems. If you want to share a file quickly, Filehub is the choice.
Filehub is actually an HTTP server that accepts file uploading via POST methods. But it’s different from a regular file server in that it relays the uploaded data directly to the downloader. This means that you don’t need to wait for the upload to be completed before downloading.
Usage
Install Filehub:
pip install filehub
Start it on your local server:
filehub
Filehub listens on <all interfaces>:8000 by default. Now you can use any HTTP client to access Filehub’s interface. For example, uploading a file using curl:
curl --form f=@FILENAME http://ip.addr.for.filehub:8000/hub
Or you can also use Filehub’s bundled HTML5 client at http://ip.addr.for.filehub:8000 . It has a nicer look, and supports drag & drop operations.
The files being uploaded will be shown in the bottom part of the HTML5 page. Simply clicking the file name will start downloading.
Advantages
HTTP protocol is quite popular. Most machines and smart devices already have a client installed, you don’t need other stuff.
Filehub does not cache any data at all, so it can be run on devices with limited resources, such as a Raspberry Pi or an NAS box, as long as you have Python installed on them.
Filehub streams the shared files on-the-fly, so you don’t need to wait for the files to be uploaded first. This makes it extremely suitable for one-shot sharing of large files.
License
Filehub is licensed under the terms of the MIT license. See LICENSE.txt.
Metadata
Release files for filehub 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| filehub-0.1.4.tar.gz | 10.7 kB | Without provenance | Details for filehub-0.1.4.tar.gz |
Release files / filehub-0.1.4.tar.gz
| Download URL | filehub-0.1.4.tar.gz |
|---|---|
| Size | 10.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6151e054a7776cea60646d88b94133d159799946a84e2c1fb39f06fb18bb5a01
|
|
BLAKE2b-256 checksum How to use checksums |
ddda62b6db9c442e65c1043d0fd77ddabb11cae73dca4f22d394743901649b52
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for filehub 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.