Skip to content

thekaranatic/cli2cloud

Repository files navigation

cli2cloud logo cover

cli2cloud

thekaranatic - cli2cloud stars - cli2cloud forks - cli2cloud wakatime Generic badge GitHub release License

This is a Python-based CLI app that provides easy and efficient file management capabilities, including uploading, deleting, downloading, and listing files over the cloud. Whether you're a developer, a data analyst, or simply someone who needs to efficiently manage files, cli2cloud empowers you to take control of your files with ease

Supported Commands

The app facilitates following commands

  • -h --help : About application

  • -newb --newbucket : Create new bucket on the cloud

  • -delb --deletebucket : Delete bucket from the cloud

  • -up --upload : Upload files to the cloud

  • -del --delete : Delete files from the cloud

  • -dwl --download : Download files from the cloud

  • -ls --list : List files from the cloud

Prerequisites:

  • Python 3.x
  • Required Python packages (install using pip):
    • Appwrite Python SDK (appwrite)
    • argparse
    • rich

Installation:

  1. Create an Appwrite account and setup your project.

  2. Copy the API Endpoint, Project ID & API Key.

  3. Previews:

    • appwrite-projectId

    • appwrite-apiKey

  4. Create a .env file in the project's root directory.

  5. Add the following environment parameters:

        API_ENDPOINT=
        PROJECT_ID=
        API_KEY=
  6. Clone the repository IN A DIRECTORY OF FILES YOU WOULD LIKE TO MANAGE (upload, delete, etc.): git clone https://github.com/thekaranatic/cli2cloud.git

  7. Navigate to the project directory: cd cli2cloud

  8. Install the required packages: pip install -r requirements.txt

  9. Start managing your files!

Please note that you may need to modify the commands based on your operating system and Python environment.

Running in the App in a virtual Environment

To run cli2cloud in a virtual environment:

  •   python3 -m venv venv
  •   .\env\Scripts\activate
  •   pip install -r requirements.txt
  •   python app.py <command>

Usage

  1. Create a bucket first python app.py -newb

  2. Start managing your files:

    python app.py -up <filename> or <file_path> `Upload file to the cloud

    python app.py -del <filename> Delete file from the cloud.

    python app.py --dwl <filename> Download files from the cloud.

    python app.py -ls <path> List files from the cloud

  3. Delete the bucket if you no longer wish to use the cloud/app (this deletes all your files on the cloud) python app.py -delb

Please note that you may need to modify the commands based on your operating system and Python environment.

Demo

Watch the demo

License

made-with-python built with appwrite

Licensed under MIT License by @thekaranatic.