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']) |
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 |