This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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']) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import swiftclient | |
conn = swiftclient.Connection(user={swift_user}, | |
key={key}, | |
authurl={authurl}, | |
insecure=True) | |
conn.head_object("test_head", "80GB.txt") |