Pyrechat is a simple console chat with extra features.
Main features
- File exchange
- Sending clipboard contents
- Quick screenshot sharing
This project requires Python 3 and a Firebase Project.
git clone https://github.com/MiZentUi/Pyrechat.git
cd Pyrechat
pip install -r requirements.txt
- Create a Firebase project with Realtime Database and Storage enabled.
- Set the Realtime Database rules. Note: your database will not be secure after this.
{
"rules": {
".read": true,
".write": true
}
}- Create a file named
firebase-secrets.json, paste your Firebase secrets into it, and place it in the same directory aspyrechat.py.
Example firebase-secrets.json:
{
"apiKey": "...",
"authDomain": "...",
"databaseURL": "...",
"storageBucket": "...",
"serviceAccount": {
"type": "service_account",
"project_id": "...",
"private_key_id": "...",
"private_key": "...",
"client_email": "...",
"client_id": "...",
"auth_uri": "...",
"token_uri": "...",
"auth_provider_x509_cert_url": "...",
"client_x509_cert_url": "...",
"universe_domain": "..."
}
}python pyrechat.py
Each message is sent after pressing Enter.
Commands start with & . For example: & help.
| Command | Description |
|---|---|
& files in database |
Prints list of files in firebase storage |
& files in downloads |
Prints list of files in downloads folder |
& save path |
Prints path to downloads folder |
& remove downloads |
Remove downloads folder |
& send "[path]" |
Sends a file to firebase storage |
& send clipboard |
Write data from clipboard to txt file and send it to firebase storage |
& send screenshot |
Takes a screenshot and send it to firebase storage |
& copy "[path]" |
Download a file from firebase storage and copies it to clipboard |
& copy clipboard |
Download a last release of & clipboard.txt from firebase storage and copies it toclipboard |
& copy last |
Download a last received file from firebase storage and copies it to clipboard |
& open "[path]" |
Download a file from firebase storage and opens it |
& open clipboard |
Download a last release of & clipboard.txt from firebase storage and opens it |
& open last |
Download a last received file from firebase storage and open it |
& type "[path]" |
Download a file from firebase storage and prints it |
& type clipboard |
Download a last release of & clipboard.txt from firebase storage and prints it |
& type last |
Download a last received text file from firebase storage and prints it |
& help |
Prints pyrechat help documentation |
& exit |
Exits the pyrechat |
