https://github.com/nicolas-raoul/troois
Like Amazon S3 on Google App Engine
https://github.com/nicolas-raoul/troois
amazon-s3 gae google-app-engine gratis
Last synced: about 1 year ago
JSON representation
Like Amazon S3 on Google App Engine
- Host: GitHub
- URL: https://github.com/nicolas-raoul/troois
- Owner: nicolas-raoul
- Created: 2011-11-09T04:27:45.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2022-05-09T19:45:21.000Z (about 4 years ago)
- Last Synced: 2025-04-01T08:11:12.783Z (about 1 year ago)
- Topics: amazon-s3, gae, google-app-engine, gratis
- Language: Python
- Homepage:
- Size: 98.6 KB
- Stars: 7
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: license-agpl-3.0.txt
Awesome Lists containing this project
README
Troois: Like Amazon S3 on Google App Engine
Goal: Install Troois to your Google App Engine account, and you can send/retrieve files, a bit like on Amazon S3.
Who would use Troois instead of Amazon S3, which is so cheap?
- Open source project who have zero money.
- People who want zero running costs.
Limitations:
- No encryption
- No authentication
Ruby code to send a file:
troois_url = 'http://your-troois-app.appspot.com/' # Configure yours here
require 'open-uri'
require 'rest_client'
form = open(troois_url) {|f| f.read }
post_url = form.gsub(/.*action=\"/, '').gsub(/\" method.*/, '')
puts 'Dynamic URL for Google App Engine blobstore upload:' + post_url
key = RestClient.post post_url, :file => File.new('your-file.odt', 'rb')
puts 'File now available at: ' + troois_url + 'serve/' + key
Then anyone with the URL can download the file.
The URL contains a very long randomly-generated unique key.
TODO:
The Ruby code above could proably be improved to remove the form-parsing step.