webconnect
A simple python package and command line tool to publish static websites to RStudio Connect.
This package is not affiliated with RStudio.
Command line tool
The primary way to use webconnect is via it's cli tiil, webconnectcli.
THe cli tool requires 5 parameters.
- A path to a directory containing the static site to publish
- A unique name for the content on Connect - alphanumeric and underscores only
- A "pretty" name for the content that will be displayed in the Connect UI
- The URL for the Connect instance
- The Connect API key to use
usage: webconnectcli [-h] -d DIR -n NAME -p PRETTY -s SERVER -k KEY
optional arguments:
-h, --help show this help message and exit
-d DIR, --dir DIR name of the directory to publish
-n NAME, --name NAME name of the content - alphanumeric and underscores only
-p PRETTY, --pretty PRETTY
pretty name
-s SERVER, --server SERVER
RStudio Connect URL
-k KEY, --key KEY Connect API key
So a full example would look something like this:
webconnect \
-d path/to/site/content \
-n static_site \
-p "Example.org main site" \
-s https://connect.example.org \
-k ${CONNECT_API_KEY}
This relies on the Connect API key being available in the $CONNECT_API_KET environment variable.
You could use the key directly if you prefer.
Package usage
import webconnect
webconnect.pub_rsconnect(
"path/to/site/content,
"static_site",
"Example.org main site",
"https://connect.example.org",
"hgjhghgjguytuyt6876uytgfhg",
)
Release files for webconnect 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| webconnect-0.0.1.tar.gz | 4.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| webconnect-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.1 kB
Release files / webconnect-0.0.1.tar.gz
| Download URL | webconnect-0.0.1.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4dc0aa88301088b8fe733126c076ca585959ab0e3abb6871cd87b4695a03b448
|
|
BLAKE2b-256 checksum How to use checksums |
6d60c835638ca5cfba6d4aba4996f8a45677daf0943d693c5260783536f2f72e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.4
|
Release files / webconnect-0.0.1-py3-none-any.whl
| Download URL | webconnect-0.0.1-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
40058282c56085690fb4163fec93003ae8f5847c000d2e00f0a23e045883a7e0
|
|
BLAKE2b-256 checksum How to use checksums |
0b3b948954a9281f4bceaeb1f325fdc9b4e4df6ece10134b60a76e31d29f43fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.4
|