https://github.com/dnaeon/py-mod_zipper
Apache module written in Python for browsing Zip files
https://github.com/dnaeon/py-mod_zipper
Last synced: 10 months ago
JSON representation
Apache module written in Python for browsing Zip files
- Host: GitHub
- URL: https://github.com/dnaeon/py-mod_zipper
- Owner: dnaeon
- License: other
- Created: 2013-07-18T09:08:33.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2023-09-02T16:07:12.000Z (over 2 years ago)
- Last Synced: 2024-05-01T12:35:46.241Z (over 1 year ago)
- Language: Python
- Size: 19.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## py-mod_zipper
`py-mod_zipper` is an Apache module, which allow you to browse and
extract specific files from Zip archives.
## Requirements
- Python 3.x
- [mod_python](https://github.com/grisha/mod_python)
- Apache 2.x
## Installation
Install the package.
``` shell
pip install .
```
## Configuration
Create an Apache vhost and configure `py-mod_zipper`.
``` apacheconf
Alias "/css" "/path/to/py-mod_zipper/css"
Require all granted
Options +Indexes
AddHandler mod_python .zip
PythonHandler mod_zipper
PythonDebug Off
```
Make sure to reload the Apache service.
## Docker
Build a Docker image.
``` shell
docker build -t mod_zipper:latest .
```
Then run the container with a directory containing zip archives.
``` shell
docker run --rm -p 8080:80 -v /path/to/zip/files:/usr/local/apache2/htdocs mod_zipper:latest
```
Open your browser at http://localhost:8080/
## License
`py-mod_zipper` is Open Source and licensed under the [BSD
License](http://opensource.org/licenses/BSD-2-Clause).