$npx skillfedfor your agent

langchain-azure-dynamic-sessions

An integration package connecting Azure Container Apps dynamic sessions and LangChain

Worth itPyPI Application FrameworksReleased Jun 2026107.7K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — langchain_azure_dynamic_sessions-1.0.3-py3-none-any.whl
v1.0.3 · released 2026-06-23 · Python <4.0,>=3.10 · 4 runtime deps: azure-core, azure-identity, langchain-core, requests

Yes. The package is actively maintained, has no known vulnerabilities, and low installation friction. Install it if you are building LangChain agents on Azure and need to execute code (Python or bash) in isolated, managed containers. If you do not use Azure Container Apps or do not need agent code execution, it is not relevant.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires an Azure Container Apps session pool and its management endpoint.
  • Authentication uses DefaultAzureCredential; for user-assigned managed identity, set AZURE_CLIENT_ID environment variable.
  • Principal must have Azure ContainerApps Session Executor role on the session pool.

License · maintenance · safety

permissive license (permissive) — MIT License (permissive). You may use, modify, and distribute this package freely, including in proprietary applications, provided you retain the copyright notice and license text.

last release 2026-06-23 (52 days) · last repo commit 2026-08-14 · 142 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 107,704 downloads/mo, #12,602 on PyPI

Verify before relying

from langchain_azure_dynamic_sessions.tools import SessionsPythonREPLTool

tool = SessionsPythonREPLTool(pool_management_endpoint=POOL_MANAGEMENT_ENDPOINT)
result = tool.run("print('hello')")
tool.close()
  • Whether the package supports async/await patterns for concurrent session management beyond the delete_session_after_invocation parameter mentioned in 1.0.3.
  • Performance characteristics and latency when executing code across the network to Azure Container Apps.
  • File upload/download size limits and bandwidth constraints for the SessionsBashTool file operations.
Same gist for agents: .md · .json

What it is and what it does

This package bridges LangChain agents and Azure Container Apps dynamic sessions, providing two tools—SessionsPythonREPLTool and SessionsBashTool—that let agents execute Python code and bash commands in isolated, managed containers. Rather than running code locally or in-process, the tools send execution requests to a session pool you provision in Azure, which spins up lightweight containers and returns results. This isolation is useful for safety and scalability: agents can run untrusted or resource-intensive code without affecting the host process.

The package handles authentication via DefaultAzureCredential, manages session lifecycle (including automatic cleanup via context managers or explicit close/delete calls), and supports file operations—uploading, listing, and downloading files within the session. Version 1.0.3 added automatic session deletion after each invocation and asynchronous cleanup for concurrent workloads. It depends on azure-core, azure-identity, langchain-core, and requests, all standard Azure and LangChain libraries.

Use it for

  • Give a LangChain agent the ability to execute Python code (e.g., data analysis, math) without running it in your process.
  • Allow agents to run bash commands and shell scripts in a sandboxed Azure container for system-level tasks.
  • Upload local files to a session, process them with Python or bash, and download results—useful for batch data pipelines.
  • Build multi-turn agent workflows where each turn can execute code and persist files across invocations within the same session.
  • Isolate untrusted or user-provided code execution in a managed Azure environment rather than locally.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The package is actively maintained, has no known vulnerabilities, and low installation friction. Install it if you are building LangChain agents on Azure and need to execute code (Python or bash) in isolated, managed containers. If you do not use Azure Container Apps or do not need agent code execution, it is not relevant.

Install

langchain-azure-dynamic-sessions on PyPI

Before you install

Low friction installation with a pure-Python wheel. Actively maintained with recent security patches and dependency refreshes; last release 52 days ago with no known vulnerabilities.

Requires an Azure Container Apps session pool and its management endpoint. Authentication uses DefaultAzureCredential; for user-assigned managed identity, set AZURE_CLIENT_ID environment variable. Principal must have Azure ContainerApps Session Executor role on the session pool.

License in practice

MIT License (permissive). You may use, modify, and distribute this package freely, including in proprietary applications, provided you retain the copyright notice and license text.

Quickstart

from langchain_azure_dynamic_sessions.tools import SessionsPythonREPLTool

tool = SessionsPythonREPLTool(pool_management_endpoint=POOL_MANAGEMENT_ENDPOINT)
result = tool.run("print('hello')")
tool.close()

Verify before relying

  • Whether the package supports async/await patterns for concurrent session management beyond the delete_session_after_invocation parameter mentioned in 1.0.3.
  • Performance characteristics and latency when executing code across the network to Azure Container Apps.
  • File upload/download size limits and bandwidth constraints for the SessionsBashTool file operations.

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release <4.0,>=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
4 packages
azure-coreazure-identitylangchain-corerequests
MaintenanceActively maintained 52 days since the last release
Last repo commit
First released
Downloads107,704 / month, #12,602 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: Other/Proprietary LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Evidence: langchain_azure_dynamic_sessions-1.0.3-py3-none-any.whl

Tags

Capabilities
langchain azure code executionazure container apps session poolagent python repl toolsecure code interpreter azurebash command execution agentazure dynamic sessions langchainagent code sandbox
Topics
langchain-integrationazure-container-appsagent-tools

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “langchain azure code execution”

Give your agent the search over MCP, or paste the wish link into any chat.

More Application Frameworks packages

fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
textual Worth it
PyPI · Application Frameworks · released Jun 2026

Textual is a Python framework for building cross-platform user interfaces that run in the terminal or web browser using a modern, component-based API.

Install it if you're developing CLI tools, dashboards, or interactive terminal applications.

MITpure Python
443.6Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
mcp Worth it
PyPI · Application Frameworks · released Jul 2026

Build and connect to Model Context Protocol servers that expose tools, resources, and prompts to LLM applications over stdio, HTTP, or SSE transports.

Install it if you need to build or connect to servers.

MITpure Python · 3.10+
319.3Mdownloads / mo
Werkzeug Worth it
PyPI · Application Frameworks · released Apr 2026

Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.

BSD-3-Clausepure Python · 3.9+
268.1Mdownloads / mo

See also langchain-azure-ai · langchain-modal · langchain-daytona · composio-langchain · langchain · langchain-cli · langchain-core · langchain-exa · langchain-aws · langchain-community