The publicador
package helps with the uploading files process. It currently supports the following platforms:
- Googledrive
- Dropbox
In order to use you need to setup a few credentials for the platform you need:
pip install publicador
This example publishes an
input.docx
file to Googledrive and Dropbox
from publicador import Publicador
from publicador import GoogleDrive
from publicador import DropboxApi
google_credentials = 'path/to/credentials.json'
drivepath = '/example-dir'
context = Publicador('./input.docx', GoogleDrive(google_credentials, drivepath))
context.publicar()
token = 'app_token_from_dropbox'
dropxbox_path= '/example-dir'
context.strategy = DropboxApi(token, dropxbox_path)
context.publicar()