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.15.1.tar.gz (136.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

posit_sdk-0.15.1-py3-none-any.whl (88.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: posit_sdk-0.15.1.tar.gz
  • Upload date:
  • Size: 136.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for posit_sdk-0.15.1.tar.gz
Algorithm Hash digest
SHA256 7080279f185531a7440d86e2387986bdcc10caa8a72d33439b0947bc44d5ede6
MD5 4abcb8e7b7aff1bd1eefb02794154857
BLAKE2b-256 0cc01551aeef9955f960066fb0c0a4bd0b16b502d24ebafc25870c184e06e232

See more details on using hashes here.

Provenance

The following attestation bundles were made for posit_sdk-0.15.1.tar.gz:

Publisher: release.yaml on posit-dev/posit-sdk-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: posit_sdk-0.15.1-py3-none-any.whl
  • Upload date:
  • Size: 88.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for posit_sdk-0.15.1-py3-none-any.whl
Algorithm Hash digest
SHA256 525827328dc37c662fbd470d0185de03688471e56eacceb236555fb79f931114
MD5 4f27bb790c580ede5f417a40d4beaf21
BLAKE2b-256 a42b211f4f2a86c13b25a0d798e926ee4c90a6716e0ee863bfe11ca7351c6c1d

See more details on using hashes here.

Provenance

The following attestation bundles were made for posit_sdk-0.15.1-py3-none-any.whl:

Publisher: release.yaml on posit-dev/posit-sdk-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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