https://github.com/aliscode/japronthost
Japronto simple module for a lightweight web file hosting service
https://github.com/aliscode/japronthost
Last synced: 11 months ago
JSON representation
Japronto simple module for a lightweight web file hosting service
- Host: GitHub
- URL: https://github.com/aliscode/japronthost
- Owner: AlisCode
- Created: 2017-02-16T14:43:38.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-16T22:10:32.000Z (almost 9 years ago)
- Last Synced: 2025-01-06T09:12:19.565Z (about 1 year ago)
- Language: Python
- Size: 1.31 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Japronthost
Japronthost is a tiny module for [Japronto](https://github.com/squeaky-pl/japronto), that makes it really simple to setup a tiny FTP-Like service on a server.
Japronthost basically setup your Japronto Application's router to respond to HTTP GET requests, returning the file you want to access.
---------------
# Dependencies
Japronthost relies on
* Japronto
* python-magic
Please make sure to install these dependencies before you start using Japronthost
# Setting it up
There's not much to do !
Before you run your application, let Japronthost setup its routes, like this :
import Japronthost
Japronthost.setup_routes('.',app.router)
See more code in the app.py file.
Then you just need to create .ignore files.
* A .ignore files contains all the files/directories you dont want anybody to access.
* Please make sure you only put one file per line.
* A .ignore file **CAN** be empty.
* You can put as many .ignore files as you want, one per directory.
That's all there is !