Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Programming > Libraries

    python-s3file 1.0

    Download button

    No screenshots available
    Downloads: 80  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Jeremy Carbaugh | More programs
    BSD License / FREE
    January 17th, 2012, 21:15 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    python-s3file description

    Read and write to Amazon S3 using a file-like object

    python-s3file is a Python library to read and write files to S3 using a file-like object. Refer to S3 buckets and keys using full URLs.

    More tests and docs are needed.

    Usage

    Basic usage:

    from s3file import s3open

    f = s3open("http://mybucket.s3.amazonaws.com/myfile.txt")
    f.write("Lorem ipsum dolor sit amet...")
    f.close()


    S3 authentication key and secret may be passed into the s3open method or stored in the boto config file.:

    f = s3open("http://mybucket.s3.amazonaws.com/myfile.txt", key, secret)

    Other parameters to s3open include:

    expiration_days
     Sets the number of days that the remote file should be cached by clients. Default is 0, not cached.

    private
     If True, sets the file to be private. Defaults to False, publicly readable.

    content_type
     The content_type of the file will be guessed from the URL, but you can explicitly set it by passing a content_type value.


    Product's homepage

    Requirements:

    · Python
    · boto

      


    TAGS:

    Amazon S3 | Python library | Python | Amazon | S3



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM