ZiplineAutoUpload utilizes Python and various libraries to create a script that monitors a specified folder for new files. When a new file is detected, the script will upload the file to a Zipline instance using its API.
To use this project, you will need to install the following dependencies:
watchdog
: A library for monitoring file system events in real-time.requests
: A library for sending HTTP requests in Python.pyperclip
: A library for interacting with the clipboard in Python.
You can install these libraries using pip:
pip3 install watchdog requests pyperclip
To use this project, follow these steps:
- Replace
<your-domain>
and<your-api-token>
in the code with your Zipline instance's domain and API token. - Replace
<your-absolute-path>
with the absolute path to the folder you want to monitor. - Run the script by executing the following command:
python3 main.py
The script will start monitoring the specified folder and upload any new files that are created. When a file is uploaded successfully, the URL to the uploaded file will be copied to your clipboard. If there's an error while uploading a file, the error message will be printed to the console.