Metadata-Version: 2.1
Name: publicador
Version: 0.0.2
Summary: Publicador de archivos en diferentes plataformas
Home-page: https://github.com/Cambalab/publicador
Author: José Luis Di Biase
Author-email: josx@camba.coop
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Classifier: Topic :: Utilities
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: dropbox
Requires-Dist: cd-drive

# Publicador

File publisher to several cloud platforms
[Pypi Package link](https://pypi.org/project/publicador/)

## Support

- Googledrive
- Dropbox

## Deps

In order to use you need to:
- [Enable google drive api in you account](https://developers.google.com/drive/api/v3/enable-drive-api)
- [Create an dropbox app and get token](https://www.dropbox.com/developers/)

## Install

`pip install publicador`

## Usage
> Publish input.docx on Googledrive and Dropbox

```
from publicador import Publicador
from publicador import GoogleDrive
from publicador import DropboxApi

credentials = 'path/to/credentials.json'
drivepath = '/example-dir'

context = Publicador('./input.docx', GoogleDrive(credentials, drivepath))
context.publicar()

# token = 'app_token_from_dropbox'
# dropxboxpath= '/example-dir'
# context.strategy = DropboxApi(token, dropboxpath)
# context.publicar()

```


