Skip to content

Instantly share code, notes, and snippets.

import swiftclient
container = conn.get_container("test_head_segments")
for object in container:
if isinstance(object, list):
for part in object:
if 'name' in part and '80GB' in part['name']:
conn.head_object("test_head_segments", part['name'])
import swiftclient
conn = swiftclient.Connection(user={swift_user},
key={key},
authurl={authurl},
insecure=True)
conn.head_object("test_head", "80GB.txt")
@Atothendrew
Atothendrew / Capstone_Parse_Example.py
Created January 25, 2014 22:25
An example on how to use Parse.com's backend in Python Get the required python module from here: https://github.com/dgrtwo/ParsePy
__author__ = 'Andrew Williamson'
from parse_rest.connection import register
from parse_rest.datatypes import Object
register("YOUR_APP_ID", "YOUR_REST_API_KEY", master_key=None)
class Score(Object):
pass