teleportd api python包装器
Teleportd的Python项目详细描述
python的teleportd api是 teleportd api使得构建python应用非常简单 在传送api之上。 有关api如何工作的更多信息,请参阅 文档可用here。
典型用法如下:
#!/usr/bin/env python from teleportd import Teleportd teleportd = Teleportd('_YOUR_USER_KEY_') # Search with filters as a dictionary search = teleportd.search({'str': 'laduree'}) # Retrieve a picture with the corresponding sha get = teleportd.get({'sha': '12-07-20-98a3b3fdd9b190ef4484a06a76fc1009c03076c5'}) # Callback for each object fetched from the stream def callback(data): do_something(data) # Real-time photo stream stream = teleportd.stream({}, callback)
许可证
这个包装器是在麻省理工学院的许可下发布的。