Skip to content

arjun024/pystorage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pystorage

A simple python file-storage solution using dropbox and google app engine

###What services we use here###

###How we build our environment### #####Dropbox#####

  • Create a dropbox account.
  • Create a folder inside your "Public" directory.
  • Create a test file inside that folder, Right-click and view its public url and find out your user-id. (public url will be in the syntax: dl.dropboxusercontent.com/u/<USERID>/<YOURFOLDER>/testfile)
  • Input user-id and folder-name as variable values in index.py.
  DROPBOX_USERID = "<USERID>"
  DROPBOX_FOLDER = "<YOURFOLDER>"

#####Google App Engine#####

  • Create a Google App Engine account.
  • register a unique app-id.
  • now your application will run at <app-id>.appspot.com
  • Dowload Python and Google App Engine SDK
  • Download this project.
  • Select "src" folder as the project folder in the GAE SDK.
  • Deploy it to App Engine.

###Example### http://py-storage.appspot.com/test

This serves the file 'test' that is located in the specified folder of my Dropbox's Public directory.

###Access the files under your own domain###

  • Let's say you want to acces the test file as <files.yourwebsite.com>/test
  • Login to your App Engine, set custom domain for your app as <files.yourwebsite.com>
  • In your website's DNS settings: point CNAME record for <files.yourwebsite.com> to ghs.googlehosted.com
  • You're done.

About

A simple python file-storage solution using dropbox and google app engine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages