https://github.com/samedwardes/connectapi-python
A Python package for interacting with the Posit Connect Server API
https://github.com/samedwardes/connectapi-python
python
Last synced: over 1 year ago
JSON representation
A Python package for interacting with the Posit Connect Server API
- Host: GitHub
- URL: https://github.com/samedwardes/connectapi-python
- Owner: SamEdwardes
- Created: 2022-09-07T22:46:11.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-02T15:00:29.000Z (almost 4 years ago)
- Last Synced: 2025-02-03T02:29:51.737Z (over 1 year ago)
- Topics: python
- Language: Python
- Homepage: https://connectapi-python.netlify.app
- Size: 166 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
## connectapi
> **WARNING:** this library is under active development and should not be used for production. The API will change and documentation could be wrong or incomplete.
A Python package for interacting with the Posit Connect Server API.
- Source code:
- Docs:
## Installation
```bash
pip install git+https://github.com/SamEdwardes/connectapi-python.git
```
## Usage
```python
from connectapi import Client, Content
client = Client()
content = Content.get_one(client, content_guid="241fe2cd-6eba-4a79-9aa3-6e6fe28c5714")
print(content)
# guid='241fe2cd-6eba-4a79-9aa3-6e6fe28c5714' name='Jupyter-Notebook---Palmer-Penguins-1662582421920' title='Jupyter Notebook - Palmer Penguins' description='' access_type='all' connection_timeout=None read_timeout=None init_timeout=None idle_timeout=None max_processes=None min_processes=None max_conns_per_process=None load_factor=None created_time=datetime.datetime(2022, 9, 7, 20, 27, 2, tzinfo=datetime.timezone.utc) last_deployed_time=datetime.datetime(2022, 9, 7, 20, 30, tzinfo=datetime.timezone.utc) bundle_id='61875' app_mode='jupyter-static' content_category='' parameterized=False cluster_name='Kubernetes' image_name='ghcr.io/rstudio/content-pro:r4.1.3-py3.10.4-bionic' r_version=None py_version='3.10.4' quarto_version=None run_as=None run_as_current_user=False owner_guid='d03a6b7a-c818-4e40-8ef9-84ca567f9671' content_url='https://colorado.rstudio.com/rsc/content/241fe2cd-6eba-4a79-9aa3-6e6fe28c5714/' dashboard_url='https://colorado.rstudio.com/rsc/connect/#/apps/241fe2cd-6eba-4a79-9aa3-6e6fe28c5714' role=None id='12560' client=Client(connect_server='https://colorado.rstudio.com/rsc', connect_api_key='XXXXXXXX', api_endpoint='https://colorado.rstudio.com/rsc/__api__/v1')
```
## Resources
-
-