- Added views support to `sans.serversent_events`
- Simply call the `view` method on the object returned by `sans.serversent_events`
py
for event in sans.serversent_events(
client, "move", "founding", "cte", "member", "endo"
).view(regions=["the north pacific"]):
print(event["str"])
- Added `nations=` and `regions=` parameters to `sans.serversent_events` for adding nation and region buckets.
- `sans.serversent_events(None, "endo", regions=["the north pacific"])` is equivalent to `sans.serversent_events(None, "endo", "region:the north pacific")`
- The `view` method also supports these parameters
**Full Changelog**: https://github.com/Zephyrkul/sans/compare/1.2.5...1.2.6