{"id":28156,"library":"rsconnect-python","title":"rsconnect-python","description":"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.","status":"active","version":"1.29.0","language":"python","source_language":"en","source_url":"https://github.com/posit-dev/rsconnect-python","tags":["posit-connect","deployment","cli","rstudio-connect","dash","streamlit","flask","jupyter"],"install":[{"cmd":"pip install rsconnect-python","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"CLI framework","package":"click","optional":false},{"reason":"HTTP calls to Connect server","package":"requests","optional":false},{"reason":"Python 2/3 compatibility (legacy)","package":"six","optional":false}],"imports":[{"wrong":"from rsconnect.api import RSConnect","symbol":"RSConnect","correct":"from rsconnect import RSConnect"}],"quickstart":{"code":"from rsconnect.api import RSConnect\n\n# Replace with your server URL and API key\nserver = RSConnect(\n    server='https://connect.example.com',\n    api_key=os.environ.get('CONNECT_API_KEY', ''),\n)\n\n# Get server info\ninfo = server.server_info()\nprint(info)\n","lang":"python","description":"Initialize RSConnect client with server URL and API key from environment variable."},"warnings":[{"fix":"Ensure your environment uses the correct Python interpreter. If necessary, set the `CONNECT_PYTHON` environment variable instead of relying on the flag.","message":"In 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.","severity":"breaking","affected_versions":">=1.28.0"},{"fix":"Replace `rsconnect write-manifest` with `rsconnect manifest` in your workflows.","message":"The `rsconnect write-manifest` command is deprecated in favor of `rsconnect manifest`.","severity":"deprecated","affected_versions":">=1.20.0"},{"fix":"Set required environment variables in the Posit Connect dashboard after deployment, or use the `rsconnect environment` command to set them programmatically.","message":"If 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.","severity":"gotcha","affected_versions":"all"},{"fix":"Use `rsconnect deploy --no-dependencies` to skip dependency resolution, or use `rsconnect write-manifest` and manually upload the bundle.","message":"The `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.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'1.29.0':29 'cadenc':34 'cli':11,39 'command':8 'command-lin':7 'connect':6,23,25,37,42 'content':15 'current':27 'dash':16,43 'deploy':13,38 'flask':18,45 'interfac':10 'jupyt':19,46 'line':9 'notebook':20 'posit':5,24,36 'posit-connect':35 'python':3,14 'quarter':33 'releas':30 'rsconnect':2 'rsconnect-python':1 'rstudio':22,41 'rstudio-connect':40 'server':26 'streamlit':17,44 'version':28","created_at":"2026-05-09T05:54:01.322264+00:00","updated_at":"2026-05-09T05:54:01.322264+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nImportError: cannot import name 'RSConnect' from 'rsconnect' (/tmp/tmpg_ctbmv_/venv/lib/python3.12/site-packages/rsconnect/__init__.py)"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"rsconnect","cli_version":"Usage: rsconnect [OPTIONS] COMMAND [ARGS]...","type":"library","homepage":"https://posit.co/products/enterprise/connect/","github":"http://github.com/posit-dev/rsconnect-python","docs":"https://docs.posit.co/rsconnect-python","changelog":null,"pypi":"https://pypi.org/project/rsconnect-python/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops","web-framework","data"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}