#!/usr/bin/env python3

from pprint import pprint

import previz

API_ROOT = 'http://previz.app/api'
API_TOKEN = 'zdvBU8BtPL5cubhlshz0qsYYaT7B0hMuebpQoMijNcXrN2qDc29WLTCxO5pL'

#TEAM_UUIDS = ['94071d22-3fd6-47bc-9e5b-b3b9f234c3f5', 'd899cd46-a94d-4b51-b9ce-eb6569df9c8b']
#TEAM_UUID = TEAM_UUIDS[1]
#PROJECT_UUID = 'ee35122e-65ba-4c56-8280-39653a32bf09'

p = previz.PrevizProject(API_ROOT, API_TOKEN)

#pprint(p.teams()) # currently broken because of ?include=projects
#pprint(p.teams([]))
#pprint(p.projects())
#pprint(p.teams(include=['owner']))
#pprint(p.team(TEAM_UUID, []))
#pprint(p.new_project('cf-pyapi-module', TEAM_UUID))

#pprint(p.project())

#pprint(p.new_scene('cf-pyapi-module', TEAM_UUID))
#pprint(p.delete_project())

#pprint(p.get_all())

#p.assets()

#pprint(p.plugins())
pprint(p.updated_plugin('blender', '0.0.7'))

@@ -170,17 +170,16 @@
 xO5pL'%0A%0A
-#
 TEAM_UUI
@@ -229,48 +229,47 @@
 ', '
-d899cd46-a94d-4b51-b9ce-eb6569df9c8b
+938b52d0-0f4b-4179-afb9-901108456487
 '%5D%0A
-#
 TEAM
@@ -289,18 +289,32 @@
 UUIDS%5B1%5D
+ # charles-team
 %0A
-#
 PROJECT_
@@ -325,47 +325,190 @@
  = '
-ee35122e-65ba-4c56-8280-39653a32bf09
+9e380e70-853d-41f1-a720-15d6ee4dd29a'%0ASCENE_UUID = '35fafefb-aea7-4da8-b1b7-c23bac1198eb'%0ASCENE_JSON_URL = 'http://previz.app/api/scenes/35fafefb-aea7-4da8-b1b7-c23bac1198eb/json
 '%0A%0A
+#
 p = 
@@ -548,16 +548,76 @@
 I_TOKEN)
+%0Ap = previz.PrevizProject(API_ROOT, API_TOKEN, PROJECT_UUID)
 %0A%0A#pprin
@@ -866,86 +866,306 @@
 ())%0A
-%0A#pprint(p.new_scene('cf-pyapi-module', TEAM_UUID))%0A#pprint(p.delete_project()
+#pprint(p.delete_project())%0A%0A#pprint(p.scene(SCENE_UUID, include=%5B%5D))%0A#pprint(p.new_scene('cf-pyapi-module'))%0A%0Adef cb(*args, **kwargs):%0A    print('cb', args, kwargs)%0A#pprint(p.update_scene(SCENE_JSON_URL, 'scene.json', open('scene.json'), cb))%0A#p.update_scene(SCENE_JSON_URL, open('scene.json'), cb
 )%0A%0A#
@@ -1219,16 +1219,17 @@
 gins())%0A
+#
 pprint(p

Update testv2.py