Rsconnect-python

Latest version: v1.24.0

Safety actively analyzes 642295 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 7

1.6.0

Added

- You can now deploy FastAPI applications. This requires RStudio Connect release 2021.08.0
or later. Use `rsconnect deploy fastapi` to deploy, or `rsconnect write-manifest fastapi`
to create a manifest file.
- In addition to FastAPI, you can also deploy Quart, Sanic, and Falcon ASGI applications.

Changed

- rsconnect-python will now issue a warning during deployment if there isn't a requirements.txt
file in the deployment directory. Using a requirements file ensures consistency in the
environment that will be created by the RStudio Connect server during deployment. This helps avoid
unnecessary package installations and issues that can occur if rsconnect-python falls back
to inferring packages from the local Python environment.

1.5.4

Added

- If an entrypoint is not specified with `--entrypoint`, rsconnect-python will attempt
to choose an entrypoint file. It looks for common names (`app.py`, `application.py`,
`main.py`, `api.py`). If there is a single python source file in the directory,
that will be used as the entrypoint.
rsconnect-python does not inspect the file contents to identify the object name, which must be
one of the default names that Connect expects (`app`, `application`, `create_app`, or `make_app`).

- Ability to hide code cells when rendering Jupyter notebooks.

After setting up Connect (>=1.9.0) and rsconnect-python, the user can render a Jupyter notebook without its corresponding code cells by passing the ' hide-all-input' flag through the rsconnect cli:


rsconnect deploy notebook \
--server https://connect.example.org:3939 \
--api-key my-api-key \
--hide-all-input \
mynotebook.ipynb


To selectively hide the input of cells, the user can add a tag call 'hide_input' to the cell, then pass the ' hide-tagged-input' flag through the rsconnect cli:


rsconnect deploy notebook \
--server https://connect.example.org:3939 \
--api-key my-api-key \
--hide-tagged-input \
mynotebook.ipynb

1.5.3

Added
- Support for generating md5 file upload checksums, even if Python's `hashlib`
was configured for FIPS mode. The fallback uses the `usedforsecurity` option which is
available in Python 3.9 and later.

1.5.2

Added
- support for HTTPS_PROXY

Changed
- Environments are now introspected with `pip list --format=freeze` instead of `pip freeze`,
since the latter injects nonexistent paths into the requirements file when run in a conda environment.
This issue started occurring when pip 20.1 added support for PEP 610 metadata.
- Conda environments contain Conda-only versions of setuptools, which are now filtered out from requirements.txt for non-Conda environments.

1.5.1

Fixed
- Python 2 encoding error when using rsconnect-jupyter to publish a notebook containing binary data.
- Preserve more details when raising exceptions.

1.5.0

Page 5 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.