Skip to main content

A simple python implementation of RStudio's pins package to work with RStudio Connect

Project description

pins

A simple package to pin and retrieve pinned data from RStudio Connect.

Read more about pins on the offical R implementations's website

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

def pin_get_rsconnect(url):

Parameters:

  • url (str) content solo URL on Connect (NOT dashboard URL)

Returns:

  • JSON version of pin

Try it out

pin = pin_rsconnect(
    data = df, 
    pin_name = "my_pin_7788", 
    pretty_pin_name = "Python Pin", 
    connect_server = connect_server, 
    api_key = api_key
)
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.

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

pins-0.0.1.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

pins-0.0.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file pins-0.0.1.tar.gz.

File metadata

  • Download URL: pins-0.0.1.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

Hashes for pins-0.0.1.tar.gz
Algorithm Hash digest
SHA256 644c032498869e5928642f379b693cc3dacc5c54fce2be387b5e2602c2b79899
MD5 3710c58eefdfc5b11efe79aa7f67fc60
BLAKE2b-256 98b095fa0f050fd697697b8a6eacda9ff23952163ecf0ba8eb811f2ea12fb733

See more details on using hashes here.

File details

Details for the file pins-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pins-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.8 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

Hashes for pins-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d8dd0803fdfb24f40ce495927eee5547b4810c6bade6f526f103186e011c5e85
MD5 c1f8c229a2cb1c51310e1c4ed5a2c64b
BLAKE2b-256 2066b30eacc3111dd5a2806caeef2cda0d9f14c6856d388aa9158621aec0cab1

See more details on using hashes here.

Supported by

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