title: How to get metadata/headers of an Amazon S3 Bucket in Python (Boto lib) like in Openstack Swift?
body: <p>I'd like to get the list of metadata/headers of an amazon s3 bucket?  </p>
  
  <p>I can get the metadata in OpenStack Swift Storage like following ->
  the curl command that request the metadata:  </p>
  
  <pre><code>curl -i http://localhost:8080/v1/AUTH_test/container1 -X HEAD -H "X-Auth-Token: AUTH_tk6194fghrt"
  </code></pre>
  
  <p>response for above curl command:</p>
  
  <pre><code>HTTP/1.1 204 No Content
  Content-Length: 0
  X-Container-Object-Count: 6
  Accept-Ranges: bytes
  X-Trans-Id: tx0ff9f8541e2c4e019dea1-0053eb48a7
  Date: Wed, 13 Aug 2014 11:14:47 GMT
  X-Container-Meta-Century: Nineteenthsssssssssssss
  X-Timestamp: 1399987571.97634
  X-Container-Meta-Author: Mustafa
  X-Container-Bytes-Used: 3978833
  Content-Type: text/plain; charset=utf-8
  X-Trans-Id: tx1c2734f1e4ca4f3e835da-0053eb497d
  </code></pre>
  
  <p>In openstack swift I can get the above metadata of a swift container(bucket) by using the python-swiftclient API.<br>
  I want to do same thing for AmazonS3 bucket. so, how can I get the <strong>metadata</strong> of an <strong>AmazonS3 bucket</strong> with <strong>Python</strong> ?(I am using <strong>boto</strong> library)<br>
  Is it possible or am I "beating the air"?  </p>
  
  <p><strong>UPDATE:</strong><br>
  I'm trying to get metadata of a <strong>bucket</strong> not the keys of bucket.</p>