Skip to content

Commit 77d88f6

Browse files
authored
Merge pull request #104 from sol-eng/deps
2 parents cedb504 + 9509a79 commit 77d88f6

File tree

126 files changed

+740
-2265
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+740
-2265
lines changed

.github/workflows/deploy.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,14 @@ jobs:
2727
./flask-restx/
2828
./flask-sentiment-analysis-api/
2929
./flask-sentiment-analysis-app/
30-
./image-classifier/
31-
./jupyter-interactive-visualization/
3230
./jupyter-static-visualization/
31+
./jupyter-voila/
3332
./quarto-lightbox/
33+
./reticulated-image-classifier/
34+
./reticulated-sentiment-analysis-api/
35+
./reticulated-sentiment-analysis-app/
3436
./rmarkdown-notebook/
35-
./rmarkdown-static-visualization/
3637
./shiny-income-share/
37-
./sentiment-analysis/
38-
./sentiment-analysis-app/
3938
./streamlit-income-share/
4039
require-vanity-path: true
4140
access-type: all

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,5 @@ rmarkdown-notebook/flights.csv
4949
venv
5050
.env
5151
.Rprofile
52+
53+
/.luarc.json

.python-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.10.0

README.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
# RStudio Connect & Python
1+
# Posit Connect & Python
22

3-
RStudio Connect is a publishing platform for the work your team creates in R and Python.
3+
Posit Connect is a publishing platform for the work your team creates in R and Python.
44
This repository contains examples of Python content you can deploy to Connect, including:
55

66
## Interactive apps
77

88
- [Streamlit](./streamlit-income-share/README.md)
99
- [Dash](dash-app/README.md)
1010
- [Flask](flask-sentiment-analysis-app/README.md)
11+
- [Voila](./jupyter-voila/README.md)
1112

1213
### Web APIs
1314

@@ -30,16 +31,16 @@ This enables you to use models built in Python to power Shiny apps, visualize pa
3031

3132
### Interactive apps
3233

33-
- [Serving Sentiment Analysis with Plumber and spaCy](./sentiment-analysis/README.md)
34-
- [Image Classification with PyTorch and Shiny](./image-classifier/README.md)
34+
- [Serving Sentiment Analysis with Plumber and spaCy](./reticulatd-sentiment-analysis-api/README.md)
35+
- [Image Classification with PyTorch and Shiny](./reticulated-image-classifier/README.md)
3536

3637
### Documents
3738

3839
- [Visualizing pandas dataframes with ggplot2](./rmarkdown-notebook/README.md)
3940

4041
## Getting Started
4142

