8000 Releases · Zephyrkul/sans · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Releases: Zephyrkul/sans

v1.3.0

01 Jun 04:46
0dcf83e
Compare
Choose a tag to compare
  • 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 specifying from and to 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
  • 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

17 Jan 04:27
a400877
Compare
Choose a tag to compare
  • Added views support to sans.serversent_events
    • Simply call the view method on the object returned by sans.serversent_events
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: 1.2.5...1.2.6

v1.2.5

07 Jan 23:30
51b9a8b
Compare
Choose a tag to compare

What's Changed

  • sans.serversent_events iterators will now retry the connection if the server times out waiting for an event
  • sans.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

06 Jan 06:18
462dfb2
Compare
Choose a tag to compare

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

27 Dec 05:53
9fc3cf6
Compare
Choose a tag to compare
v1.2.4b1 Pre-release
Pre-release

Full Changelog: 1.2.3...1.2.4b1

v1.2.3

18 Jun 21:45
99adf18
Compare
Choose a tag to compare
  • Add Response.objectified, which returns an ObjectifiedElement via lxml.objectify.

Full Changelog: 1.2.2...1.2.3

v1.2.2

08 Jun 20:35
5142686
Compare
Choose a tag to compare
  • Add sans.PrivateCommandError for when the prepare part of sans.prepare_and_execute returns an ERROR xml response (previously this would unintentionally cause a TypeError)
  • Fixes a TypeError when mode= is passed to sans.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

08 Jun 04:58
25c02b9
Compare
Choose a tag to compare
  • Adds sans.deferred() and sans.locked() for inspecting the state of the internal ratelimiting lock
    Full Changelog: 1.2.0...1.2.1

v1.2.0

04 Jun 22:57
3bcc8c7
Compare
Choose a tag to compare
  • sans.Client and sans.AsyncClient are now actual types.
    • sans.ClientType and sans.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
  • Fix issues with POST coercion for private commands
  • Added --verbose / -v flag to sans CLI tool, and refactored for logging
  • Mark lock module as private

Full Changelog: 1.1.4...1.2.0

v1.1.4

25 May 07:08
9bf18c1
Compare
Choose a tag to compare
  • Fix empty q= parameter causing 400: Bad Request errors (thanks, @jmikk)
  • Re-add script info to sans.set_agent (regression from 1.0.0a3)
  • Fix private shard authentication being handled incorrectly
0