fileshimstem - a terrible way to expose a filesystem over the network
Project description
fileshimstem
This is pretty terrible, please don't use it.
Configuration
Config file is fileshimstem.json
, it can be where you run the script from, or in ~/.config/fileshimstem.json
.
Option | Type | Default | Description |
---|---|---|---|
goodpaths |
List[str] |
None |
Needs to be set, is the list of allowed paths for requests. |
port |
int |
8000 | The port the server will listen on. |
host |
str |
127.0.0.1 | The host the server will listen on - 0.0.0.0 allows all IPv4 etc. |
API Docs
Access /docs
when running the server, but simply:
GET /{path}
eg: curl http://localhost:8000/e:/Downloads/filename.txt
Gets the file contents.
HEAD /{path}
eg: curl -X HEAD http://localhost:8000/e:/Downloads/filename.txt
Does a stat and returns the details in the headers.
OPTIONS /update
Does a git pull
and updates the server configuration.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fileshimstem-0.1.0.tar.gz
(3.2 kB
view details)
Built Distribution
File details
Details for the file fileshimstem-0.1.0.tar.gz
.
File metadata
- Download URL: fileshimstem-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.26.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ace3250de2b404fd69d4e4f792b9c1dd34fca1a210a649c26cb09939d4b8b1ad |
|
MD5 | 4796fb341decbf3a281e2ed6749bb658 |
|
BLAKE2b-256 | 294ba69854ac025eb7cc2eff57fefaf1f3dd8dabe4059df87656148e26eb9f8d |
File details
Details for the file fileshimstem-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: fileshimstem-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.26.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee6711063a6afeb10739a89ae834ef645e9a3d9fcf42827dd57ae3ca08c725dd |
|
MD5 | 9b29ceceb639d07aef3ef5bbc0ad00d9 |
|
BLAKE2b-256 | fd182f7b3f4e2713c1bdad243e73fe161a3bda581e9a9dbf6ad47cd8ee0bc646 |