Skip to content

WasimTTY/blck-sanic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blck-sanic

An ephemeral pastebin. you can only retrieve the paste once, and then it is deleted from the server.

Credits

This project is a refactor of the original blck repository, developed by parazyd. The original repository was built using Flask, and this version has been adapted to use Sanic for better async capabilities.

Note: The core functionality and features have been preserved.

Added Features

  • Async Logging: Integrated aiologger for asynchronous logging.
  • File Expiration: Files automatically expire after 4 hours, and expired files are cleaned up periodically.
  • File size upload limit: Enforced 60MB upload size cap.

Installation

use pyproject.toml to define project metadata and dependencies or just run uv init

refer the astral-uv documentation: https://docs.astral.sh/uv/

run uv run blck.py -d to the run the application in debug mode

nginx

location / {
	proxy_set_header Host $host;
	proxy_set_header X-Real-IP $remote_addr;
	proxy_set_header X-Forwarded-Proto https;
	proxy_pass http://127.0.0.1:8000;
}

Usage

either use the website, or curl:

curl -F 'c=@-' http://whatever.domain < file

About

Ephemeral pastebin and URL shortener refactored to use the Sanic web framework, with Astral UV for dependency locking.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors