Skip to content

posit-dev/posit-sdk-py

Folders and files

NameName
Last commit message
Last commit date
Mar 5, 2025
Oct 31, 2024
Dec 18, 2024
Dec 20, 2024
Mar 5, 2025
Feb 28, 2025
Feb 28, 2025
Dec 13, 2024
Nov 12, 2024
Jul 29, 2024
Mar 6, 2024
Mar 4, 2024
Oct 29, 2024
Oct 29, 2024
Jan 16, 2024
Feb 14, 2025
Sep 10, 2024
Feb 14, 2025
Oct 29, 2024

Repository files navigation

Posit SDK for Python

This package provides a Pythonic interface for developers to work against the public APIs of Posit's professional products. It is intended to be lightweight yet expressive.

The Posit SDK is in the very early stages of development, and currently only Posit Connect has any support.

Installation

pip install posit-sdk

Usage

Establish server information and credentials using the following environment variables or when initializing a client. Then checkout the Posit Connect Cookbook to get started.

Caution

It is important to keep your API key safe and secure. Your API key grants access to your account and allows you to make authenticated requests to the Posit API. Treat your API key like a password and avoid sharing it with others. If you suspect that your API key has been compromised, regenerate a new one immediately to maintain the security of your account.

Option 1 (Preferred)

export CONNECT_API_KEY="my-secret-api-key"
export CONNECT_SERVER="https://example.com/"
from posit.connect import Client

client = Client()

Option 2

export CONNECT_API_KEY="my-secret-api-key"
from posit.connect import Client

Client("https://example.com")

Option 3

from posit.connect import Client

Client("https://example.com", "my-secret-api-key")

Contributing

We welcome contributions to the Posit SDK for Python! If you would like to contribute, see the CONTRIBUTING guide for instructions.

Issues

If you encounter any issues or have any questions, please open an issue. We appreciate your feedback.

License

This project is licensed under the MIT License. Feel free to use, modify, and distribute the code as you see fit.

Code of Conduct

We expect all contributors to adhere to the project's Code of Conduct and create a positive and inclusive community.