GeneratorContainer Slicing & More...
This update adds:
- Refactored
GeneratorContainer
's - now with slicing support! (for the #50 guys) - Only need the first 10 rooms, messages, or etc.? All of the package'slist()
methods (returnGeneratorContainers
) that can now be easily sliced to give you exactly what you need, for example:
api = CiscoSparkAPI()
rooms = api.rooms.list(type='group')
print("Here are the first ten rooms:")
for room in rooms[:10]:
print(room)
-
Squashed a Python2 SparkData Bug - If you have tried to initialize a SparkData object (like a webhook) using Python v2, it was probably raising a
TypeError
when you did. #SquishedIt 🐛 ☠️ -
Other Boring Stuff:
- Updated script metadata (copyright notices and etc.).
- Cleaned up some tests.
- PEP8 fixes.
- Blah, blah, blah... 💤