No description
Find a file
Kumi 9338b9163e
Enable file uploads via POST in Fiche-compatible server
Enhanced the Fiche-compatible HTTP server in PyFiche to accept file uploads using POST requests, providing a more standard method for sending files to the server. This update complements the existing TCP server, Recup, which facilitates downloading pastes via netcat.
2024-01-21 21:48:13 +01:00
src/pyfiche Implement POST file upload and enhance security checks 2024-01-21 21:46:53 +01:00
.gitignore Add PyFiche pastebin service with servers and configs 2024-01-21 21:38:17 +01:00
LICENSE Add PyFiche pastebin service with servers and configs 2024-01-21 21:38:17 +01:00
pyproject.toml Add PyFiche pastebin service with servers and configs 2024-01-21 21:38:17 +01:00
README.md Enable file uploads via POST in Fiche-compatible server 2024-01-21 21:48:13 +01:00

PyFiche

PyFiche is a simple pastebin optimized for the command line, written in Python and heavily inspired by fiche, or rather 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 around also allows you to upload files using POST requests. 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)

Local Installation

$ python -m venv venv
$ source venv/bin/activate
$ pip install -U git+https://kumig.it/PrivateCoffee/pyfiche.git

Usage

Fiche Server

$ source venv/bin/activate
$ pyfiche-server # try --help for options

With the exception of the -u option, all arguments of the original Fiche should work as expected. -u is not implemented because, well, just use the right user in the first place. 🤷‍♀️

Recup Server

$ source venv/bin/activate
$ pyfiche-recup # try --help for options

Lines Server

$ source venv/bin/activate
$ pyfiche-lines # try --help for options

License

PyFiche is licensed under the MIT license. See the LICENSE file for more information.