Skip to main content

Posit SDK for Python

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

posit_sdk-0.5.0.tar.gz (73.1 kB view details)

Uploaded Source

Built Distribution

posit_sdk-0.5.0-py3-none-any.whl (38.7 kB view details)

Uploaded Python 3

File details

Details for the file posit_sdk-0.5.0.tar.gz.

File metadata

  • Download URL: posit_sdk-0.5.0.tar.gz
  • Upload date:
  • Size: 73.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for posit_sdk-0.5.0.tar.gz
Algorithm Hash digest
SHA256 54f108e24a208053127b853e176dabe5c63b481a19fe58e2bb182928b79703f7
MD5 f00d76bc597c950f26c3065ff5d96446
BLAKE2b-256 905754b25cd77513bb579fb4a25766d0b61935c123e0f908b371ee345fd3a89e

See more details on using hashes here.

File details

Details for the file posit_sdk-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: posit_sdk-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 38.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for posit_sdk-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ffff82467bd98879d4478dd91ffd8ddaac842d5dd4136c80855c5d09266128b6
MD5 400f898cff291f0004c4692233adccf0
BLAKE2b-256 c9577e63855b3912195552ae51f3774eeccfa83a07a88edd882ff221aa0f63d9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page