Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lifailon/simplewebfilebrowser
Like http.server, but with support for authorization and uploading files to the server using different web frameworks.
https://github.com/lifailon/simplewebfilebrowser
api django fastapi filebrowser flask http-server python sanic tornado
Last synced: 22 days ago
JSON representation
Like http.server, but with support for authorization and uploading files to the server using different web frameworks.
- Host: GitHub
- URL: https://github.com/lifailon/simplewebfilebrowser
- Owner: Lifailon
- Created: 2024-08-28T05:24:22.000Z (4 months ago)
- Default Branch: rsa
- Last Pushed: 2024-08-29T22:31:31.000Z (4 months ago)
- Last Synced: 2024-08-30T00:24:03.093Z (4 months ago)
- Topics: api, django, fastapi, filebrowser, flask, http-server, python, sanic, tornado
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Web File Browser
Like `http.server`, but with support for **authorization** and **uploading files** to the server using different web frameworks.
A fast and user-friendly option for Linux system administrators ❤️🐧
## 🚀 Install
- Clone repository:
```shell
git clone https://github.com/Lifailon/SimpleWebFileBrowser
cd SimpleWebFileBrowser
```- Install the `venv` module to create a virtual environment (*optional*):
```shell
apt install python3-venv
```- Create and activate a Python virtual environment (*optional*):
```shell
python3 -m venv http
source http/bin/activate
```- Install the [Flask](https://github.com/pallets/flask) or [FastAPI](https://github.com/tiangolo/fastapi) framework to your choice:
```shell
pip install flask flasgger
```or
```shell
pip install fastapi uvicorn jinja2 python-multipart
```- Start the server:
```shell
python3 http.server/http.flask.py
```or
```shell
python3 http.server/http.fastapi.py
```🌐 The server will be launched at the port: `5000` and available on all interfaces (`0.0.0.0`).
🔐 Default login and password: `admin` and `admin`. You can change the password inside the script file.
Through the browser, you will have access to the root directory from which you run the script, as well as navigation through all child directories. If you need to select a different root directory, simply navigate to it in the console using the `cd` command and run the script from there.
Versions for other frameworks are available in the `test` directory.