Skip to content

GeneratorContainer Slicing & More...

Compare
Choose a tag to compare
@cmlccie cmlccie released this 06 Jan 07:10
· 428 commits to main since this release

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's list() methods (return GeneratorContainers) 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... 💤