42-
You can deploy examples from this repo to your Connect server [via git-backed deployment](https://docs.rstudio.com/connect/user/git-backed/), or clone the repository and deploy examples from their manifests with the [`rsconnect` CLI](https://docs.rstudio.com/rsconnect-python/).
43+
You can deploy examples from this repo to your Connect server [via git-backed deployment](https://docs.posit.co/connect/user/git-backed/), or clone the repository and deploy examples from their manifests with the [`rsconnect` CLI](https://docs.posit.co/rsconnect-python/).
4344

4445
If you want to explore an example more closely before deploying it:
4546

@@ -67,7 +68,7 @@ Overview:
6768

6869
* Create and activate a virtual environment
6970
* Run the examples locally
70-
* Acquire an [API key](https://docs.rstudio.com/connect/user/api-keys/)
71+
* Acquire an [API key](https://docs.posit.co/connect/user/api-keys/)
7172
* Publish the examples with the [rsconnect cli](https://github.com/rstudio/rsconnect-python)
7273
* Save the environment and deployment details for future git-backed publishing
7374

dash-app/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ rsconnect deploy dash . -n <SERVER-NICKNAME>
1212

1313
## Resources
1414

15-
[RStudio Connect User Guide - Dash](https://docs.rstudio.com/connect/user/dash/)
15+
[Posit Connect User Guide - Dash](https://docs.posit.co/connect/user/dash/)

dash-app/manifest.json

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,21 @@
11
{
22
"version": 1,
3+
"locale": "en_US.UTF-8",
34
"metadata": {
45
"appmode": "python-dash",
56
"entrypoint": "app"
67
},
7-
"locale": "en_US.UTF-8",
88
"python": {
9-
"version": "3.8.6",
9+
"version": "3.10.0",
1010
"package_manager": {
1111
"name": "pip",
12-
"version": "21.2.4",
12+
"version": "23.0.1",
1313
"package_file": "requirements.txt"
1414
}
1515
},
1616
"files": {
1717
"requirements.txt": {
18-
"checksum": "d9ec95c0586e1a782076258914ec6279"
19-
},
20-
"README.md": {
21-
"checksum": "c88f6181d84998f958b10246f1970721"
18+
"checksum": "714eff35716ba552e0dde4a13cd8ceb6"
2219
},
2320
"app.png": {
2421
"checksum": "d7dc349dbfd3e2dd7be1d7f77b2f3309"
@@ -33,4 +30,4 @@
3330
"checksum": "a4e86ec9273e07fdb85cf5dd6c6fed1e"
3431
}
3532
}
36-
}
33+
}

dash-app/requirements.txt

+11-14
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
1-
Brotli==1.0.9
2-
click==8.0.1
3-
dash==2.0.0
1+
click==8.1.3
2+
dash==2.9.1
43
dash-core-components==2.0.0
54
dash-html-components==2.0.0
65
dash-table==5.0.0
7-
Flask==2.0.2
8-
Flask-Compress==1.10.1
9-
itsdangerous==2.0.1
10-
Jinja2==3.0.2
11-
MarkupSafe==2.0.1
12-
numpy==1.22.0
13-
pandas==1.5.2
14-
plotly==5.3.1
6+
Flask==2.2.3
7+
itsdangerous==2.1.2
8+
Jinja2==3.1.2
9+
MarkupSafe==2.1.2
10+
numpy==1.24.2
11+
pandas==1.5.3
12+
plotly==5.13.1
1513
python-dateutil==2.8.2
16-
python-dotenv==0.19.0
17-
pytz==2021.3
14+
pytz==2022.7.1
1815
six==1.16.0
19-
tenacity==8.0.1
16+
tenacity==8.2.2
2017
Werkzeug==2.2.3

dash-bikeshare/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ rsconnect deploy dash . -n <SERVER-NICKNAME>
99
```
1010
## Resources
1111

12-
[RStudio Connect User Guide - Dash](https://docs.rstudio.com/connect/user/dash/)
12+
[Posit Connect User Guide - Dash](https://docs.posit.co/connect/user/dash/)

dash-bikeshare/manifest.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{
22
"version": 1,
3+
"locale": "en_US.UTF-8",
34
"metadata": {
45
"appmode": "python-dash",
56
"entrypoint": "app"
67
},
7-
"locale": "en_US.UTF-8",
88
"python": {
9-
"version": "3.8.6",
9+
"version": "3.10.0",
1010
"package_manager": {
1111
"name": "pip",
12-
"version": "21.2.4",
12+
"version": "23.0.1",
1313
"package_file": "requirements.txt"
1414
}
1515
},
1616
"files": {
1717
"requirements.txt": {
18-
"checksum": "2a7c57f3b31ba1b8b95f4d226bdc5384"
18+
"checksum": "78b12cc7395472129cd5149d4fe9c59c"
1919
},
2020
"app.py": {
2121
"checksum": "34fd547314532279ce0eeae8ed9f32e9"
@@ -24,4 +24,4 @@
2424
"checksum": "30dc5ae0bfabcc5cf69e64a271e3c8c6"
2525
}
2626
}
27-
}
27+
}

dash-bikeshare/requirements.txt

+16-23
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,23 @@
1-
--index-url https://packagemanager.rstudio.com/pypi/latest/simple
2-
Brotli==1.0.9
31
certifi==2022.12.7
4-
charset-normalizer==2.0.6
5-
click==8.0.1
6-
dash==2.0.0
2+
charset-normalizer==3.1.0
3+
click==8.1.3
4+
dash==2.9.1
75
dash-core-components==2.0.0
86
dash-html-components==2.0.0
97
dash-table==5.0.0
10-
Flask==2.0.2
11-
Flask-Compress==1.10.1
12-
idna==3.2
13-
itsdangerous==2.0.1
14-
Jinja2==3.0.2
15-
MarkupSafe==2.0.1
16-
numpy==1.22.0
17-
pandas==1.3.3
18-
patsy==0.5.2
19-
plotly==5.3.1
20-
plotly-express==0.4.1
8+
Flask==2.2.3
9+
idna==3.4
10+
itsdangerous==2.1.2
11+
Jinja2==3.1.2
12+
MarkupSafe==2.1.2
13+
numpy==1.24.2
14+
pandas==1.5.3
15+
plotly==5.13.1
2116
python-dateutil==2.8.2
22-
python-dotenv==0.19.0
23-
pytz==2021.3
24-
requests==2.26.0
25-
scipy==1.7.1
17+
python-dotenv==1.0.0
18+
pytz==2022.7.1
19+
requests==2.28.2
2620
six==1.16.0
27-
statsmodels==0.13.0
28-
tenacity==8.0.1
29-
urllib3==1.26.7
21+
tenacity==8.2.2
22+
urllib3==1.26.15
3023
Werkzeug==2.2.3

fastapi-stock/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ rsconnect deploy fastapi . -n <SERVER-NICKNAME>
77
```
88
## Resources
99

10-
[RStudio Connect User Guide - FastAPI](https://docs.rstudio.com/connect/user/fastapi/)
10+
[Posit Connect User Guide - FastAPI](https://docs.posit.co/connect/user/fastapi/)

fastapi-stock/manifest.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{
22
"version": 1,
3+
"locale": "en_US.UTF-8",
34
"metadata": {
45
"appmode": "python-fastapi",
56
"entrypoint": "main"
67
},
7-
"locale": "en_US.UTF-8",
88
"python": {
9-
"version": "3.9.7",
9+
"version": "3.10.0",
1010
"package_manager": {
1111
"name": "pip",
12-
"version": "21.2.4",
12+
"version": "23.0.1",
1313
"package_file": "requirements.txt"
1414
}
1515
},
1616
"files": {
1717
"requirements.txt": {
18-
"checksum": "920f5e95ef6bc24d99198c5c14900ff1"
18+
"checksum": "f978bfe76823199781dace6b2e3a8bc6"
1919
},
2020
"main.py": {
2121
"checksum": "a8d8820f25be4dc8e2bf51a5ba1690b6"
@@ -24,4 +24,4 @@
2424
"checksum": "e0bc27e3dd358c360863807e09079985"
2525
}
2626
}
27-
}
27+
}

fastapi-stock/requirements.txt

+8-9
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
anyio==3.6.2
2-
asgiref==3.6.0
32
click==8.1.3
4-
fastapi==0.89.1
3+
fastapi==0.95.0
54
h11==0.14.0
65
idna==3.4
7-
numpy==1.22.0
8-
pandas==1.5.2
9-
pydantic==1.10.4
6+
numpy==1.24.2
7+
pandas==1.5.3
8+
pydantic==1.10.6
109
python-dateutil==2.8.2
11-
pytz==2022.7
10+
pytz==2022.7.1
1211
six==1.16.0
1312
sniffio==1.3.0
14-
starlette==0.25.0
15-
typing_extensions==4.4.0
16-
uvicorn==0.20.0
13+
starlette==0.26.1
14+
typing_extensions==4.5.0
15+
uvicorn==0.21.1

flask-getting-started-rsc/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Getting Started with Flask and RStudio Connect
1+
## Getting Started with Flask and Posit Connect
22

33
This application structure and set-up follows the steps outlined in the links below.
44

@@ -17,7 +17,7 @@ rsconnect deploy api . -n <SERVER-NICKNAME>
1717

1818
#### Resources
1919

20-
- [RStudio Connect User Guide - Flask](https://docs.rstudio.com/connect/user/flask/)
21-
- [Getting Started with Flask and RStudio Connect](https://support.rstudio.com/hc/en-us/articles/360044700234)
22-
- [Deploying Flask Applications to RStudio Connect with Git and rsconnect-python](https://support.rstudio.com/hc/en-us/articles/360045224233)
23-
- [Using Templates and Static Assets with Flask Applications on RStudio Connect](https://support.rstudio.com/hc/en-us/articles/360045279313)
20+
- [Posit Connect User Guide - Flask](https://docs.posit.co/connect/user/flask/)
21+
- [Getting Started with Flask and Posit Connect](https://support.rstudio.com/hc/en-us/articles/360044700234)
22+
- [Deploying Flask Applications to Posit Connect with Git and rsconnect-python](https://support.rstudio.com/hc/en-us/articles/360045224233)
23+
- [Using Templates and Static Assets with Flask Applications on Posit Connect](https://support.rstudio.com/hc/en-us/articles/360045279313)
+6-6
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{
22
"version": 1,
3+
"locale": "en_US.UTF-8",
34
"metadata": {
45
"appmode": "python-api",
56
"entrypoint": "app"
67
},
7-
"locale": "en_US.UTF-8",
88
"python": {
9-
"version": "3.8.6",
9+
"version": "3.10.0",
1010
"package_manager": {
1111
"name": "pip",
12-
"version": "21.2.4",
12+
"version": "23.0.1",
1313
"package_file": "requirements.txt"
1414
}
1515
},
1616
"files": {
1717
"requirements.txt": {
18-
"checksum": "d5ff3e78f56f0d97c203e5475083853f"
18+
"checksum": "8d6edf2dedd1ca913165abec8a3beb86"
1919
},
2020
"app.py": {
2121
"checksum": "9dcfbffbfa4f022525af8c47b9a0e976"
@@ -27,7 +27,7 @@
2727
"checksum": "ee9656d5610fbc4ad05d1c1413618341"
2828
},
2929
"templates/index.html": {
30-
"checksum": "18c6159098b83ecc561a20b837236498"
30+
"checksum": "8d670a0d9a9082893c7970a2680b6d95"
3131
}
3232
}
33-
}
33+
}
+5-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
--index-url https://packagemanager.rstudio.com/pypi/latest/simple
2-
click==8.0.1
3-
Flask==2.0.2
4-
itsdangerous==2.0.1
5-
Jinja2==3.0.2
6-
MarkupSafe==2.0.1
1+
click==8.1.3
2+
Flask==2.2.3
3+
itsdangerous==2.1.2
4+
Jinja2==3.1.2
5+
MarkupSafe==2.1.2
76
Werkzeug==2.2.3

flask-getting-started-rsc/templates/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</head>
99
<body class="sans-serif center w-60">
1010
<div class="mt5 ba pa br2 b--black-30 tc">
11-
<h2>🎉 Hello, World! This is Flask on RStudio Connect!</h2>
11+
<h2>🎉 Hello, World! This is Flask on Posit Connect!</h2>
1212
</div>
1313
<div class="mt5 ba pa br2 b--black-30 tc">
1414
<h2>🚀Access the API endpoint</h2>

0 commit comments

Comments
 (0)