Skip to content

Middleware for growler which generates an 'index view' of a directory.

License

Notifications You must be signed in to change notification settings

pyGrowler/growler-indexer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

growler-indexer

Middleware for the Growler web framework which creates a pretty index view of files and folders within a directory in the file system. Options can be passed to the middleware to change styles and viewing rules.

This package can be imported to host specific directories on the server, or can be called on the command line to create an easy file server for quick access on a network.

On the command line, you can host the current directory on port 8000 using

$ python3 -m growler.indexer

In a webserver you use this module as:

import growler
from growler.indexer.middleware import Indexer

app = growler.App(__name__)
app.use("/path1", Indexer("/path/to/be/served"))
app.use("/path2", Indexer("/another/path/to/be/served"))

...setup app...

app.run()

About

Middleware for growler which generates an 'index view' of a directory.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages