pins
A simple package to pin and retrieve pinned data from RStudio Connect.
Read more about pins on the offical R implementations's website
This project is not affiliated with RStudio.
Available functions
Make a pin on RStudio Connect.
pin_rsconnect()
Parameters:
- data: any object that has a to_json method
- pin_name (str): name of pin, only alphanumeric and underscores
- pretty_pin_name (str): display name of pin
- connect_server (str): RStudio Connect server address e.g. https://connect.example.com/
- api_key (str): API key of a user on RStudio Connect
Returns:
- Url of content
Get data from a python pin on RStudio Connect
pin_get_rsconnect(url):
Parameters:
- url (str) content solo URL on Connect (NOT dashboard URL)
Returns:
- JSON version of pin
Try it out
import pins
pin = pins.pin_rsconnect(
data = df,
pin_name = "my_pin_7788",
pretty_pin_name = "Python Pin",
connect_server = connect_server,
api_key = api_key
)
pins.pin_get_rsconnect(pin['content_url'])
License
This package is released under an MIT license and was created by Alex Gold and Mark Sellors.
"RStudio" and "RStudio Connect" are trademarks of RStudio, PBC.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pins-0.0.2.tar.gz.
File metadata
- Download URL: pins-0.0.2.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1756751640ca59b0deeb8db28713fd58727341ff68c90339f6b1de5940c797bd
|
|
| MD5 |
1be07cab3bf5897cb7892b1f4175f45d
|
|
| BLAKE2b-256 |
fc7fad2162675948c71488abe2f1a54d770ac2a624bd5018a30ce81f913f7a73
|
File details
Details for the file pins-0.0.2-py3-none-any.whl.
File metadata
- Download URL: pins-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba4ac72ee876408b92148d1ca215178be430a28dfe245876a7a9c2e01cd2f464
|
|
| MD5 |
be51dfedae988536bc53dc641bc92a91
|
|
| BLAKE2b-256 |
83a2b384ac76a5c11ceadb5d6fd015beb7aad9d2518aca0f831605434d126a4f
|