Release v2.0.0rc1 #226
wallyqs
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
nats.py v2.0.0rc1
Major upgrade to the APIs of the Python3 client! For this release the client has also been renamed to be
nats-py
fromasyncio-nats-client
, it can now be installed with:pip install nats-py # With NKEYS / JWT support pip install nats-py[nkeys]
This version of the client is not completely compatible with previous versions
of the client and it is designed to be used with Python 3.7.
Overall, the API of the client should resemble more the APIs of the Go client:
There is support for NATS Headers ⚡
It also now includes
JetStream
support:As well as
JetStream KV
support:New Documentation site:
The following site has been created to host the API of the Python3 client: https://nats-io.github.io/nats.py/
The contents of the doc site can be found in the following branch from this same repo: https://github.com/nats-io/nats.py/tree/docs/source
Breaking changes
Changed the return type of
subscribe
instead of returning a sid.Changed suffix of most errors to follow PEP-8 style and now use the
Error
suffix. For example,ErrSlowConsumer
is nowSlowConsumerError
. Old style errors are subclasses of the new ones so exceptions undertry...catch
blocks would be still caught.Deprecated
Several areas of the client got deprecated in this release:
Deprecated
is_async
parameter forsubscribe
Deprecated
Client.timed_request
Deprecated passing
loop
parameter to most functionsThis discussion was created from the release Release v2.0.0rc1.
Beta Was this translation helpful? Give feedback.
All reactions