Skip to content

zondatw/remote-cmder

Repository files navigation

remote-cmder

Prerequisites

Deps:

poetry install

pre-commit

pre-commit install --install-hooks
pre-commit install --hook-type pre-push
# update
pre-commit autoupdate

Quick Start

Start

$ python main.py

MD5

$ curl -F 'file=@test.txt' -F 'file=@test.txt' http://127.0.0.1:8888/md5
================= test.txt =================
test.txt: ba1f2511fc30423bdbb183fe33f3dd0f
================= test.txt =================
test.txt: ba1f2511fc30423bdbb183fe33f3dd0f

Run test

pytest .
# or
pytest --cov-config=.coveragerc --cov=. .

Run Pylint

pylint *.py remote_cmder

Docker

Start

make build
make run

Stop

make clean

Podman

Start

make -f Makefile.podman build
make -f Makefile.podman run

Stop

make -f Makefile.podman clean