https://github.com/servb/compression-server
https://github.com/servb/compression-server
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/servb/compression-server
- Owner: SerVB
- Created: 2019-10-29T21:19:36.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-23T16:17:06.000Z (over 6 years ago)
- Last Synced: 2025-01-04T07:26:05.855Z (over 1 year ago)
- Language: Python
- Size: 62.5 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://www.python.org/download/releases/2.7.7/)
[](https://github.com/SerVB/compression-server/actions)
# compression-server
## How to try? The flask server
Start the server by (5000 is the default one)
```shell script
export FLASK_APP=flask_server.py
python -m flask run (-p [PORT])
```
## How to try? The bycicle server
Start the server by (8080 is the default one)
```shell script
python server.py [PORT]
```
If you don't define a port, default one will be used.
Then you can compress some files using `curl`:
```shell script
curl -F "file=@/home/servb/PycharmProjects/compression-server/text.txt" http://localhost:[PORT]/convert/zipLzma -o answer.zip
```
## Accessing the flask server from browser.
Print localhost:[PORT] in your browser's address bar.
## Running tests
```shell script
python tests.py
```