GithubHelp home page GithubHelp logo

instituciones-abiertas / publicador Goto Github PK

View Code? Open in Web Editor NEW
6.0 13.0 0.0 27 KB

Publicador is a Python tools that let you upload documents to cloud platforms such as Google Drive and Dropbox.

Home Page: https://www.ia2.coop/

License: GNU General Public License v3.0

Makefile 16.35% Python 83.65%
dropbox dropbox-api googledrive python cloud-platforms

publicador's Introduction

IA² | publicador

IA²

File publisher for IA²


PyPI version PyPI version License Contributor Covenant

About

The publicador package helps with the uploading files process. It currently supports the following platforms:

  • Googledrive
  • Dropbox

Pre-requisites

In order to use you need to setup a few credentials for the platform you need:

Install package via pip

pip install publicador

Usage

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()

License

GNU General Public License version 3

publicador's People

Contributors

josx avatar sgobotta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

publicador's Issues

Check constructor props

Check if not none params on constructor google and dropbox classes in init method.
If not present raise error.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.