User avatar
thephpjo
Posts: 3
Joined: Tue Aug 26, 2014 5:54 pm
Location: Germany

Criticize my code maybe?

Tue Aug 26, 2014 7:43 pm

I recently bought my second raspberrypi. It is hooked up to a 1TB harddrive and it was placed in my parents basement. It is a external data storage, mainly for backups.

On thing i wanted to back up was my dropbox. Sadly i found out, that there is no official Dropbox client for ARM. This and the fact, that i wanted to experiment with both, python and dropbox, are the reasons i wrote dropper.py - a simple Dropbox Downloader.

https://github.com/thephpjo/dropper.py

At the moment it is a pure downloader: Only new or changed files are downloaded. Deleted files are not synced yet, but that is the next thing i will try to implement.

As this is my first contact with Python, criticism would be highly appreciated. I basically have no idea how stuff works in Python and just started to write something. I rand into a couple of walls, such as string formatting.

Thanks in Advance, Johannes

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: Criticize my code maybe?

Tue Aug 26, 2014 9:58 pm

I'm not going to scrutinise your code, but have you looked at http://raspi.tv/2013/how-to-use-dropbox ... spberry-pi ?
At the very least it might give you some suggestions to learn from...?

Return to “Python”