Skip to content

Instantly share code, notes, and snippets.

Atothendrew

Block or report user

Report or block Atothendrew

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View head_object.py
import swiftclient
conn = swiftclient.Connection(user={swift_user},
key={key},
authurl={authurl},
insecure=True)
conn.head_object("test_head", "80GB.txt")
View head_segments.py
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'])
@Atothendrew
Atothendrew / Capstone_Parse_Example.py
Created Jan 25, 2014
An example on how to use Parse.com's backend in Python Get the required python module from here: https://github.com/dgrtwo/ParsePy
View Capstone_Parse_Example.py
__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
You can’t perform that action at this time.