https://github.com/pythonicninja/send-it
https://github.com/pythonicninja/send-it
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/pythonicninja/send-it
- Owner: PythonicNinja
- Created: 2025-02-21T12:24:29.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-21T16:45:48.000Z (over 1 year ago)
- Last Synced: 2025-11-20T15:29:05.734Z (7 months ago)
- Language: Python
- Size: 24.1 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

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

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 -
```

# 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 $@; }
```