Skip to content

Commit d1b7050

Browse files
Add list of Cloud IP addresses for whitelisting and uv.lock (#1193)
* Add list of Cloud IP addresses for whitelisting * uv.lock dependency file * Typo
1 parent a297f50 commit d1b7050

File tree

2 files changed

+40
-3
lines changed

2 files changed

+40
-3
lines changed

content/deploy/community-cloud/deploy-your-app/app-dependencies.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,17 @@ In the above example, `streamlit` is pinned to version `1.24.1`, `pandas` must b
6161

6262
### Other Python package managers
6363

64-
There are other Python package managers in addition to `pip`. If you want to consider alternatives to using a `requirements.txt` file, Community Cloud will look for and use the first dependency file it finds in the following order:
64+
There are other Python package managers in addition to `pip`. If you want to consider alternatives to using a `requirements.txt` file, Community Cloud will use the first dependency file it finds. Community Cloud will search the directory where your entrypoint file is, then it will search the root of your repository. In each location, dependency files are prioritized in the following order:
6565

6666
<table style={{ textAlign: 'center' }}>
6767
<tr>
6868
<th style={{ fontSize: '1.2em' }}> Recognized Filename</th>
6969
<th style={{ fontSize: '1.2em' }}>Python Package Manager</th>
7070
</tr>
71+
<tr>
72+
<td style={{ fontSize: '1em' }}><code>uv.lock</code></td>
73+
<td style={{ fontSize: '1em' }}><a href="https://docs.astral.sh/uv/concepts/projects/sync/" target="_blank">uv</a></td>
74+
</tr>
7175
<tr>
7276
<td style={{ fontSize: '1em' }}><code>Pipfile</code></td>
7377
<td style={{ fontSize: '1em' }}><a href="https://pipenv-fork.readthedocs.io/en/latest/basics.html" target="_blank">pipenv</a></td>
@@ -78,17 +82,19 @@ There are other Python package managers in addition to `pip`. If you want to con
7882
</tr>
7983
<tr>
8084
<td style={{ fontSize: '1em' }}><code>requirements.txt</code></td>
81-
<td style={{ fontSize: '1em' }}><a href="https://pip.pypa.io/en/stable/user_guide/#requirements-files" target="_blank">pip</a></td>
85+
<td style={{ fontSize: '1em' }}><a href="https://pip.pypa.io/en/stable/user_guide/#requirements-files" target="_blank">pip</a><sup>&dagger;</sup></td>
8286
</tr>
8387
<tr>
8488
<td style={{ fontSize: '1em' }}><code>pyproject.toml</code></td>
8589
<td style={{ fontSize: '1em' }}><a href="https://python-poetry.org/docs/basic-usage/" target="_blank">poetry</a></td>
8690
</tr>
8791
</table>
8892

93+
&dagger; For efficiency, Community Cloud will attempt to process `requirements.txt` with `uv`, but will fall back to `pip` if needed. `uv` is generally faster and more efficient than `pip`.
94+
8995
<Warning>
9096

91-
You should only use one requirements file for your app. If you include more than one (e.g. `requirements.txt` and `Pipfile`), only the first file encountered will be used as described above. Additionally, Streamlit will first look in the directory of your Streamlit app; however, if no requirements file is found, Streamlit will then look at the root of the repo.
97+
You should only use one dependency file for your app. If you include more than one (e.g. `requirements.txt` and `environment.yaml`), only the first file encountered will be used as described above, with any dependency file in your entrypoint file's directory taking precedence over any dependency file in the root of your repository.
9298

9399
</Warning>
94100

content/deploy/community-cloud/status-and-limitations.md

+31
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,37 @@ enableXsrfProtection = true
5252
gatherUsageStats = true
5353
```
5454

55+
## IP addresses
56+
57+
If you need to whitelist IP addresses for a connection, Community Cloud is currently served from the following IP addresses:
58+
59+
<Warning>
60+
61+
These IP addresses may change at any time without notice.
62+
63+
</Warning>
64+
65+
<div style={{ display: "flex", flexWrap: "wrap", flexDirection: "row", alignItems: "start" }}>
66+
<div style={{ width: "150px" }}>35.230.127.150</div>
67+
<div style={{ width: "150px" }}>35.203.151.101</div>
68+
<div style={{ width: "150px" }}>34.19.100.134</div>
69+
<div style={{ width: "150px" }}>34.83.176.217</div>
70+
<div style={{ width: "150px" }}>35.230.58.211</div>
71+
<div style={{ width: "150px" }}>35.203.187.165</div>
72+
<div style={{ width: "150px" }}>35.185.209.55</div>
73+
<div style={{ width: "150px" }}>34.127.88.74</div>
74+
<div style={{ width: "150px" }}>34.127.0.121</div>
75+
<div style={{ width: "150px" }}>35.230.78.192</div>
76+
<div style={{ width: "150px" }}>35.247.110.67</div>
77+
<div style={{ width: "150px" }}>35.197.92.111</div>
78+
<div style={{ width: "150px" }}>34.168.247.159</div>
79+
<div style={{ width: "150px" }}>35.230.56.30</div>
80+
<div style={{ width: "150px" }}>34.127.33.101</div>
81+
<div style={{ width: "150px" }}>35.227.190.87</div>
82+
<div style={{ width: "150px" }}>35.199.156.97</div>
83+
<div style={{ width: "150px" }}>34.82.135.155</div>
84+
</div>
85+
5586
## Other limitations
5687

5788
- When you print something to the Cloud logs, you may need to do a `sys.stdout.flush()` before it shows up.

0 commit comments

Comments
 (0)