You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-signalr/signalr-quickstart-azure-functions-python.md
+8-10Lines changed: 8 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ author: anthonychu
5
5
ms.service: signalr
6
6
ms.devlang: python
7
7
ms.topic: quickstart
8
-
ms.date: 08/08/2019
8
+
ms.date: 12/14/2019
9
9
ms.author: antchu
10
10
---
11
11
# Quickstart: Create a chat room with Azure Functions and SignalR Service using Python
@@ -18,11 +18,9 @@ This quickstart can be run on macOS, Windows, or Linux.
18
18
19
19
Make sure you have a code editor such as [Visual Studio Code](https://code.visualstudio.com/) installed.
20
20
21
-
Install the [Azure Functions Core Tools (v2)](https://github.com/Azure/azure-functions-core-tools#installing) (version 2.7.1505 or higher) to run Python Azure Function apps locally.
21
+
Install the [Azure Functions Core Tools](https://github.com/Azure/azure-functions-core-tools#installing) (version 2.7.1505 or higher) to run Python Azure Function apps locally.
In order to install extensions, Azure Functions Core Tools currently require the [.NET Core SDK](https://www.microsoft.com/net/download) installed. However, no knowledge of .NET is required to build Python Azure Function apps.
23
+
Azure Functions requires [Python 3.6 or 3.7](https://www.python.org/downloads/).
@@ -48,19 +46,19 @@ Sign in to the Azure portal at <https://portal.azure.com/> with your Azure accou
48
46
49
47
1. In your code editor, open the *src/chat/python* folder in the cloned repository.
50
48
51
-
1. To locally develop and test Python functions, you must work in a Python 3.6 environment. Run the following commands to create and activate a virtual environment named `.venv`.
49
+
1. To locally develop and test Python functions, you must work in a Python 3.6 or 3.7 environment. Run the following commands to create and activate a virtual environment named `.venv`.
52
50
53
51
**Linux or macOS:**
54
52
55
53
```bash
56
-
python3.6 -m venv .venv
54
+
python3.7 -m venv .venv
57
55
source .venv/bin/activate
58
56
```
59
57
60
58
**Windows:**
61
59
62
60
```powershell
63
-
py -3.6 -m venv .venv
61
+
py -3.7 -m venv .venv
64
62
.venv\scripts\activate
65
63
```
66
64
@@ -73,10 +71,10 @@ Sign in to the Azure portal at <https://portal.azure.com/> with your Azure accou
73
71
- **negotiate** - Uses the *SignalRConnectionInfo* input binding to generate and return valid connection information.
74
72
- **messages** - Receives a chat message in the request body and uses the *SignalR* output binding to broadcast the message to all connected client applications.
75
73
76
-
1. In the terminal, ensure that you are in the *src/chat/python* folder. Use the Azure Functions Core Tools to install extensions required to run the app.
74
+
1. In the terminal with the virtual environment activated, ensure that you are in the *src/chat/python* folder. Install the necessary Python packages using PIP.
0 commit comments