Releases: Zephyrkul/sans
Releases · Zephyrkul/sans
v1.3.0
- All submodules are now explicitly marked private
- Submodules and submodule usage were never documented, so I did not consider this a breaking change
- Fixed various minor issues with sans URL helpers
- Added
sans.View
for generating view parameters for the world happenings shard - Added
sans.Range
for specifyingfrom
andto
parameters to API URLs- Previously, using
**{"from": valA, "to": valB}
was the only workaround due to a Python limitation - Now, using
sans.Range(valA, valB)
or**sans.Range(valA, valB)
will do the same
- Previously, using
- Fixed server-sent events implementation to be standards-compliant
- Library users should see no difference between versions; this is mostly for forward compatibility
Full Changelog: 1.2.6...1.3.0
v1.2.6
- Added views support to
sans.serversent_events
- Simply call the
view
method on the object returned bysans.serversent_events
- Simply call the
for event in sans.serversent_events(
client, "move", "founding", "cte", "member", "endo"
).view(regions=["the north pacific"]):
print(event["str"])
- Added
nations=
andregions=
parameters tosans.serversent_events
for adding nation and region buckets.sans.serversent_events(None, "endo", regions=["the north pacific"])
is equivalent tosans.serversent_events(None, "endo", "region:the north pacific")
- The
view
method also supports these parameters
Full Changelog: 1.2.5...1.2.6
v1.2.5
What's Changed
sans.serversent_events
iterators will now retry the connection if the server times out waiting for an eventsans.serversent_events
parameter is now referred to as "buckets" in the function signature and associated error messages, due to the old name "filters" being misleading
Full Changelog: 1.2.4...1.2.5
v1.2.4
What's Changed
- Added
sans.serversent_events
, an (optionally async) iterator over server-sent events- Events timestamps and IDs will be parsed into datetimes and ints, respectively
- Compared to 1.2.4b1:
- This iterator will lazily determine whether to be async or not if no client is passed
- Filters will be properly url-encoded according to the endpoint's requirements
- Added missing typehints
Full Changelog: 1.2.3...1.2.4
v1.2.4b1
- Add
sans.serversent_events
for the new server-sent events endpoint
Full Changelog: 1.2.3...1.2.4b1
v1.2.3
- Add
Response.objectified
, which returns an ObjectifiedElement via lxml.objectify.
Full Changelog: 1.2.2...1.2.3
v1.2.2
- Add
sans.PrivateCommandError
for when theprepare
part ofsans.prepare_and_execute
returns an ERROR xml response (previously this would unintentionally cause a TypeError) - Fixes a TypeError when
mode=
is passed tosans.prepare_and_execute
- Add a way to use private shards and commands via the CLI
Full Changelog: 1.2.1...1.2.2
v1.2.1
- Adds
sans.deferred()
andsans.locked()
for inspecting the state of the internal ratelimiting lock
Full Changelog: 1.2.0...1.2.1
v1.2.0
sans.Client
andsans.AsyncClient
are now actual types.sans.ClientType
andsans.AsyncClientType
remain as aliases for backwards compatibility.
- full
trio
support - internal ratelimiting lock now uses a FIFO queue
- full Telegrams API support
- Use by passing an instance of
sans.TelegramLimiter
(example on README) - Using
sans.TelegramLimiter
is optional but can preserve API requests
- Use by passing an instance of
- Fix issues with POST coercion for private commands
- Added
--verbose
/-v
flag tosans
CLI tool, and refactored for logging - Mark
lock
module as private
Full Changelog: 1.1.4...1.2.0