Registry / devops / rsconnect-python

rsconnect-python

JSON →
library1.29.0pypypiunverified

The Posit Connect command-line interface (CLI) for deploying Python content (Dash, Streamlit, Flask, Jupyter Notebooks) to RStudio Connect / Posit Connect servers. Current version: 1.29.0. Released on a quarterly cadence.

pip install rsconnect-python
INSTALL
IMPORT
SIG · RSCONNECT-PYTHON
R
rsconnect-python
devopspythonv1.29.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RSConnect
from rsconnect import RSConnect
from rsconnect.api import RSConnect

Initialize RSConnect client with server URL and API key from environment variable.

from rsconnect.api import RSConnect # Replace with your server URL and API key server = RSConnect( server='https://connect.example.com', api_key=os.environ.get('CONNECT_API_KEY', ''), ) # Get server info info = server.server_info() print(info)
rsconnect --version
Debug
Known issues
breakingIn version 1.28.0, the `--python` flag behavior changed: it now uses the Python interpreter from the environment, not the one passed to the flag. Use `--python` only to specify a custom Python binary, not to set the environment.
fix
Ensure your environment uses the correct Python interpreter. If necessary, set the `CONNECT_PYTHON` environment variable instead of relying on the flag.
affects: >=1.28.0
deprecatedThe `rsconnect write-manifest` command is deprecated in favor of `rsconnect manifest`.
fix
Replace `rsconnect write-manifest` with `rsconnect manifest` in your workflows.
affects: >=1.20.0
gotchaIf your content uses environment variables, they must be defined on the Posit Connect server under the content's 'Vars' tab. The `rsconnect deploy` command does not read local .env files.
fix
Set required environment variables in the Posit Connect dashboard after deployment, or use the `rsconnect environment` command to set them programmatically.
affects: all
gotchaThe `rsconnect deploy` command by default tries to download dependencies (like pip install). If your environment has network restrictions, use `--no-dependencies` or pre-build the environment.
fix
Use `rsconnect deploy --no-dependencies` to skip dependency resolution, or use `rsconnect write-manifest` and manually upload the bundle.
affects: all
Upgrade
Version history
1.29.0latest on PyPI · released Apr 29, 2026
Audit
Dependencies
clickrequiredCLI framework
requestsrequiredHTTP calls to Connect server
sixrequiredPython 2/3 compatibility (legacy)
Agent activity
13 hits · last 30 days
node
12
OpenAI (training)
1
Resources
rsconnect-python — pip install rsconnect-python · libregistry