This program is developed for the HoltLab@CMU to manage data in the Box cloud storage. It enables command-line-style interactions on local machine with cloud files and folders. Current features are outlined in Basic Commands section.
.
├── app
│ ├── __init__.py
│ ├── auth.py
│ ├── data.py
│ ├── parse.py
│ └── utils.py
├── help
│ ├── example
│ └── get_tokens.pdf
├── README.md
├── ToBox.py
├── main.py
└── requirements.txt
- Activate your Box Developer Console using your Box account
- Copy your Client ID and Client Secret to
ToBox.py
Please refer to help/get_tokens.pdf
for more instructions.
- Download and install Python 3. Remember to add Python to your PATH during installation
- Install required Python packages. This step may overwrite some previously installed packages
- Open Windows Command Prompt / Mac Terminal / Linux Terminal
- Navigate to the directory of ToBox program
- Type in the following command
pip install -r requirements.txt
To paste into command line, you may need
Ctrl+Shift+v
instead ofCtrl+v
- Obtain a Developer Token from the Box Developer Console
Developer Token is valid for only 60 minutes
- Execute the Python script
python ToBox.py <Developer Token>
- Type in supported commands after
>>>
Overall, the syntax is aligned with the convention:
<command name> [option(s)] <required argument(s)>
For example, upload --folder help/example ~
So far, there are six basic commands implemented.
quit
: exit the programhelp
: print the general instructioncd
: change the working directoryls
: print the directory and file structureupload
: upload files or folders from local computer to clouddownload
: download files or folders from cloud to local computer
To view available arguments and explanation, you can type in
<command name> --help
Please do not hesitate to contact me if you encounter any bugs or difficulties while using this program. Your feedback is greatly appreciated.
Author: Yongyi (Ethan) Wu
Email: wyy@cmu.edu