Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/raunaksingh9800/cloud-code-sender-and-receiver
Python Script for Pushing and Retrieving Code to/from Firebase Storage
https://github.com/raunaksingh9800/cloud-code-sender-and-receiver
Last synced: about 1 month ago
JSON representation
Python Script for Pushing and Retrieving Code to/from Firebase Storage
- Host: GitHub
- URL: https://github.com/raunaksingh9800/cloud-code-sender-and-receiver
- Owner: raunaksingh9800
- Created: 2024-02-01T12:21:26.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-04T14:30:57.000Z (11 months ago)
- Last Synced: 2024-02-04T16:19:45.016Z (11 months ago)
- Language: Python
- Size: 598 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cloud-Code-Sender-and-Receiver
Python Script for Pushing and Retrieving Code to/from Firebase Storage## Overview
This Python script streamlines the process of pushing code to a Firebase Storage bucket, retrieving it on another device, and running it, with optional compilation for different programming languages. It's ideal for sharing and executing code across multiple devices seamlessly.
## Clone The Repo
`git clone https://github.com/raunaksingh9800/Cloud-Code-Sender-and-Receiver`
## Screenshot
### Sender
![alt text](https://github.com/raunaksingh9800/Cloud-Code-Sender-and-Receiver/blob/main/screenshots/Sender.png?raw=true)
### Receiver
![alt text](https://github.com/raunaksingh9800/Cloud-Code-Sender-and-Receiver/blob/main/screenshots/%20Receiver.png?raw=true)
### Push
![alt text](https://github.com/raunaksingh9800/Cloud-Code-Sender-and-Receiver/blob/main/screenshots/push.png?raw=true)
### Get
![alt text](https://github.com/raunaksingh9800/Cloud-Code-Sender-and-Receiver/blob/main/screenshots/get.png?raw=true)
## Key Features- **File Handling:** Uploads and downloads code files to/from Firebase Storage.
- **Command-Line Arguments:** Supports four modes for distinct actions:
- `Sender`: Initializes the sending process, prompts for file name and Global Access Code (GAC), uploads the file, and creates a `data.txt` file for future reference.
- `Receiver`: Initializes the receiving process, prompts for file name and GAC, downloads the file, creates a `data.txt` file, and runs the code (defaulting to clang++ compilation for C++, but customizable for other languages).
- `push`: Reads GAC and file name from `data.txt` and pushes the code to the cloud.
- `get`: Reads GAC and file name from `data.txt`, retrieves the code from the cloud, compiles it (if applicable), and runs it.
- **Customizable Compilation:** Allows users to adjust the compilation command for their preferred programming language.## Usage
1. **Install Required Libraries:**
```bash
pip install firebase-admin
```
2. **Provide Firebase Credentials:**
- Create a Firebase project and download a service account key JSON file.
- Place the JSON file in the same directory as the script.
3. **Run the Script:**
```bash
python main.py
```
Replace `` with `Sender`, `Receiver`, `push`, or `get`.## Contributing
Contributions are welcome! Feel free to fork the repository, make changes, and submit pull requests.