diff --git a/README.md b/README.md index e5d1a3e..88f53b1 100644 --- a/README.md +++ b/README.md @@ -2,19 +2,19 @@ PyFiche is a simple pastebin optimized for the command line, written in Python and heavily inspired by [fiche](https://github.com/solusipse/fiche/), or rather -a shameless translation. +a shameless translation. It has no dependencies outside the Python standard +library. It also comes with a re-implementation of Lines, the HTTP server that comes -with Fiche, which this time allows you to upload files, and comes doesn't have -dependencies outside the standard library. Additionally, PyFiche also comes -with a simple TCP server, Recup, to download pastes through netcat without -using HTTP(S), in the same way you upload them. +with Fiche. Additionally, PyFiche also comes with a simple TCP server, Recup, +to download pastes through netcat without using HTTP(S), in the same way you +upload them. ## Installation ### Dependencies -* Python 3 (tested with 3.11) +- Python 3 (tested with 3.11) ### Local Installation diff --git a/src/pyfiche/classes/lines.py b/src/pyfiche/classes/lines.py index 86558ce..bedab7c 100644 --- a/src/pyfiche/classes/lines.py +++ b/src/pyfiche/classes/lines.py @@ -48,6 +48,12 @@ body {{ server_version = "PyFiche Lines/dev" + # TODO: Implement uploading + def do_POST(self): + self.send_response(501) + self.end_headers() + self.wfile.write(b"Not implemented") + def not_found(self): self.send_response(404) self.end_headers()