diff --git a/.gitignore b/.gitignore index 68bc17f..2dc53ca 100644 --- a/.gitignore +++ b/.gitignore @@ -157,4 +157,4 @@ cython_debug/ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. -#.idea/ +.idea/ diff --git a/README.md b/README.md index 4a9240b..5555b19 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,35 @@
paste.py 🐍 - A pastebin written in python. + +
+ +## Uasge: + +### Uisng CLI +> cURL is required to use the CLI. + +- Paste a file named 'file.txt' + +```bash +curl -X POST -F "file=@file.txt" https://paste.fosscu.org/file +``` + +- Paste from stdin + +```bash +echo "Hello, world." | curl -X POST -F "file=@-" https://paste.fosscu.org/file +``` + +- Delete an existing paste + +```bash +curl -X DELETE https://paste.fosscu.org/paste/ +``` + +### Using the web interface: +[Go here](https://paste.fosscu.org/web) + +
+ +For info API usage and shell functions, see the [website](https://paste.fosscu.org). \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..c4f7e2d --- /dev/null +++ b/requirements.txt @@ -0,0 +1,11 @@ +annotated-types==0.6.0 +anyio==3.7.1 +fastapi==0.104.1 +idna==3.6 +Jinja2==3.1.2 +MarkupSafe==2.1.3 +pydantic==2.5.2 +pydantic_core==2.14.5 +sniffio==1.3.0 +starlette==0.27.0 +typing_extensions==4.9.0 diff --git a/src/paste/templates/index.html b/src/paste/templates/index.html index cade7ea..3bb2389 100644 --- a/src/paste/templates/index.html +++ b/src/paste/templates/index.html @@ -1,9 +1,15 @@ - - - paste.py 🐍 + paste.py 🐍 + + + + + + + +