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
Uh oh!
There was an error while loading. Please reload this page.
-
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-pyfromasyncio-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
JetStreamsupport:As well as
JetStream KVsupport: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
subscribeinstead of returning a sid.Changed suffix of most errors to follow PEP-8 style and now use the
Errorsuffix. For example,ErrSlowConsumeris nowSlowConsumerError. Old style errors are subclasses of the new ones so exceptions undertry...catchblocks would be still caught.Deprecated
Several areas of the client got deprecated in this release:
Deprecated
is_asyncparameter forsubscribeDeprecated
Client.timed_requestDeprecated passing
loopparameter to most functionsThis discussion was created from the release Release v2.0.0rc1.
Beta Was this translation helpful? Give feedback.
All reactions