Skip to content

An experimental package to bring R connectwidgets functionality to python

License

Notifications You must be signed in to change notification settings

gsingh91/py-connectwidgets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

py-connectwidgets

A python equivalent for the connectwidgets package in R.

Warning

This package is experimental!

This is an experimental porting of the R package and is in developement. Please do not use it for production workflows.

Requirements:

  • Python>=3.9
  • Access to Posit Connect server to retrieve :
    • Connect server name
    • API Key

Available functions:

listing all content

get_content() function outputs a dataframe with all content the user has access to. Columns include content type, ID, deployed date, owner ID, tags etc.

tabular output

rsc_table() functions produces an itable output for the content dataframe. Columns include app name, app owners’ name, last updated time and app content type.

Example:

from py_connectwidgets import connectwidgets
from dotenv import load_dotenv
import os

load_dotenv()

# Create a connectwidgets client
c = connectwidgets.connect(os.getenv("CONNECT_SERVER"),
                            os.getenv("CONNECT_API_KEY"))

# get all Connect content
df = c.get_content()

# Create a tabular view
connectwidgets.rsc_table(df)

About

An experimental package to bring R connectwidgets functionality to python

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages