Skip to content

Automatic Zipline file upload monitors a directory for new files, and uploads the file.

License

Notifications You must be signed in to change notification settings

Valhalla-Development/ZiplineAutoUpload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Installation

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

Usage

To use this project, follow these steps:

  1. Replace <your-domain> and <your-api-token> in the code with your Zipline instance's domain and API token.
  2. Replace <your-absolute-path> with the absolute path to the folder you want to monitor.
  3. 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.

About

Automatic Zipline file upload monitors a directory for new files, and uploads the file.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages