An open API service indexing awesome lists of open source software.

https://github.com/pythonicninja/send-it


https://github.com/pythonicninja/send-it

Last synced: 11 days ago
JSON representation

Awesome Lists containing this project

README

          

![Logo](logo.svg)
# send it

Project allows to secretly without any dependencies other than ngrok to send directly text / file / directory.

![usage](send_it.gif)

Only dependencies are installed on your local:
1. python3 (no dependencies, only builtins)
2. ngrok for creation of tunnel with https

usage:

```bash
# sharing text
python3 main.py "client_id: 123 client_secret: 321"

# sharing longer text via default editor in shell
python3 main.py

# sharing file
python3 main.py ~/Desktop/your_file.txt

# sharing folder
python3 main.py ~/Desktop/something_to_share

```

example run:
```
| ~/PycharmProjects/send-it (main)
| => python3 main.py "client_id=12345, client_secret=321"
Created temporary directory: /var/folders/ty/v5g_gm0x0sv7dtxrh28tg_yc0000gn/T/tmpsc5ekv18
Detected text input, creating index.html
Starting HTTP server on port 8080...

Send this url to access message:
https://f5b9-2a09-bac1-5bc0-38-00-39b-5d.ngrok-free.app

Press Ctrl+C to stop the server and exit
127.0.0.1 - - [21/Feb/2025 13:19:31] "GET / HTTP/1.1" 200 -
```

![Example Screenshot](https://i.imgur.com/5q7kz5v.png)

# install

1. install ngrok:
https://ngrok.com/docs/getting-started/

2. clone repository:
```bash
git clone git@github.com:PythonicNinja/send-it.git

cd send-it

python3 main.py "client_id: 123 client_secret: 321"
```

optional, register alias on bash:

```bash
function send_it() { python3 ~/PycharmProjects/send-it/main.py $@; }
```