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 some examples 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
with Client() as client:
print(client)
Option 2
from posit.connect import Client
with Client(api_key="my-secret-api-key", url="https://example.com") as client:
print(client)
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file posit_sdk-0.3.0.tar.gz
.
File metadata
- Download URL: posit_sdk-0.3.0.tar.gz
- Upload date:
- Size: 57.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eaf32bb8cb39c4f9070df7146ed37ea73e6682954f043310d3ae68c92670c727 |
|
MD5 | 72a06b1a658f740b1801f3bce4b19b2c |
|
BLAKE2b-256 | 3845a13c6803d8c847e889a5ba027e44134d32871802bbeab49606ca215e3877 |
File details
Details for the file posit_sdk-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: posit_sdk-0.3.0-py3-none-any.whl
- Upload date:
- Size: 32.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16647256a122a720de8da26ce8bef9f83f3204ae0e7d78e72801b52f397740fa |
|
MD5 | 1447ca2296868f08ebdf4fa62e844ec3 |
|
BLAKE2b-256 | c64913a2151b6d6ba6755f64516a6b40d76334fdb86f78bc7ed8a863f424b67b |