dependabot[bot] opened a new pull request, #3183: URL: https://github.com/apache/streampipes/pull/3183
Bumps [nats-py](https://github.com/nats-io/nats.py) from 2.8.0 to 2.9.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/nats-io/nats.py/releases">nats-py's releases</a>.</em></p> <blockquote> <h2>Release v2.9.0</h2> <h3>Added</h3> <ul> <li>Added <code>micro</code> module implementing services <a href="https://github.com/nats-io/nats-architecture-and-design/blob/main/adr/ADR-32.md">ADR-32</a> (<a href="https://redirect.github.com/nats-io/nats.py/pull/566">nats-io/nats.py#566</a>)</li> </ul> <p>Thank you to <a href="https://github.com/charbonnierg"><code>@​charbonnierg</code></a> for the community implementation that served as a kick-off point.</p> <pre lang="python"><code>import asyncio import contextlib import signal <p>import nats<br /> import nats.micro</p> <p>async def echo(req) -> None:<br /> """Echo the request data back to the client."""<br /> await req.respond(req.data)</p> <p>async def main():</p> <h1>Define an event to signal when to quit</h1> <p>quit_event = asyncio.Event()</p> <h1>Attach signal handler to the event loop</h1> <p>loop = asyncio.get_event_loop()<br /> for sig in (signal.Signals.SIGINT, signal.Signals.SIGTERM):<br /> loop.add_signal_handler(sig, lambda *_: quit_event.set())</p> <h1>Create an async exit stack</h1> <p>async with contextlib.AsyncExitStack() as stack:<br /> # Connect to NATS<br /> nc = await stack.enter_async_context(await nats.connect())</p> <pre><code> # Add the service service = await stack.enter_async_context( await nats.micro.add_service(nc, name=&quot;demo_service&quot;, version=&quot;0.0.1&quot;) ) group = service.add_group(name=&quot;demo&quot;) # Add an endpoint to the service await group.add_endpoint( name=&quot;echo&quot;, handler=echo, ) # Wait for the quit event await quit_event.wait() </code></pre> <p></tr></table><br /> </code></pre></p> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/nats-io/nats.py/commit/6286035f2354f7bbd2799f98a7856049da36a6df"><code>6286035</code></a> Merge pull request <a href="https://redirect.github.com/nats-io/nats.py/issues/601">#601</a> from nats-io/release/v2.9.0</li> <li><a href="https://github.com/nats-io/nats.py/commit/ce8639870f8ebc5e26aa41ebc19dbb95e3a794bf"><code>ce86398</code></a> Bump version to v2.9.0</li> <li><a href="https://github.com/nats-io/nats.py/commit/fc78d85033a4fa14751c7ba493fc14ec79f0438e"><code>fc78d85</code></a> Merge pull request <a href="https://redirect.github.com/nats-io/nats.py/issues/593">#593</a> from charles-dyfis-net/zero-seq-is-meaningful</li> <li><a href="https://github.com/nats-io/nats.py/commit/c585e7a831eb6d8b5673506dfd30109c75b11efa"><code>c585e7a</code></a> Add test for <code>streams_info</code> method with offset and implement pagination (<a href="https://redirect.github.com/nats-io/nats.py/issues/594">#594</a>)</li> <li><a href="https://github.com/nats-io/nats.py/commit/6ed9d2666c62f868d885b0e27010612df7bc6b5b"><code>6ed9d26</code></a> Fixes memory leak in <code>PushSubscription::unsubscribe</code></li> <li><a href="https://github.com/nats-io/nats.py/commit/16491185012359639f8a6b0f75e5561fe1da56a9"><code>1649118</code></a> Implement services (ADR-32) (<a href="https://redirect.github.com/nats-io/nats.py/issues/566">#566</a>)</li> <li><a href="https://github.com/nats-io/nats.py/commit/02bbfdeeb5998ce7f098ab6ae9124d344d9e1f74"><code>02bbfde</code></a> JetStreamManager: During a direct GET, do not conflate seq == 0 and seq is None</li> <li><a href="https://github.com/nats-io/nats.py/commit/d6f4f97dc646d7a7c7cf1322f7aac899d4ddc6bf"><code>d6f4f97</code></a> Merge pull request <a href="https://redirect.github.com/nats-io/nats.py/issues/589">#589</a> from nats-io/readme-fix</li> <li><a href="https://github.com/nats-io/nats.py/commit/64a7b254527bf891d53667620a921c872eaf9702"><code>64a7b25</code></a> Update README.md</li> <li><a href="https://github.com/nats-io/nats.py/commit/9310e6fee612428900313e68a84e51903c670985"><code>9310e6f</code></a> Merge pull request <a href="https://redirect.github.com/nats-io/nats.py/issues/581">#581</a> from nats-io/update-pythons</li> <li>Additional commits viewable in <a href="https://github.com/nats-io/nats.py/compare/v2.8.0...v2.9.0">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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) </details> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
