Title: | 'Domino Data R SDK' |
---|---|
Description: | A wrapper on top of the 'Domino Data Python SDK' library. It lets you query and access 'Domino Data Sources' directly from your R environment. Under the hood, 'Domino Data R SDK' leverages the API provided by the 'Domino Data Python SDK', which must be installed as a prerequisite. 'Domino' is a platform that makes it easy to run your code on scalable hardware, with integrated version control and collaboration features designed for analytical workflows. See <https://docs.dominodatalab.com/en/latest/api_guide/140b48/domino-data-api> for more information. |
Authors: | Gabriel Haim [aut, cre] |
Maintainer: | Gabriel Haim <[email protected]> |
License: | Apache License (>= 2) |
Version: | 0.2.4 |
Built: | 2025-03-05 23:25:01 UTC |
Source: | https://github.com/dominodatalab/dominodatar |
Add credentials override for the right datasources
add_credentials(auth_type, config = list())
add_credentials(auth_type, config = list())
auth_type |
Datasource Authentication type |
config |
existing config override to extend |
named list of override configuration values
Add override configuration values
add_override(..., .override = character())
add_override(..., .override = character())
... |
named configuration values. |
.override |
a named character vector |
named list of override configuration values
Create a client to Domino datasources
datasource_client(api_key = NULL, token_file = NULL, token_url = NULL, token = NULL)
datasource_client(api_key = NULL, token_file = NULL, token_url = NULL, token = NULL)
api_key |
string key to override the environment variable |
token_file |
location of file to read token from |
token_url |
url of the location to read the token from |
token |
token to be used to authenticate |
A domino_data.data_sources.DataSourceClient
.
Retrieve an object from a datasource
get_object(client, datasource, object, as = "raw", override = list())
get_object(client, datasource, object, as = "raw", override = list())
client |
As returned by |
datasource |
The name of the datasource to query |
object |
The object to retrieve |
as |
Passed through to |
override |
Configuration values to override ( |
Raw vector representation of the object
List the keys starting with prefix in an object store
list_keys(client, datasource, prefix = "", override = list(), page_size = 50)
list_keys(client, datasource, prefix = "", override = list(), page_size = 50)
client |
As returned by |
datasource |
The name of the datasource to query |
prefix |
Prefix to filter keys to list |
override |
Configuration values to override ( |
page_size |
Number of objects to fetch |
A vector or string keys
Load AWS Credentials
load_aws_credentials(location, profile = NULL)
load_aws_credentials(location, profile = NULL)
location |
file path where AWS credentials are located |
profile |
AWS profile or section to use |
named list of override configuration values
Load OAuth Credentials
load_oauth_credentials(location)
load_oauth_credentials(location)
location |
file path where token is located |
named list of override configuration values
HTTP requests for Object Stores
object_http( verb = "GET", url, datasource_type, config = list(), headers = list(), request_body = "", write_disk = NULL )
object_http( verb = "GET", url, datasource_type, config = list(), headers = list(), request_body = "", write_disk = NULL )
verb |
A character string containing an HTTP verb, defaulting to “GET”. |
url |
Signed URL to download object at. |
datasource_type |
Type of datasource the object is stored in. |
config |
A list of config values for the REST call. |
headers |
A list of request headers for the REST call. |
request_body |
A character string containing request body data. |
write_disk |
An argument like |
This is mostly for internal use by object store APIs.
a response
object.
Upload an object to a datasource
put_object(client, datasource, object, what, override = list())
put_object(client, datasource, object, what, override = list())
client |
As returned by |
datasource |
The name of the datasource to query |
object |
The object to retrieve |
what |
character vector, raw vector |
override |
Configuration values to override ( |
Raw vector representation of the object
Install domino_data Python package
py_domino_data_install(version)
py_domino_data_install(version)
version |
Version of the domino_data package to install. |
TRUE
if installation was successful, FALSE
otherwise.
Provide other options in case the package is used for local development.
py_select_interpreter()
py_select_interpreter()
TRUE
if a python binary was bound to reticulate, FALSE
otherwise
Query a datasource and returns an arrow Table
query(client, datasource, query, override = list())
query(client, datasource, query, override = list())
client |
As returned by |
datasource |
The name of the datasource to query |
query |
The query to run against the provided datasource |
override |
Configuration values to override ( |
An arrow::Table
Save an object from a datasource to a local file
save_object( client, datasource, object, file = basename(object), override = list() )
save_object( client, datasource, object, file = basename(object), override = list() )
client |
As returned by |
datasource |
The name of the datasource to query |
object |
The object to retrieve |
file |
File path to save object at. Defaults to the object base name. |
override |
Configuration values to override ( |
Raw vector representation of the object
Upload a file to a datasource
upload_object(client, datasource, object, file, override = list())
upload_object(client, datasource, object, file, override = list())
client |
As returned by |
datasource |
The name of the datasource to query |
object |
The object to retrieve |
file |
File path to upload.. |
override |
Configuration values to override ( |
Raw vector representation of the object