Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 17, 2024

Bumps nats-py from 2.6.0 to 2.9.0.

Release notes

Sourced from nats-py's releases.

Release v2.9.0

Added

Thank you to @​charbonnierg for the community implementation that served as a kick-off point.

import asyncio
import contextlib
import signal
import nats
import nats.micro
async def echo(req) -> None:
"""Echo the request data back to the client."""
await req.respond(req.data)
async def main():
Define an event to signal when to quit
quit_event = asyncio.Event()
Attach signal handler to the event loop
loop = asyncio.get_event_loop()
for sig in (signal.Signals.SIGINT, signal.Signals.SIGTERM):
loop.add_signal_handler(sig, lambda *_: quit_event.set())
Create an async exit stack
async with contextlib.AsyncExitStack() as stack:
# Connect to NATS
nc = await stack.enter_async_context(await nats.connect())
   # Add the service
   service = await stack.enter_async_context(
       await nats.micro.add_service(nc, name="demo_service", version="0.0.1")
   )
group = service.add_group(name="demo")
Add an endpoint to the service
await group.add_endpoint(
name="echo",
handler=echo,
)
Wait for the quit event
await quit_event.wait()

</tr></table>

... (truncated)

Commits
  • 6286035 Merge pull request #601 from nats-io/release/v2.9.0
  • ce86398 Bump version to v2.9.0
  • fc78d85 Merge pull request #593 from charles-dyfis-net/zero-seq-is-meaningful
  • c585e7a Add test for streams_info method with offset and implement pagination (#594)
  • 6ed9d26 Fixes memory leak in PushSubscription::unsubscribe
  • 1649118 Implement services (ADR-32) (#566)
  • 02bbfde JetStreamManager: During a direct GET, do not conflate seq == 0 and seq is None
  • d6f4f97 Merge pull request #589 from nats-io/readme-fix
  • 64a7b25 Update README.md
  • 9310e6f Merge pull request #581 from nats-io/update-pythons
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [nats-py](https://github.com/nats-io/nats.py) from 2.6.0 to 2.9.0.
- [Release notes](https://github.com/nats-io/nats.py/releases)
- [Commits](nats-io/nats.py@v2.6.0...v2.9.0)

---
updated-dependencies:
- dependency-name: nats-py
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Sep 17, 2024
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Mar 25, 2025

Superseded by #6220.

@dependabot dependabot bot closed this Mar 25, 2025
@dependabot dependabot bot deleted the dependabot/pip/scanners/domain-discovery/nats-py-2.9.0 branch March 25, 2025 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants