Servefile
Serve files from shell via a small HTTP server. The server redirects all HTTP requests to the file, so only IP and port must be given to another user to access the file. Its main purpose is to quickly send a file to users in your local network, independent of their current setup (OS/software). Besides that it also supports uploads, SSL, HTTP basic auth and directory listings.
Features:
- serve single file
- serve a directory with directory index
- file upload via webinterface
- HTTPS with on the fly generated self signed SSL certificates
- HTTP basic authentication
- serving files/directories as on request generated tar files
Install
Via pip
pip install servefile
After installation either execute servefile --help or python -m servefile --help
Standalone:
If you don't have pip available just copy servefile/servefile.py onto the target machine, make it executable and you are ready to go.
$ wget https://raw.githubusercontent.com/sebageek/servefile/master/servefile/servefile.py -O servefile
$ chmod +x servefile
$ ./servefile --help
Metadata
Release files for servefile 0.5.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 | |
|---|---|---|---|---|
| servefile-0.5.4.tar.gz | 19.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| servefile-0.5.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.2 kB
Release files / servefile-0.5.4.tar.gz
| Download URL | servefile-0.5.4.tar.gz |
|---|---|
| Size | 19.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b080683c573e057db5e9ad9af800b4a2681c059ca0ba5537aff2ddfbf1bae00
|
|
BLAKE2b-256 checksum How to use checksums |
37e31a99dfaa6311e38236f6ce436e7f6c0f9b9ccef93643e33bd66e1727ef9b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.8
|
Release files / servefile-0.5.4-py3-none-any.whl
| Download URL | servefile-0.5.4-py3-none-any.whl |
|---|---|
| Size | 16.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4e154791dec70b280cfd3d4e0ad8ba13bfd1f676bc77b5ce0b73b54f65ace770
|
|
BLAKE2b-256 checksum How to use checksums |
bf37fc904b61328032d453802416e820112626434501cfc5dc68b52446c1602e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.8
|
Security for servefile 0.5.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.