• This repository has been archived on 07/Apr/2018
  • Stars
    star
    107
  • Rank 321,655 (Top 7 %)
  • Language
    Python
  • License
    BSD 3-Clause "New...
  • Created about 14 years ago
  • Updated almost 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Uploads a file to Dropbox

This is an outdated, unmaintained project

This project used to interact with Dropbox using its website. This is hacky, hard to maintain, and is no longer fully possibly as Dropbox sometimes serves CAPTCHAs on certain requests. Dropbox has had a complete Python API for a long time now. I'd recommend using that instead:

https://www.dropbox.com/developers/documentation/python

If you just want something that can quickly let you use Dropbox from a terminal, I'd recommend rclone:

https://rclone.org/


PythonDropboxUploader (dbupload)

A very small Python package which provides a function to easily maniupulate files stored on Dropbox. This does not use the official API and should probably not be used on any kind of production system.

Usage

Basic uploading

from dbupload import DropboxConnection

conn = DropboxConnection("[email protected]", "password")
conn.upload_file("local_file.txt","/remote/path/","remote_file.txt")

Directory Listing

from dbupload import DropboxConnection

conn = DropboxConnection("[email protected]", "password")
print(conn.get_dir_list('/remote/path'))

Downloading a file

from dbupload import DropboxConnection

conn = DropboxConnection("[email protected]", "password")
conn.download_file("/remote/path","remote_file.txt","local_file.txt")

Download all files in a directory

from dbupload import DropboxConnection

conn = DropboxConnection("[email protected]", "password")

urls = conn.get_dir_list('/remote/path')

for filename in urls:
    conn.download_file_from_url(urls[filename], filename)

Delete a file in a directory

from dbupload import DropboxConnection

conn = DropboxConnection("[email protected]", "password")

urls = conn.delete_file('/remote/path', 'remote_file.txt')

Delete a directory

from dbupload import DropboxConnection

conn = DropboxConnection("[email protected]", "password")

urls = conn.delete_dir('/remote/path/dir_to_del')

More Repositories

1

languagemodels

Explore large language models in 512MB of RAM
Python
1,167
star
2

box-line-text

Simple virtual whiteboarding
HTML
455
star
3

BWMetaAI

A StarCraft Brood War AI designed to follow the modern 1v1 metagame
Python
83
star
4

connectiongrammar

This package provides a way to develop text grammars that represent a language of interconnected 3D objects in a Python environment.
Python
73
star
5

rebrickable-sqlite

Set of scripts to create a local copy of the Rebrickable database
Makefile
27
star
6

minix3

branch of the minix3 OS for use in COS421 (Operating Systems)
23
star
7

catdocx

Extracts plain text from docx files
Shell
21
star
8

MIPS-Lite

A pipelined MIPS-Lite CPU implementation
VHDL
20
star
9

twitch-powered-up

Interact with LEGO Powered Up elements via Twitch chat and a Raspberry Pi.
JavaScript
13
star
10

gCal-iCal-Sync

Syncs a public iCal URL to a Google Calendar
Python
10
star
11

rdlgen

SSRS RDL Report Generator
Python
8
star
12

lego-by-pound

Python
7
star
13

article-template

This is a simple template for writing academic papers. It uses bibtex for tracking bibliographic information and Pandoc to convert the content to a correctly formatted document.
Makefile
6
star
14

lgeo

POV-Ray SDL
6
star
15

pyastsim

Detects similarity between Python source files based on their normalized abstract syntax trees
Python
5
star
16

pagetext.js

phantomjs script to extract article content from a page
HTML
4
star
17

doctestfn

Python
3
star
18

bricki

Application for tracking Lego inventory
Python
3
star
19

python-socket-chat

A set of Python scripts to implement a chat server and client over simple sockets
Python
2
star
20

CANParkStatus

C
2
star
21

racing-adventures

JavaScript
2
star
22

large-language-models-cpsc2550

CSS
2
star
23

rep2ai

Starcraft replay to AI converter
C
2
star
24

dotfiles

System configuration files
Shell
2
star
25

inferential

An open inference server for educational use
Python
2
star
26

x64-asm-hello-world

A basic programming assignment using x64 Linux Assembly
Assembly
2
star
27

project-template

CSS
1
star
28

nfa

Python NFA implementation
HTML
1
star
29

benji-racer

HTML
1
star
30

presdown

Simple presentation markup
JavaScript
1
star
31

github-jobs

Python
1
star
32

dm

Display mode selector
Shell
1
star
33

lithium-ion-charger

A simple charger for single lithium ion cells
C
1
star
34

gradient-descent

Python
1
star
35

calculator

Python
1
star
36

ubuntu-desktop-vm

Shell
1
star
37

retention-modeling

CSS
1
star
38

hosts

Hosts files for ad and distraction blocking
1
star
39

sysinfo

C
1
star
40

pwa-calc

A basic calculator implemented as a Progressive Web Application
HTML
1
star
41

kvlite

A very simple key value store accessible over http
C++
1
star
42

pwa-calc-slides

CSS
1
star
43

gclean

Reduces size of email messages hosted by Gmail
Python
1
star
44

xubuntu-vm

Shell
1
star
45

test-files

Makefile
1
star
46

http-password-extractor

Python
1
star
47

operating-systems-cpsc4420

Python
1
star
48

ds-examples

Jupyter Notebook
1
star
49

software-engineering-test

1
star
50

txtnorm

C
1
star
51

brick-classifier

Jupyter Notebook
1
star
52

philosophers

C
1
star
53

node-mvb

JavaScript
1
star
54

userbwlimit

Limits individual user bandwidth
Shell
1
star
55

memvulnscan

Python
1
star
56

membench

Simple memory benchmark utility
Rust
1
star
57

epubcrush

Python
1
star
58

weensy

C++
1
star
59

robot-inventor-cli

Shell
1
star
60

ubuntu-server-student-env

Scripts and config files for configuring an Ubuntu server for multiuser student use
Shell
1
star
61

gradient-descent-js

HTML
1
star
62

nperf

Python
1
star
63

json-validator

Python
1
star
64

python-docs-zim

Packages Python documentation as a Kiwix ZIM file
Makefile
1
star